# CVE-2026-139293: bpf, cpumap: Hold the device of frames in the queue

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-11-30T13:33:24.921Z
- Modified: 2026-12-01T06:17:41.727Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1c601d829ab0d7ac3ac44853f83db2206afe67fc before ca49e768168cb2f7da4a59b3f2005c02855a064e; from 1c601d829ab0d7ac3ac44853f83db2206afe67fc before 1bcbe066d9cb6176092a60e284568bc1124ae58c; from 1c601d829ab0d7ac3ac44853f83db2206afe67fc before 0bb45ba23b0e03a68964fafb65b03b8e964a6069; from 1c601d829ab0d7ac3ac44853f83db2206afe67fc before f99351272933ba2e1221484a5e53b7a5d2c035f0; 4.15 (not affected: before 4.15; from 6.12.120 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/ca49e768168cb2f7da4a59b3f2005c02855a064e>
- <https://git.kernel.org/stable/c/1bcbe066d9cb6176092a60e284568bc1124ae58c>
- <https://git.kernel.org/stable/c/0bb45ba23b0e03a68964fafb65b03b8e964a6069>
- <https://git.kernel.org/stable/c/f99351272933ba2e1221484a5e53b7a5d2c035f0>

## Sources

- CVE List: [CVE-2026-139293](https://www.cve.org/CVERecord?id=CVE-2026-139293), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139293](https://nvd.nist.gov/vuln/detail/CVE-2026-139293), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139293 · Whole record: https://cve.day/CVE-2026-139293.json · Rebuilt by cve.day 2026-12-01T06:32:20.789Z
