bpf: Leave out the hidden exit edge of a subprogram without an exit
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 5.10.265, < 5.11→ 5.11 ≥ 5.15.216, < 5.16→ 5.16 ≥ 6.1.183, < 6.2→ 6.2 ≥ 6.6.148, < 6.7→ 6.7 ≥ 6.12.101, < 6.13→ 6.13 ≥ 6.18.42, < 6.19→ 6.19 ≥ 6.19.0, < 7.3.6→ 7.3.6 |
5.11 5.16 6.2 6.7 6.13 6.19 7.3.6 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-139606 linux-lts No fixed version in this record
- Debian DEBIAN-CVE-2026-139606 linux Fix available
- Ubuntu UBUNTU-CVE-2026-139606 linux-xilinx-zynqmp, linux-xilinx, linux-vmware +166 more No fixed version in this record
Original description The description as published by the source.
In the Linux kernel, the following vulnerability has been resolved:
bpf: Leave out the hidden exit edge of a subprogram without an exit
visit_abnormal_return_insn() gives tail_call and ld_{abs,ind} insns a
second successor, the exit_idx of their subprogram, so that the hidden
exit from the subprogram is part of the CFG. check_subprogs() only
assigns exit_idx when it walks over a BPF_EXIT, and a subprogram whose
last insn jumps back into itself never has one, so exit_idx stays zero
and the edge points at insn 0 of the program:
0: r0 = 0
1: r0 = *(u8 *)skb[0]
2: goto -2
For a subprogram other than main, update_insn() then reads the liveness
masks at a negative relative index. Such a subprogram can still load
when it leaves through a bpf_throw(), so mark exit_idx as unset in that
case and leave the hidden edge out, as there is no exit for it to reach.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web github.com