CVE-2026-139292

bpf: Let bpf_dynptr_write() mark a global function

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

bpf: Let bpf_dynptr_write() mark a global function

The caller of a global function loses its packet pointers if the function
may change packet data. That is found out by a scan for calls of the
helpers which bpf_helper_changes_pkt_data() lists.

bpf_dynptr_write() is not on the list, because it depends on the type of
the dynptr: check_helper_call() looks at it. The scan cannot do that, and
so a global function which makes a dynptr from the skb, or gets one as an
argument, and writes through it counts as harmless. The write can
reallocate the head of the skb, and the caller goes on with pointers into
the old one, which has been freed.

Let every call of bpf_dynptr_write() mark the function, as a tail call
does. The same mark decides whether a program may replace a function.

Analysis

AI-generated

Technical impact

bpf_dynptr_write() does not mark a global function properly, so a packet buffer header can be reallocated while callers still hold pointers to the old buffer. This use‑after‑free allows an attacker that can load a malicious eBPF program to trigger the flaw and achieve arbitrary kernel code execution, a classic instance of memory corruption (CWE‑416).

Affected Systems

All Linux kernel releases that have not yet incorporated the patch that marks bpf_dynptr_write() calls. The vulnerability affects every distribution that ships an unpatched kernel version.

Risk and Exploitability

No EPSS score is available and the flaw is not listed in the CISA KEV catalog, but the potential for local privilege escalation via eBPF programs that modify packet data presents a high risk. If a system permits non‑privileged users to load eBPF programs, exploitation is likely feasible.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the bpf_dynptr_write() patch that marks calls as global functions.
  • If an upgrade cannot be performed, configure the kernel or firewall policy to deny loading or executing eBPF programs that use helpers which modify packet data.
  • Apply SELinux or AppArmor rules that restrict eBPF program loading to trusted users only.

Generated by OpenCVE AI on December 1, 2026 at 07:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

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

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Let bpf_dynptr_write() mark a global function The caller of a global function loses its packet pointers if the function may change packet data. That is found out by a scan for calls of the helpers which bpf_helper_changes_pkt_data() lists. bpf_dynptr_write() is not on the list, because it depends on the type of the dynptr: check_helper_call() looks at it. The scan cannot do that, and so a global function which makes a dynptr from the skb, or gets one as an argument, and writes through it counts as harmless. The write can reallocate the head of the skb, and the caller goes on with pointers into the old one, which has been freed. Let every call of bpf_dynptr_write() mark the function, as a tail call does. The same mark decides whether a program may replace a function.
Title bpf: Let bpf_dynptr_write() mark a global function
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: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
Severity
Moderate
Public date
Nov 30, 2026, 1:33 PM