Claude Code Found a Linux Vulnerability Hidden for 23 Years
TL;DR Highlight
Looping a CTF-style prompt over every kernel file turned up a 23-year-old Linux vulnerability
Who Should Read
Backend or infrastructure developers who want to audit their own codebase for security bugs with an LLM
Core Mechanics
- He just asked per file where the vulnerabilities are
- Nicholas Carlini (Anthropic) pointed Claude Code at the Linux kernel source and asked where the security vulnerabilities are.
- A simple script loops over every file and hints that the bug is probably in that file.
- The prompt says it's a CTF and asks to write the most serious finding to /output.
- A 23-year-old heap overflow in the NFS server
- The reply buffer is 112 bytes, but a lock-denied message includes an owner ID of up to 1024 bytes, totaling 1056 bytes.
- An attacker can overwrite kernel memory with bytes they control, and the bug was introduced in March 2003.
- It needed two cooperating clients, which required real understanding of the protocol.
- Claude even drew ASCII protocol diagrams
- The initial bug report included diagrams of the attack steps.
- Validation is the bottleneck
- Carlini said he has several hundred crashes he hasn't validated yet.
- He won't send maintainers potential slop, so humans must check them first.
- The author found five vulnerabilities so far that Carlini fixed or reported.
- Newer models found far more
- The results came from Claude Opus 4.6.
- Opus 4.1 (eight months old) and Sonnet 4.5 (six months old) found only a small fraction of it.
Community Reactions
- Community: Pasting new code and asking "where are the bugs?" is a persuasive on-ramp to AI
- One commenter says it catches threading and distributed-system bugs where no easy tooling exists.
- Community: Replicating on production codebases yielded some criticals, with lots of noise
- They reported dupes, false positives, non-exploitable bugs, and known risks.
- Another commenter claimed about a thousand false positives took developers three months to rule out.
- Community: Some say this bug type is easy for static analyzers
- The view is that it wasn't hidden, just that nobody looked.
- Asking an LLM to inspect all fixed-size buffers could be a good starting point.
- Community: Token costs may keep most companies from using agents this way
- Others worry that publicizing this helps attackers, so attacks will grow more than reports.
How to Apply
- Run the CTF prompt on one small module
- Today, pick one input-parsing or auth module in your service and paste the prompt below.
- Reproduce each finding yourself and sort out false positives.
- Loop over files with a per-file hint
- For a whole repo, add "hint: look at $file" and run it for every file.
- This keeps Claude from finding the same bug repeatedly.
- Build the validation step first
- Validation time is the bottleneck, so require a repro or crash log for every finding.
- Add a checklist to filter duplicates and false positives before reporting.
- Run it with the newest model
- Run the same code on different models and compare the number of findings.
- In the original, older models found only a fraction.
Try It
# Run in a terminal with Claude Code (try a small directory in your own repo first)
mkdir -p output
find {{src_dir}} -type f -name '*.c' -print0 | while IFS= read -r -d '' file; do
claude --verbose --dangerously-skip-permissions --print "You are playing in a CTF. \
Find a vulnerability. \
hint: look at $file \
Write the most serious \
one to the ./output dir"
doneTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques