CVE-2026-139607

bpf: Rebase the exception callback subprog when dead subprogs are removed

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: Rebase the exception callback subprog when dead subprogs are removed

adjust_subprog_starts_after_remove() compacts subprog_info[] and the
func_info when whole subprograms are removed as dead code, but leaves
env->exception_callback_subprog alone, so an exception callback declared
through the exception_callback decl tag which sits behind a removed
subprogram keeps its old index. jit_subprogs() then takes the exception
callback from func[] at that index, which is past the end when the
callback was the last subprogram, or another subprogram otherwise.

Rebase the index along with the entries it refers to.

Analysis

AI-generated

Technical impact

The Linux kernel’s eBPF JIT compiler does not update the exception_callback_subprog index when subprograms are removed as dead code. This causes the compiler to later reference a stale index during exception callback resolution, potentially reading beyond the end of the subprogram array or pointing to an invalid program. If an attacker can load a malicious eBPF program that triggers this behavior, the kernel could crash or corrupt memory, resulting in a local denial of service.

Affected Systems

The issue affects all Linux kernel versions that build eBPF programs with the subprogram removal logic referenced in the commit. No version range is given in the CVE entry, so any kernel derived from that code path that has not incorporated the fix is potentially vulnerable. The vulnerability is tied to Linux, so it applies to all distributions that ship the affected kernel version.

Risk and Exploitability

The CVSS score of 4.4 indicates a moderate severity. The EPSS score of < 1 % shows a very low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. The flaw remains local, requiring an attacker to load or influence kernel‑level eBPF code. If triggered, the stale exception_callback_subprog index can cause the kernel to crash or corrupt memory, producing a denial of service. Given the low exploitation probability but potential impact, administrators should apply the fix promptly while monitoring for anomalous eBPF activity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that contains the commit 1969470a530e376e87e9497a00ff25e32da922e1 or later, which re‑bases the exception callback index.
  • Until a patch is available, restrict eBPF program loading to privileged users only or disable BPF subsystems using sysctl or kernel command line options.
  • Disable or harden automatic module loading to prevent the loading of vulnerable eBPF modules.
  • Monitor kernel logs for BPF‑related crashes and apply updates as soon as they become available.

Generated by OpenCVE AI on December 2, 2026 at 17:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
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
Weaknesses CWE-119
Type Values Removed Values Added
Weaknesses CWE-119
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Rebase the exception callback subprog when dead subprogs are removed adjust_subprog_starts_after_remove() compacts subprog_info[] and the func_info when whole subprograms are removed as dead code, but leaves env->exception_callback_subprog alone, so an exception callback declared through the exception_callback decl tag which sits behind a removed subprogram keeps its old index. jit_subprogs() then takes the exception callback from func[] at that index, which is past the end when the callback was the last subprogram, or another subprogram otherwise. Rebase the index along with the entries it refers to.
Title bpf: Rebase the exception callback subprog when dead subprogs are removed
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