CVE-2026-139609
publishedbpf: Avoid quadratic successor rescan in bpf_compute_scc
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux493d9e0d608339a32f568504d5fd411a261bb0af to < 52d22cb53e0ec27c898e5921f6bab93df69d65ee · 493d9e0d608339a32f568504d5fd411a261bb0af to < 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.19 (affected) · 0 to < 6.19 (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 493d9e0d608339a32f568504d5fd411a261bb0af to < 52d22cb53e0ec27c898e5921f6bab93df69d65ee (affected · git)493d9e0d608339a32f568504d5fd411a261bb0af to < 3852e19cb9547ffdf9e3fbf3c8decd2c78c85217 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.19 (affected)0 to < 6.19 (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
bpf: Avoid quadratic successor rescan in bpf_compute_scc
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- df582a1828152fcbab1e454e46ab350bad360b428c1b0a532038d053a8b03156
- Ingested
- 30 Nov 2026, 13:42:24 UTC
- Source record
- Official CVE record