Hunting Linux kernel bugs with AI: how OpenAI's pipeline got to 948

OpenAI described a five-stage AI pipeline that finds, confirms and patches privilege escalation bugs in the Linux kernel. We explain step by step how a bug goes from suspicion to patch.

Paylaş
Hunting Linux kernel bugs with AI: how OpenAI's pipeline got to 948

Picture yourself in a hotel. Your key card opens only your own room. One day you notice a small glitch in the lift: tap the card at a certain angle and it takes you to the floor only management can enter. In computer security this is called privilege escalation. Someone logged in with an ordinary account uses a small bug to gain the powers of "root", the administrator account that can touch everything. On November 4, OpenAI published research describing an AI pipeline that finds bugs like this in the Linux kernel, proves them and writes the patch. According to the company's figures, a single run produced working evidence and patches for 948 distinct privilege escalation flaws.

In this piece we first walk through how an AI pipeline finds a kernel bug, confirms it and turns it into a fix, step by step. Then we look at OpenAI's results, why human reviewers still have the final say, and where the patches are today. That last part is the good news: Linux maintainers are closing these holes quickly, and OpenAI is bringing them ready-made fixes.

What the kernel is and why it matters

The kernel is the heart of the operating system. It manages all the traffic between programs and hardware: which program uses which part of memory, how files are written to disk, where incoming network packets go. The Linux kernel runs on billions of devices, from Android phones and cloud servers to supercomputers and smart TVs. OpenAI says it is more than 40 million lines of code. A structure that large has many doors: system calls, networking, file systems and device drivers.

A bug in the kernel, like the lift in the hotel, affects the whole building. That is why kernel flaws are among the best-paid categories in security competitions. OpenAI says it picked Linux for exactly this reason: to measure how well strong models find flaws in a codebase that is both very important and very large.

The five stops on the line

OpenAI's pipeline has five stages, and at its centre is an upcoming cyber security model the company has not yet named. AI agents with different jobs work at each stage. Think of an assembly line: each station takes the previous one's output, does its own job and passes the result on.

1. Discovery. Not every line of the kernel matters equally for security. First, "scout" agents walk through folder after folder and mark the parts that an ordinary user can reach and that matter for security. According to the page, the scouts chose 5,034 audit targets, about 2.8 million lines of code, roughly 7% of the kernel. That step cost $3,426. Then "analyst" agents read each target, work out how it functions, think about what attacks it might face and write up candidate bugs. Within 12 hours, after removing duplicates, the analysts produced 2,308 candidate findings. That step cost $316,549.

2. Validation. A candidate finding is not yet a real flaw, because reviewing code by reading it can raise false alarms. So for each candidate, an agent writes a small test program and runs it in an isolated virtual machine. The kernel in that machine is built with a checker called KASAN, which reports right away whenever something reads or writes memory it should not. The agent watches the program output and the system console, and keeps refining the test until the bug shows up. This is called reproducing the bug, much like a mechanic who wants to hear the noise the customer described before starting the repair. OpenAI says 1,724 flaws were reproduced within 30 hours, about 74.7% of the candidates. Most of the rest needed administrator rights or depended on very hard timing conditions. Only 3.1% were cases where the model's analysis was actually wrong. Validation cost $73,330.

3. Exploitability. Knowing a flaw is real does not tell you how urgent it is. A bug that only crashes the system and one that turns a user into root do not deserve the same priority. A screening agent first went through the reports quickly and set aside 313 information leak candidates and 1,238 privilege escalation candidates. Then "exploit development" agents tried those candidates on virtual machines with all the protections of a standard Linux distribution switched on: SMEP, SMAP, KASLR and HARDENED_USERCOPY. That detail matters, because everything looks easy on a target with its defences turned off. The result was 291 information leak proofs and 1,169 working privilege escalation proofs. When proofs that rest on the same root bug were merged, 948 distinct patches remained; OpenAI uses that patch count as its number of unique flaws.

4. Patch generation. For each confirmed flaw, the model writes a patch. OpenAI says it gave the model the relevant code and reminded it of good patching practice: run static checks on the patch, follow the conventions of the surrounding code, and look for siblings of the same bug elsewhere.

5. Human review. At the end of the line, each flaw gets a bundle: a root cause analysis, the shortest test program that shows the bug, a proposed patch and a full exploit. Security researchers review that bundle, confirm the severity and only then report it to the maintainers.

