CVE-2026-139606
publishedbpf: Leave out the hidden exit edge of a subprogram without an exit
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe40f5a6bf88a781d5f81bc6b8aab9ac31d8c98dd to < 046cdb35953063b5d38fa7de541c0bb86011feb2 · e40f5a6bf88a781d5f81bc6b8aab9ac31d8c98dd to < 939bb6270ee32cfef0631b30ff07a9e0b8806e64 · 928d354ae3557e8f755a227e67be88034eb3cd7f · 8a800497d9f6c2ec9c2c1ba7b71d0ac2ea7f7bbe · de1055e7f9e67af32b1f3376066272b04e5223c0 · 37ad2bb11e9de92cb7b94548705eeedd87f7d392 · 8674e2db06cff6b50f2216eed9a761d15425bb34 · ce01a4e5cfac7adbe0be565f90cd32ecbb2f8337 · 5.10.265 to < 5.11 · 5.15.216 to < 5.16 · 6.1.183 to < 6.2 · 6.6.148 to < 6.7 · 6.12.101 to < 6.13 · 6.18.42 to < 6.19 · 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: 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.
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 | e40f5a6bf88a781d5f81bc6b8aab9ac31d8c98dd to < 046cdb35953063b5d38fa7de541c0bb86011feb2 (affected · git)e40f5a6bf88a781d5f81bc6b8aab9ac31d8c98dd to < 939bb6270ee32cfef0631b30ff07a9e0b8806e64 (affected · git)928d354ae3557e8f755a227e67be88034eb3cd7f (affected · git)8a800497d9f6c2ec9c2c1ba7b71d0ac2ea7f7bbe (affected · git)de1055e7f9e67af32b1f3376066272b04e5223c0 (affected · git)37ad2bb11e9de92cb7b94548705eeedd87f7d392 (affected · git)8674e2db06cff6b50f2216eed9a761d15425bb34 (affected · git)ce01a4e5cfac7adbe0be565f90cd32ecbb2f8337 (affected · git)5.10.265 to < 5.11 (affected · semver)5.15.216 to < 5.16 (affected · semver)6.1.183 to < 6.2 (affected · semver)6.6.148 to < 6.7 (affected · semver)6.12.101 to < 6.13 (affected · semver)6.18.42 to < 6.19 (affected · semver)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: Leave out the hidden exit edge of a subprogram without an exit
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7cda4f553a0894ca329d046edffa9d9e971500a2c81ac32b324bb04b1e876462
- Ingested
- 30 Nov 2026, 13:42:24 UTC
- Source record
- Official CVE record