AZL-117013: CVE-2026-139293 affecting package kernel 6.6.161.1-1
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 devgroreceive+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.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
Frames must be redirected to another CPU through a BPF cpumap entry and remain queued while the originating network device is closed and unregistered. Exploitation depends on the cpumap kthread being delayed long enough that it later processes frames referencing the freed device.
Which systems are most likely exposed?
Systems using BPF cpumap-based CPU redirection are the relevant exposure group. The issue specifically involves queued frames associated with a network device that is subsequently removed.
How can I tell whether a system may already be affected?
Affected systems may report a KASAN use-after-free involving dev_gro_receive, potentially from a cpumap kthread such as cpumap/1/map. The described failure occurs when that thread builds and submits skbs after the referenced device has been freed.
What changes in the resolved implementation reduce the risk?
The fix holds a device reference for each queued entry and releases references only after a full GRO flush. It also ensures a device with queued frames is not unregistered until the cpumap kthread has processed those frames.