CVE-2026-139293

bpf, cpumap: Hold the device of frames in the queue

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

bpf, cpumap: Hold the device of frames in the queue

A frame that is redirected to another CPU waits in the queue of the cpumap
entry with a plain pointer to the device it came from, and an skb from
generic XDP with skb->dev. Nothing keeps that device. Closing and
unregistering it waits for its NAPI and for RCU, but not for the kthread
of the entry. If the kthread is late by more than that, since its CPU is
busy with something of a higher priority, it builds skbs for a device that
has been freed and hands them to the stack:

BUG: KASAN: use-after-free in dev_gro_receive+0x1f51/0x2b30
Read of size 8 at addr ffff88800a7340b0 by task cpumap/1/map:1/54

Take a reference to the device for each entry of the queue. The kthread
cannot drop it at the end of the batch, since its GRO node may keep the skb
for longer. Let it note the devices and drop the references behind a full
GRO flush, which it does whenever the queue is empty, and from now on also
when it has noted about 2048 of them.

A device whose frames are stuck in a queue is now unregistered only when
the kthread has got to them. RTNL is not held meanwhile, but if the device
goes with its network namespace, the cleanup of all namespaces waits.

Analysis

AI-generated

Technical impact

The vulnerability is a use‑after‑free in the Linux kernel's BPF cpumap handling for XDP packet processing. A frame queued on a device can be processed after its device has been unregistered, causing a stale device pointer dereference inside dev_gro_receive. This flaw results in unexpected kernel memory corruption, which can lead to a kernel panic or other forms of system instability. On a privileged system, such corruption could potentially be leveraged for privilege escalation.

Affected Systems

The bug affects the Linux kernel, as indicated by the CNA vendors and CPE. Any kernel build that includes the legacy cpumap handling for BPF XDP is potentially affected until the patch is applied.

Risk and Exploitability

The CVSS score and EPSS are not available; the vulnerability is not listed in the CISA KEV catalog. A local attacker with the ability to inject packets or manipulate XDP programs on a network interface could trigger the use‑after‑free, causing kernel memory corruption, a crash, or potentially privilege escalation. No public exploits have been reported, but the nature of the flaw is severe and could be leveraged by a determined attacker.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch referenced in the commit logs to fix the cpumap use‑after‑free bug.
  • Disable or remove XDP programs that use cpumap on affected interfaces while a patch is pending.
  • Reboot or restart network interfaces to flush any queued frames that may reference the freed device.

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-416
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf, cpumap: Hold the device of frames in the queue A frame that is redirected to another CPU waits in the queue of the cpumap entry with a plain pointer to the device it came from, and an skb from generic XDP with skb->dev. Nothing keeps that device. Closing and unregistering it waits for its NAPI and for RCU, but not for the kthread of the entry. If the kthread is late by more than that, since its CPU is busy with something of a higher priority, it builds skbs for a device that has been freed and hands them to the stack: BUG: KASAN: use-after-free in dev_gro_receive+0x1f51/0x2b30 Read of size 8 at addr ffff88800a7340b0 by task cpumap/1/map:1/54 Take a reference to the device for each entry of the queue. The kthread cannot drop it at the end of the batch, since its GRO node may keep the skb for longer. Let it note the devices and drop the references behind a full GRO flush, which it does whenever the queue is empty, and from now on also when it has noted about 2048 of them. A device whose frames are stuck in a queue is now unregistered only when the kthread has got to them. RTNL is not held meanwhile, but if the device goes with its network namespace, the cleanup of all namespaces waits.
Title bpf, cpumap: Hold the device of frames in the queue
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
Dec 1, 2026, 5:42 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Dec 1, 2026, 6:17 AM
Severity
Moderate
Public date
Nov 30, 2026, 1:33 PM