# CVE-2026-139609: bpf: Avoid quadratic successor rescan in bpf\_compute\_scc

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:19.987Z
- **Modified:** 2026-11-30T14:19:43.323Z

> **AI summary (AI-generated, claude-haiku-5-5):** 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.

## Who should check

- Anyone running Linux \>= 493d9e0d608339a32f568504d5fd411a261bb0af, \< 52d22cb53e0ec27c898e5921f6bab93df69d65ee; \>= 493d9e0d608339a32f568504d5fd411a261bb0af, \< 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217
- Anyone running Linux 6.19

## 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

- Linux: \>= 493d9e0d608339a32f568504d5fd411a261bb0af, \< 52d22cb53e0ec27c898e5921f6bab93df69d65ee; \>= 493d9e0d608339a32f568504d5fd411a261bb0af, \< 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217 (cvelist)
- Linux: 6.19 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/52d22cb53e0ec27c898e5921f6bab93df69d65ee>
- other: <https://git.kernel.org/stable/c/3852e19cb9547ffdf9e3fbf3c8decd2c78c85217>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139609>

HTML: <https://flawdb.com/CVE-2026-139609> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139609>
