CVE-2026-139300

bpf: Don't take an extension for a writable raw tracepoint program

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: Don't take an extension for a writable raw tracepoint program

bpf_probe_register() compares max_tp_access of the program that is
attached with the size of the buffer that the tracepoint lets programs
write to. An extension of that program, or of one of its global
functions, gets the same context and the same pointer to the buffer. What
it accesses is noted in its own max_tp_access, which nobody looks at. So
it reads and writes behind the buffer, of a tracepoint that may have none:

BUG: KASAN: stack-out-of-bounds in bpf_prog_5843f2b820eb4929_tr26_ext_far+0xf4/0x10c
Write of size 4 at addr ffffc90000d8f894 by task wext/103

Refuse such extensions.

Analysis

AI-generated

Technical impact

The vulnerability occurs when a BPF program extension is attached to a writable raw tracepoint. The kernel checks the maximum tracepoint access of the original program but ignores the extension’s access size, allowing the extension to read or write beyond the intended buffer. This leads to out‑of‑bounds memory writes that can corrupt kernel data structures, potentially affecting system stability and integrity.

Affected Systems

All Linux kernel releases that have not incorporated the security patch rejecting tracepoint program extensions are affected. The CVE does not specify precise version ranges, implying that any kernel permitting bpf_probe_register on writable raw tracepoints without rejecting extensions remains vulnerable.

Risk and Exploitability

The CVSS score is not listed, the EPSS score is unavailable, and the vulnerability is not catalogued in CISA KEV. Based on the description, it is inferred that a local attacker who can load a malicious BPF program may exploit the flaw. The attack would require privileged BPF program creation and could result in kernel memory corruption, potentially leading to privilege escalation or system compromise, but no public exploit has been documented.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the patch rejecting tracepoint program extensions.
  • Disallow or remove custom BPF programs that use bpf_probe_register on raw tracepoints, especially if the functionality is not required.
  • Configure kernel hardening or sysctl settings to limit BPF extension capabilities, or disable CONFIG_BPF_EXTENSIONS if the platform does not need them.

Generated by OpenCVE AI on December 1, 2026 at 11:17 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
Weaknesses CWE-119
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Don't take an extension for a writable raw tracepoint program bpf_probe_register() compares max_tp_access of the program that is attached with the size of the buffer that the tracepoint lets programs write to. An extension of that program, or of one of its global functions, gets the same context and the same pointer to the buffer. What it accesses is noted in its own max_tp_access, which nobody looks at. So it reads and writes behind the buffer, of a tracepoint that may have none: BUG: KASAN: stack-out-of-bounds in bpf_prog_5843f2b820eb4929_tr26_ext_far+0xf4/0x10c Write of size 4 at addr ffffc90000d8f894 by task wext/103 Refuse such extensions.
Title bpf: Don't take an extension for a writable raw tracepoint program
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

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