bpf: Leave out the hidden exit edge of a subprogram without an exit

Summary

CVECVE-2026-139606
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:19:42 UTC
Updated2026-11-30 14:19:42 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected e40f5a6bf88a781d5f81bc6b8aab9ac31d8c98dd 046cdb35953063b5d38fa7de541c0bb86011feb2 git Not specified
CNA Linux Linux affected e40f5a6bf88a781d5f81bc6b8aab9ac31d8c98dd 939bb6270ee32cfef0631b30ff07a9e0b8806e64 git Not specified
CNA Linux Linux affected 928d354ae3557e8f755a227e67be88034eb3cd7f git Not specified
CNA Linux Linux affected 8a800497d9f6c2ec9c2c1ba7b71d0ac2ea7f7bbe git Not specified
CNA Linux Linux affected de1055e7f9e67af32b1f3376066272b04e5223c0 git Not specified
CNA Linux Linux affected 37ad2bb11e9de92cb7b94548705eeedd87f7d392 git Not specified
CNA Linux Linux affected 8674e2db06cff6b50f2216eed9a761d15425bb34 git Not specified
CNA Linux Linux affected ce01a4e5cfac7adbe0be565f90cd32ecbb2f8337 git Not specified
CNA Linux Linux affected 5.10.265 5.11 semver Not specified
CNA Linux Linux affected 5.15.216 5.16 semver Not specified
CNA Linux Linux affected 6.1.183 6.2 semver Not specified
CNA Linux Linux affected 6.6.148 6.7 semver Not specified
CNA Linux Linux affected 6.12.101 6.13 semver Not specified
CNA Linux Linux affected 6.18.42 6.19 semver Not specified
CNA Linux Linux affected 6.19 Not specified
CNA Linux Linux unaffected 6.19 semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/939bb6270ee32cfef0631b30ff07a9e0b8806e64 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/046cdb35953063b5d38fa7de541c0bb86011feb2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report