CVE-2026-139303

bpf: Assume no bounds for buffers behind a tail call

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Assume no bounds for buffers behind a tail call

The bpf_map_elem, bpf_sk_storage_map and sockmap iterators hand the key
and the value of an element to the program as buffers. The verifier notes
how far a program reaches into them, and the iterator compares that with
the map when the program is attached. A program that does not touch the
buffers passes. It can tail-call another program of the same target,
which gets the same context, and whose reach nobody compares with the
map:

BUG: KASAN: slab-out-of-bounds in ___bpf_prog_run+0xa46a/0xae80

The program array can be filled at any time, so there is nothing to look
at when the link is made. For the same reason a program with a tail call
is taken to use the whole stack and the whole packet. Take it to reach
as far as can be into the buffers as well, so that these iterators refuse
it with -EACCES.

Analysis

AI-generated

Technical impact

The vulnerability occurs in the Linux kernel's BPF verifier, which mistakenly assumes that buffers accessed behind a tail call have no bounds. When a BPF program that avoids touching these buffers is invoked via a tail call, the verifier does not compare the program's memory reach against the underlying map data. This oversight can allow the program to read or write beyond intended boundaries, leading to kernel memory corruption. Evidence from KASAN shows slab‑out‑of‑bounds errors, indicating that the flaw can cause illegal memory access, potentially yielding arbitrary code execution or privilege escalation.

Affected Systems

All Linux kernel distributions. The CNA data lists Linux:Linux as the vendor and the CVE description indicates the fix concerns bpf_map_elem, bpf_sk_storage_map, and sockmap iterators. This means any kernel version prior to the patch that allows loading of custom BPF programs is affected.

Risk and Exploitability

Attackers would need the ability to load a custom BPF program, typically requiring root privileges or the CAP_BPF capability. Because the flaw resides in the verifier, the exploit path involves crafting a malicious BPF program that accesses memory beyond bound limits, which the kernel will admit. No EPSS score is available and the issue is not listed in CISA KEV, so the probability of exploitation in the wild is unknown. Nevertheless, unchecked memory access indicates high risk to kernel integrity in affected environments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the BPF verifier bounds‑check fix and reboot to load the updated kernel.
  • Restrict the ability to load BPF programs to trusted users or processes by removing CAP_BPF or applying appropriate policy controls, ensuring only privileged accounts can invoke the bpf() syscall.
  • If a kernel upgrade cannot be performed immediately, disable or restrict BPF‑based features such as XDP, sockmap, or maps that use the affected iterators until a patch is available.

Generated by OpenCVE AI on November 30, 2026 at 21:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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: Assume no bounds for buffers behind a tail call The bpf_map_elem, bpf_sk_storage_map and sockmap iterators hand the key and the value of an element to the program as buffers. The verifier notes how far a program reaches into them, and the iterator compares that with the map when the program is attached. A program that does not touch the buffers passes. It can tail-call another program of the same target, which gets the same context, and whose reach nobody compares with the map: BUG: KASAN: slab-out-of-bounds in ___bpf_prog_run+0xa46a/0xae80 The program array can be filled at any time, so there is nothing to look at when the link is made. For the same reason a program with a tail call is taken to use the whole stack and the whole packet. Take it to reach as far as can be into the buffers as well, so that these iterators refuse it with -EACCES.
Title bpf: Assume no bounds for buffers behind a tail call
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM