CVE-2026-139290

bpf: Follow the head if an skb is written from a slice

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: Follow the head if an skb is written from a slice

The source of bpf_dynptr_write() may be a slice of the skb which is
written to, that is a pointer into its head. bpf_dynptr_copy() does it by
itself for a copy inside of one skb, if the source is linear and the
destination is not.

__bpf_skb_store_bytes() and __bpf_skb_meta_store_bytes() make the skb
writable first. If that reallocates the head, the source points to the old
one, and freed memory is copied into the packet.

The offsets in the head do not change when it is reallocated here. Move
the source along with the head.

Analysis

AI-generated

Technical impact

This bug occurs in the Linux kernel when a BPF program writes data to a socket buffer via bpf_dynptr_write. The source pointer can come from a slice of the skb (the packet’s head). If the buffer is made writable, the head may be reallocated, leaving the source pointer bound to freed memory. The copy operation then drags stale data into the packet, corrupting kernel memory. This use‑after‑free can lead to arbitrary kernel data modification and potentially privilege escalation or denial of service.

Affected Systems

All Linux kernel deployments that enable BPF with skb write operations are affected. No specific kernel version is listed; the vulnerability is present until the patch referenced in the commit history. Administrators should verify which kernel version they are running and plan an update.

Risk and Exploitability

The CVSS score is not supplied, but the nature of the vulnerability – kernel memory corruption – implies a high risk. EPSS data is unavailable and the issue is not in the CISA KEV list, so no public exploit has been documented. Nevertheless, an attacker who can load malicious BPF code or otherwise trigger a slice write into an skb can exploit the use‑after‑free to alter kernel state.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel version that contains the bpf_dynptr_write fix (see the commit references).
  • Restrict BPF program loading to privileged users or enforce stricter eBPF policy until the kernel update is applied.
  • Monitor system logs for OOPS or WARN messages related to bpf or skb writes and investigate any that appear to indicate memory corruption.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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: Follow the head if an skb is written from a slice The source of bpf_dynptr_write() may be a slice of the skb which is written to, that is a pointer into its head. bpf_dynptr_copy() does it by itself for a copy inside of one skb, if the source is linear and the destination is not. __bpf_skb_store_bytes() and __bpf_skb_meta_store_bytes() make the skb writable first. If that reallocates the head, the source points to the old one, and freed memory is copied into the packet. The offsets in the head do not change when it is reallocated here. Move the source along with the head.
Title bpf: Follow the head if an skb is written from a slice
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