CVE-2026-98574: net: bcmgenet: stop Tx NAPI before disabling the queues
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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
The Linux kernel CVE team has assigned CVE-2026-98574 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 254f3239dd070e469f45c3ca8b6ac38e47d6c730 and fixed in 6.18.55 with commit 63bcc2fee6419963e45e7c2cd698fa862409601d Issue introduced in 6.15 with commit 254f3239dd070e469f45c3ca8b6ac38e47d6c730 and fixed in 7.2.9 with commit f329d42423089904758f2685cda295de9bf99441 Issue introduced in 6.15 with commit 254f3239dd070e469f45c3ca8b6ac38e47d6c730 and fixed in 7.3-rc5 with commit 7e87508b5c4d81210d0a736ed01962e52f5c4c56
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98574
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/broadcom/genet/bcmgenet.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/63bcc2fee6419963e45e7c2cd698fa862409601d https://git.kernel.org/stable/c/f329d42423089904758f2685cda295de9bf99441 https://git.kernel.org/stable/c/7e87508b5c4d81210d0a736ed01962e52f5c4c56