CVE-2026-139609
bpf: Avoid quadratic successor rescan in bpf_compute_scc
AI summary AI generated
An attacker can cause excessive CPU consumption while loading a crafted BPF program in the Linux kernel by exploiting quadratic successor rescanning in the verifier's SCC computation.
Mitigation
- Upgrade Linux to 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217 or later.
Who should check
- Anyone running Linux >= 493d9e0d608339a32f568504d5fd411a261bb0af, < 52d22cb53e0ec27c898e5921f6bab93df69d65ee; >= 493d9e0d608339a32f568504d5fd411a261bb0af, < 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217
- Anyone running Linux 6.19
Vulnerability facts
- Affected
- Linux >= 493d9e0d608339a32f568504d5fd411a261bb0af, < 52d22cb53e0ec27c898e5921f6bab93df69d65ee; >= 493d9e0d608339a32f568504d5fd411a261bb0af, < 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217; Linux 6.19
- Fixed in
- Linux 52d22cb53e0ec27c898e5921f6bab93df69d65ee, Linux 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Avoid quadratic successor rescan in bpf_compute_scc The iterative Tarjan DFS in bpf_compute_scc() emulates recursion with an explicit 'dfs' stack: when a successor has not been visited yet, the successor is pushed and the walk restarts at the top of the loop. On the way back to a vertex the successor scan starts over at index zero, so a vertex with k successors rescans up to k successors on each of its up to k descents, i.e. O(k^2) work. For ordinary instructions k <= 2 and this is irrelevant. For a gotox the successors are the jump table of the containing subprogram, whose size is bounded only by the max_entries of the insn_array map, so k can reach the 1M instruction complexity limit. Loading such a program keeps a CPU busy in the loop for a very long time before verification even begins. Record in 'dfs_pos' the successor index each frame stopped at and resume the scan there. Each edge is therefore examined a bounded number of times and the walk becomes linear in the number of edges.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-139609. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-139609.md Affected: Linux >= 493d9e0d608339a32f568504d5fd411a261bb0af, < 52d22cb53e0ec27c898e5921f6bab93df69d65ee; >= 493d9e0d608339a32f568504d5fd411a261bb0af, < 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217; Linux 6.19 Fixed in: Linux 52d22cb53e0ec27c898e5921f6bab93df69d65ee, Linux 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
FAQ
Is CVE-2026-139609 being exploited?
There is no confirmed exploitation: CVE-2026-139609 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-139609?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-139609?
Linux >= 493d9e0d608339a32f568504d5fd411a261bb0af, < 52d22cb53e0ec27c898e5921f6bab93df69d65ee; >= 493d9e0d608339a32f568504d5fd411a261bb0af, < 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217; Linux 6.19.
Is there a fix for CVE-2026-139609?
Yes. Fixed in Linux 52d22cb53e0ec27c898e5921f6bab93df69d65ee, Linux 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217. Upgrade Linux to 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217 or later.
How do I check if I'm affected by CVE-2026-139609?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |