CVE-2026-139606

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

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An index out‑of‑bounds flaw in the Linux kernel BPF compiler causes the hidden exit edge of a subprogram to be incorrectly marked, causing the liveness mask to be read at a negative relative address. This misrepresentation can lead to an out‑of‑bounds memory read and ultimately a kernel crash, which manifests as a System Service Availability loss.

Affected Systems

All Linux kernel releases that do not include the patch fixing the BPF exit edge handling are affected. The vulnerability resides in the BPF subsystem and applies to any kernel version where user‑space code can compile and load eBPF programs, regardless of the specific distribution.

Risk and Exploitability

The CVSS score of 4.4 indicates moderate severity, and no EPSS score is available. The vulnerability is not listed in the CISA KEV catalog. The attack vector is local; based on the description, it is inferred that a local attacker with the ability to load BPF programs could trigger the fault. No public exploit has been disclosed, but the lack of safeguards around subprogram exit handling provides a clear code path for a kernel crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the commit that fixes BPF exit‑edge handling.
  • If a kernel upgrade is not immediately possible, restrict eBPF program loading for untrusted users, for example by revoking CAP_SYS_ADMIN or configuring seccomp to limit BPF capabilities.
  • Avoid loading or compiling BPF programs that contain subprograms ending with a self‑jump or a bpf_throw until the patch is applied.

Generated by OpenCVE AI on December 1, 2026 at 17:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
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.
Title bpf: Leave out the hidden exit edge of a subprogram without an exit
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:36 PM