HIGH Introduced in 6.15
bcmgenet TxNapi UAF
CVE-2026-98574
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: net: bcmgenet: stop Tx NAPI before disabling the queues bcmgenet_netif_stop() and the Wake-on-LAN branch of bcmgenet_suspend() both disable the Tx queues first and stop Tx NAPI several steps later. A completion in flight calls netif_tx_wake_queue() in between, and nothing stops the queue again, so a transmit can reach the rings after they have been freed. Close is safe because dev_deactivate_many() stops the qdisc first. bcmgenet_suspend() does not, so stop Tx NAPI before the queues on both paths. KASAN on a Raspberry Pi CM4, driven from an MTU change because suspend freezes user space before the callback runs: BUG: KASAN: use-after-free in bcmgenet_xmit+0x17f8/0x2258 Write of size 8 at addr ffffff8055844a68 by task ksoftirqd/0/14 bcmgenet_xmit+0x17f8/0x2258 dev_hard_start_xmit+0x13c/0x588 sch_direct_xmit+0x108/0x340 __dev_queue_xmit+0x1190/0x3848
02KernelScan AI Analysis
Risk summary
A use-after-free in the Broadcom GENET Ethernet driver allows a local attacker to corrupt kernel memory by racing a transmit completion against interface teardown during suspend or interface down operations. The vulnerability affects devices using this driver (e.g., Raspberry Pi CM4) when Wake-on-LAN is enabled or the interface is brought down, potentially leading to privilege escalation or kernel crash.
Vulnerability analysis
The bcmgenet driver stops transmit queues before stopping the Tx NAPI polling routine during interface shutdown and system suspend (when Wake-on-LAN is configured). In the window between these two operations, a pending transmit completion interrupt can fire and re-enable the queue via netif_tx_wake_queue(), allowing new transmits to proceed on DMA rings that have already been freed. The fix reorders the operations so Tx NAPI is stopped first, preventing the completion handler from waking a queue that is being torn down. An attacker with local access who can trigger suspend/resume cycles (typically requiring root or physical access) or bring down the network interface (requiring CAP_NET_ADMIN) can exploit this race to achieve kernel memory corruption.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.18 | 6.15 | 6.18.55 | 63bcc2fee641 |
| 7.2 | 6.15 | 7.2.9 | f329d4242308 |
| mainline | 6.15 | 7.3 | 7e87508b5c4d |