Why humans still have the final say

One of the most instructive parts of OpenAI's write-up covers the moments things went wrong. In an early run, the exploit stage reported 200 successful privilege escalations. During human review, the team found that 20 of them had reached root through a different, still unknown flaw instead of the one they had been assigned. The result was right; the path was wrong. The team tightened the task rules and added an independent check confirming that each exploit really used its assigned flaw. The lesson the company draws: in automated security research, you have to verify the path to a result as well as the result itself.

Patches went through a similar learning curve. In early attempts the model wrote patches that did fix the bug but were longer than needed, sometimes affected performance, or missed variants of the same bug elsewhere. With extra instructions and repeated rounds of revision, the patches became shorter, more accurate and a better fit for the surrounding code. OpenAI reports that in a few cases the pipeline also caught problems in patches written by human experts, which were fixed before being merged.

Where the patches are now

This is the best part of the story. The scan ran on the latest Linux kernel in mid-October 2026. When the automated scan and manual analysis wrapped up 10 days later, OpenAI observed that 61 privilege escalation flaws had already been patched upstream, 43 had patches in staging and 299 were being reported and discussed in public. Other contributors had found some of them independently. OpenAI says that, following the Linux community's advice, it started with critical flaws, has already sent hundreds of reports with patches, and is sending the rest in stages with its Patch the Planet partners. Patch the Planet, announced in June, works with security teams such as Trail of Bits, HackerOne and Calif to help open source projects ship fixes.

OpenAI draws a practical lesson here too: automated pipelines should retest each finding against the latest code before reporting it. Maintainers move so fast that a flaw found a few days earlier may already be closed. Resending an old finding just adds work for the people fixing things.

A stronger model finds more

OpenAI also ran the same pipeline with GPT-5.6 Sol in July 2026. That run found 166 distinct privilege escalation flaws and cost $513,690. In October, the new cyber model found 948, for a total of $1,213,430, or about $1,279 per flaw. The kernel had been hardened for three months between the two scans, and the new model still found more than five times as many new flaws. The company's advice is simple: as models get better, rescan code you have already audited.

Another interesting finding concerns the techniques the agents used. OpenAI examined a sample of 166 exploits and counted at least 10 new exploitation techniques; outside kernel experts also found them new. For safety reasons, the company is not sharing the details. It is also notable that stronger models need less hand-holding. When the team gave GPT-5.5 Cyber 103 known techniques in an organised form, its success rate rose from 76.2% to 88.9%. GPT-5.6 Cyber did better without that help, and adding the technique list back gained only 1.5 points.

The team also tried the pipeline in the hardened kernel environment of Google's kernelCTF program. That run lasted 112 hours, cost about $32,936 and produced 21 privilege escalation and 25 information leak proofs. For comparison, kernelCTF has accepted 26 confirmed zero-day escalation exploits in 2026. During that run the agents found something unexpected as well: a flaw in QEMU, the virtual machine software used for testing. It had already been fixed in QEMU's main code, but not in the release used in the experiment.

What it means for you

For ordinary users, the clearest message is about updates. OpenAI writes that on a system without its latest patches, an ordinary account should from now on be treated as practically equivalent to root. Not delaying updates on your phone, computer and servers is how these fixes reach you. For companies, the extra advice is to limit the impact of any one flaw with isolation tools such as Firecracker and gVisor.

In the wider picture, OpenAI expects that within a few years, if a piece of software has flaws, frontier models will most likely be able to find them. That is why the company names teaching models to write secure code from the start, shrinking the attack surface by removing unneeded features, and formal verification as promising areas for the future. There is a cost angle as well: applying the bounties that Pwn2Own and TyphoonPWN have paid for kernel flaws in the past to the 948 flaws gives a value of 16 to 55 times the pipeline's cost. That arithmetic shows why it also makes economic sense for defenders to scan their own software early.

All figures come from OpenAI's own research, and the cyber model used has not been named yet. The company says its costs are an upper bound and that a better setup could make every stage cheaper. For the full picture, it is worth following how Linux maintainers and independent security researchers assess the results.

Sources: OpenAI: A thousand fewer paths to root, OpenAI: Patch the Planet, Google kernelCTF rules