CVE-2025-40347

net: enetc: fix the deadlock of enetc_mdio_lock

HIGH
7.5
CVSS Score
Published: December 16, 2025 at 01:30 PM UTC
Updated: October 14, 2026 at 01:10 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.5%

Description

In the Linux kernel, the following vulnerability has been resolved: net: enetc: fix the deadlock of enetc_mdio_lock After applying the workaround for err050089, the LS1028A platform experiences RCU stalls on RT kernel. This issue is caused by the recursive acquisition of the read lock enetc_mdio_lock. Here list some of the call stacks identified under the enetc_poll path that may lead to a deadlock: enetc_poll -> enetc_lock_mdio -> enetc_clean_rx_ring OR napi_complete_done -> napi_gro_receive -> enetc_start_xmit -> enetc_lock_mdio -> enetc_map_tx_buffs -> enetc_unlock_mdio -> enetc_unlock_mdio After enetc_poll acquires the read lock, a higher-priority writer attempts to acquire the lock, causing preemption. The writer detects that a read lock is already held and is scheduled out. However, readers under enetc_poll cannot acquire the read lock again because a writer is already waiting, leading to a thread hang. Currently, the deadlock is avoided by adjusting enetc_lock_mdio to prevent recursive lock acquisition.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.10.24 ≤ v < 5.115.11.7 ≤ v < 5.125.10.245.11.75.126d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3bf9c564716a13dde6a990d3b02c27cd6e39608bfff966263f5f9fdf9740f03fed0762ce73c230a6a
Vendor states this is fixed in 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed (fixed)
Vendor states this is fixed in 2781ca82ce8cad263d80b617addb727e6a84c9e5 (fixed)
Vendor states this is fixed in 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa (fixed)
Vendor states this is fixed in 50bd33f6b3922a6b760aa30d409cae891cec8fb5 (fixed)
Vendor states this is fixed in a649161526736f48bcc592e3a412e5bcd7dd9e24 (fixed)
Affected range stops below 5.11, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.12 (unaffected)
Vendor states this is fixed in 6.1.175 (unaffected)
Vendor states this is fixed in 6.12.56 (unaffected)
Vendor states this is fixed in 6.17.6 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)
Vendor states this is fixed in 6.6.115 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

CVSS

7.5HIGHLinux
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card