Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139293

published high CVSS 3.1 · 8.1

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

Published
30 Nov 2026, 13:33:24 UTC
Updated
01 Dec 2026, 05:42:13 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1c601d829ab0d7ac3ac44853f83db2206afe67fc to < ca49e768168cb2f7da4a59b3f2005c02855a064e · 1c601d829ab0d7ac3ac44853f83db2206afe67fc to < 1bcbe066d9cb6176092a60e284568bc1124ae58c · 1c601d829ab0d7ac3ac44853f83db2206afe67fc to < 0bb45ba23b0e03a68964fafb65b03b8e964a6069 · 1c601d829ab0d7ac3ac44853f83db2206afe67fc to < f99351272933ba2e1221484a5e53b7a5d2c035f0 · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.15 (affected) · 0 to < 4.15 (unaffected · semver) · 6.12.120 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The frames stuck in rcpu->queue are packets a remote sender delivered to the XDP NIC. bpf_redirect_map(cpumap) queues them through xdp_do_redirect->cpu_map_enqueue/bq_flush_to_queue, or cpu_map_generic_redirect for skbs, with xdpf->dev_rx/skb->dev unreferenced. cpu_map_kthread_run later processes those routed Ethernet/IP frames against the freed net_device. AC:H - The device has to be unregistered while frames are queued, by an admin link delete or unbind, a hot-unplug or a netns teardown. unregister_netdevice_many_notify/netdev_run_todo wait only for napi_disable, synchronize_net and rcu_barrier, not for the kthread. A remote sender cannot cause the unregister, and the XDP+cpumap deployment is admin-made; flooding only keeps the ring (qsize<=16384) full. PR:N - Loading the BPF_PROG_TYPE_XDP program and creating BPF_MAP_TYPE_CPUMAP need init-ns CAP_BPF/CAP_NET_ADMIN (bpf_token_capable with no token), but that is the operator's setup. The attacker needs no credentials, only to send frames that the XDP program redirects into the cpumap. UI:N - No victim action is needed. The device unregistration is a routine admin, hotplug or container-teardown event outside the attacker's control and is already counted in AC:H; the attacker's own traffic supplies the queued frames. S:U - The freed net_device and the kthread that dereferences it, in GRO and the receive path, are both in the same host kernel. No VM, IOMMU or sandbox boundary is crossed. C:H - After the free, __xdp_build_skb_from_frame->eth_type_trans(dev) and gro_receive_skb->dev_gro_receive/__netif_receive_skb_core read the freed kvmalloc'd net_device (dev_addr, features, ptype_all, rx_handler). Reclaiming that object with controlled data steers kernel pointer reads and packet delivery, which allows kernel memory disclosure. I:H - __netif_receive_skb_core calls rcu_dereference(skb->dev->rx_handler) and pt_prev->func from the dev->ptype_all list. Both are fetched from the freed net_device, so a reclaimed object gives an attacker-chosen indirect call, i.e. control-flow hijack. A:H - The fix commit shows a KASAN use-after-free in dev_gro_receive in the cpumap/N kthread. Without KASAN, the stale or reclaimed device crashes in softirq/BH context in the kthread and takes the host down.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1c601d829ab0d7ac3ac44853f83db2206afe67fc to < ca49e768168cb2f7da4a59b3f2005c02855a064e (affected · git)1c601d829ab0d7ac3ac44853f83db2206afe67fc to < 1bcbe066d9cb6176092a60e284568bc1124ae58c (affected · git)1c601d829ab0d7ac3ac44853f83db2206afe67fc to < 0bb45ba23b0e03a68964fafb65b03b8e964a6069 (affected · git)1c601d829ab0d7ac3ac44853f83db2206afe67fc to < f99351272933ba2e1221484a5e53b7a5d2c035f0 (affected · git)Default: unaffected Linux · cna
Linux Linux 4.15 (affected)0 to < 4.15 (unaffected · semver)6.12.120 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
33be07be9e184d41dcfa424b77ec2b6c8f97dbb423c91cec63f97c138a2d0292
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected