Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98574 Overview
CVE-2026-98574 is a use-after-free vulnerability in the Broadcom GENET (bcmgenet) Ethernet driver in the Linux kernel. The flaw occurs because bcmgenet_netif_stop() and the Wake-on-LAN branch of bcmgenet_suspend() disable the Tx queues before stopping Tx NAPI. A transmit completion in flight can call netif_tx_wake_queue() between those steps, allowing a transmit to reach the ring buffers after they have been freed. KASAN on a Raspberry Pi CM4 reports a write of size 8 in bcmgenet_xmit+0x17f8/0x2258 triggered during an MTU change while suspend freezes user space before the callback runs. The fix reorders the shutdown sequence so Tx NAPI is stopped before the queues on both paths.
Critical Impact
Local triggering of the race during suspend or interface reconfiguration can lead to kernel memory corruption, potential denial of service, and theoretical privilege escalation on affected Broadcom GENET-based systems such as Raspberry Pi devices.
Affected Products
- Linux kernel versions containing the bcmgenet driver prior to the fix commits
- Broadcom GENET Ethernet controllers (Raspberry Pi 3/4/CM4 and similar SoCs)
- Downstream distributions shipping the vulnerable drivers/net/ethernet/broadcom/genet/bcmgenet.c
Discovery Timeline
- 2026-10-18 - CVE-2026-98574 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98574
Vulnerability Analysis
The bcmgenet driver manages transmit (Tx) rings protected by NAPI polling. During shutdown or suspend, the driver must quiesce the Tx data path cleanly. The vulnerable code paths in bcmgenet_netif_stop() and the Wake-on-LAN branch of bcmgenet_suspend() disable the Tx queues first, then perform several unrelated steps before stopping Tx NAPI. During that window, an in-flight transmit completion handler can invoke netif_tx_wake_queue(), re-enabling the queue the driver just disabled. A subsequent bcmgenet_xmit() call then writes to Tx ring descriptors that have already been freed, producing a classic use-after-free condition flagged by KASAN.
The close path is unaffected because dev_deactivate_many() stops the qdisc before the driver tears down queues. The suspend path bypasses that protection, exposing the race.
Root Cause
The root cause is an ordering defect in the Tx shutdown sequence. The driver assumes disabling queues alone is sufficient to prevent further transmits, but a concurrent NAPI completion can wake the queue again. Without first stopping NAPI, the invariant that no new packets reach the rings cannot be maintained.
Attack Vector
Triggering requires local actions that drive the vulnerable code paths, such as changing the interface MTU, initiating a system suspend with Wake-on-LAN enabled, or toggling network state while traffic is in flight. The reporter reproduced the crash on a Raspberry Pi CM4 by changing MTU because suspend freezes user space before the callback runs. Exploitation beyond denial of service would require shaping the freed memory, which is difficult but not categorically excluded for kernel use-after-free bugs.
See the upstream fix in Kernel Git Commit f329d42 for the authoritative technical description.
Detection Methods for CVE-2026-98574
Indicators of Compromise
- KASAN reports showing BUG: KASAN: use-after-free in bcmgenet_xmit in the kernel log
- Call traces including bcmgenet_xmit, dev_hard_start_xmit, sch_direct_xmit, and __dev_queue_xmit
- Unexplained network interface stalls, driver resets, or kernel panics on Broadcom GENET hardware following suspend/resume cycles or MTU changes
Detection Strategies
- Audit running kernel versions against the fix commits 63bcc2f, 7e87508, and f329d42 on systems using Broadcom GENET
- Enable KASAN in test or canary builds on affected hardware to surface the race during QA
- Collect dmesg and journalctl -k output from fleets of Raspberry Pi and similar devices for post-suspend oops signatures
Monitoring Recommendations
- Forward kernel ring buffer events to a central log pipeline and alert on KASAN or oops entries referencing bcmgenet
- Track suspend/resume cycles and MTU changes on managed edge devices to correlate with driver faults
- Monitor fleet-wide crash rates after kernel upgrades to confirm the fix is deployed
How to Mitigate CVE-2026-98574
Immediate Actions Required
- Apply the upstream kernel patches referenced below or upgrade to a distribution kernel that includes them
- On unpatched systems, avoid dynamic MTU changes and disable Wake-on-LAN until the fix is deployed
- Prioritize patching Broadcom GENET-based edge devices that undergo frequent suspend/resume cycles
Patch Information
The fix reorders the Tx shutdown sequence to stop Tx NAPI before disabling the Tx queues in both bcmgenet_netif_stop() and the Wake-on-LAN branch of bcmgenet_suspend(). Mainline and stable fixes are available at Kernel Git Commit 63bcc2f, Kernel Git Commit 7e87508, and Kernel Git Commit f329d42.
Workarounds
- Disable Wake-on-LAN on affected interfaces with ethtool -s <iface> wol d to avoid the suspend branch condition
- Avoid runtime MTU changes on bcmgenet interfaces until the kernel is updated
- Where feasible, shut interfaces down with ip link set <iface> down before suspending, which routes through the safe close path
# Disable Wake-on-LAN and bring the interface down before suspend
ethtool -s eth0 wol d
ip link set eth0 down
systemctl suspend
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

