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

Published Nov 30, 2026
·
Updated

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

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the cpumap queue, take a reference to the device for each queued frame entry.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:33 PM
Data Sourced
via MITRE·01:33 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using BPF cpumap redirection can be affected when frames are queued for processing on another CPU. The described path includes frames originating from generic XDP, where the queued skb retains a device pointer.

2

What conditions trigger the use-after-free?

The originating network device must be closed and unregistered while frames referring to it remain in a cpumap queue. If the cpumap kthread is delayed long enough, such as by higher-priority work on its CPU, it can build and deliver skbs using the freed device.

3

How can an affected system be identified?

A KASAN report showing a use-after-free in dev_gro_receive, with a cpumap kthread such as cpumap/1/map:1 involved, is an indicator. The failure occurs when queued frames are processed after their source device has been unregistered.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203