CVE-2026-139142

net: bcmgenet: recover from a failed resume

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: bcmgenet: recover from a failed resume

A resume that fails in bcmgenet_init_dma() returns with the interface
still IFF_UP and the datapath gone. The next ifdown runs the teardown
a second time and napi_disable() waits for a NAPI_STATE_SCHED bit that
nothing will clear:

task:ip state:D
usleep_range_state+0xec/0x158
napi_disable_locked+0x254/0x318
napi_disable+0x3c/0x68
bcmgenet_netif_stop+0x1c8/0x318
bcmgenet_close+0x24/0xd0
__dev_close_many+0x18c/0x310

RTNL is held across the wait, so everything else blocks behind it.

The same resume gates the clock and detaches the device. Close releases
the clock a second time and ifup fails with -ENODEV. The hardware filters
stay armed, so the next WoL suspend wakes on any frame. That suspend sets
CMD_RX_EN for magic packet detection, so the WoL resume reuses rings that
are gone.

A failed resume should leave a state the ordinary paths can handle. Clear
rx_cbs and tx_cbs as they are freed so they answer whether a datapath
exists, and leave the clock alone so close and suspend release it once.
The WoL resume rebuilds instead, so stop the PHY first, phy_start() only
takes PHY_READY or PHY_HALTED.

Flagged in a sashiko review and reproduced on a CM4 by forcing the resume
allocation to fail.

Analysis

AI-generated

Technical impact

A failure in the bcmgenet driver during a DMA initialization leaves the network interface marked IFF_UP while its datapath has been torn down. A subsequent ifdown then attempts to tear the interface down again, causing a NAPI disable loop that never exits. Because the RTNL lock is held across this wait, all other network operations block, effectively freezing the entire network stack. The driver also releases its clock twice; the next ifup fails with -ENODEV and Wake‑on‑LAN resumes may leave hardware filters armed, producing spurious wake‑ups. The result is a denial‑of‑service condition that manifests as a hung device or sluggish network service.

Affected Systems

The affected systems are all Linux builds that include the bcmgenet driver, which is used in many distributions that support Broadcom Ethernet controllers. Specific vulnerable kernel versions are not enumerated in the source, so any kernel before the patch that adds proper error handling in bcmgenet_init_dma() remains vulnerable.

Risk and Exploitability

No CVSS or EPSS values are published for this issue, and the vulnerability is not listed in CISA’s KEV catalog. The risk is therefore assessed as moderate to high, given the severity of a network or kernel freeze and the fact that an attacker may trigger a resume failure via DMA allocation denial or other low‑level conditions. The lack of publicly available exploit code or metrics makes precise exploitability difficult to gauge, but the attacker would require the ability to cause the resume operation to fail, which may be limited to local or high‑privilege contexts.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the bcmgenet driver patch you can obtain by updating to the distribution’s latest kernel package. The patch clears incomplete callbacks and avoids double‑releasing the clock, allowing the driver to recover cleanly from a failed resume.
  • Reboot the system after installing the updated kernel so that the patch is loaded and all RTNL locks are released. This ensures normal network operation resumes without lingering deadlocks.
  • If an immediate kernel upgrade is not possible, disable Wake‑on‑LAN for the affected Broadcom interfaces or avoid forcing a driver resume operation until the patched kernel is available, to reduce the window during which the flaw can be triggered.

Generated by OpenCVE AI on December 1, 2026 at 09:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-404
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: bcmgenet: recover from a failed resume A resume that fails in bcmgenet_init_dma() returns with the interface still IFF_UP and the datapath gone. The next ifdown runs the teardown a second time and napi_disable() waits for a NAPI_STATE_SCHED bit that nothing will clear: task:ip state:D usleep_range_state+0xec/0x158 napi_disable_locked+0x254/0x318 napi_disable+0x3c/0x68 bcmgenet_netif_stop+0x1c8/0x318 bcmgenet_close+0x24/0xd0 __dev_close_many+0x18c/0x310 RTNL is held across the wait, so everything else blocks behind it. The same resume gates the clock and detaches the device. Close releases the clock a second time and ifup fails with -ENODEV. The hardware filters stay armed, so the next WoL suspend wakes on any frame. That suspend sets CMD_RX_EN for magic packet detection, so the WoL resume reuses rings that are gone. A failed resume should leave a state the ordinary paths can handle. Clear rx_cbs and tx_cbs as they are freed so they answer whether a datapath exists, and leave the clock alone so close and suspend release it once. The WoL resume rebuilds instead, so stop the PHY first, phy_start() only takes PHY_READY or PHY_HALTED. Flagged in a sashiko review and reproduced on a CM4 by forcing the resume allocation to fail.
Title net: bcmgenet: recover from a failed resume
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-404

    Improper Resource Shutdown or Release

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:31 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM