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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux1c601d829ab0d7ac3ac44853f83db2206afe67fc to before ca49e768168cb2f7da4a59b3f2005c02855a064e Affected1c601d829ab0d7ac3ac44853f83db2206afe67fc to before 1bcbe066d9cb6176092a60e284568bc1124ae58c Affected1c601d829ab0d7ac3ac44853f83db2206afe67fc to before 0bb45ba23b0e03a68964fafb65b03b8e964a6069 Affected1c601d829ab0d7ac3ac44853f83db2206afe67fc to before f99351272933ba2e1221484a5e53b7a5d2c035f0 Affected
Linux Linux4.15 Affectedbefore 4.15 Not Affected6.12.120 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.