CVE-2026-139608: bpf: Bound the number of indirect jump edges in a program
bpf: Bound the number of indirect jump edges in a program
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
What kind of BPF program triggers the expensive behavior?
The costly case is a program with many gotox instructions where those gotox instructions are also jump targets. This can make the control-flow graph edge count grow quadratically; 1,024 such instructions produce roughly one million edges and can take about four seconds of CPU time to load.
What limit does the fix add?
The fix limits the total number of indirect jump edges across the program to BPF_COMPLEXITY_LIMIT_INSNS, the same limit used for the number of instructions processed by the verifier. Programs using ordinary switch statements are described as being orders of magnitude below this bound.
Does this change limit all costs associated with gotox jump tables?
No. It bounds only the number of control-flow edges. The cost of building a gotox jump table still depends on the total entries in instruction-array maps, even when entries resolve to few distinct targets; that issue is stated to require a later patch.