CVE-2025-40347

Linux Kernel 5.12.0-6.6.114, 6.7.0-6.12.55, 6.13.0-6.17.5 - Deadlock via Recursive MDIO Lock Acquisition

Title source: llm
STIX 2.1

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.

Scores

EPSS 0.0003
EPSS Percentile 8.4%

Details

Status published
Products (17)
linux/Kernel 5.12.0 - 6.6.115linux
linux/Kernel 6.13.0 - 6.17.6linux
linux/Kernel 6.7.0 - 6.12.56linux
Linux/Linux < 5.12
Linux/Linux 5.10.24 - 5.11
Linux/Linux 5.11.7 - 5.12
Linux/Linux 5.12
Linux/Linux 6.12.56 - 6.12.*
Linux/Linux 6.17.6 - 6.17.*
Linux/Linux 6.18
... and 7 more
Published Dec 16, 2025
Tracked Since Feb 18, 2026