net: enetc: fix the deadlock of enetc_mdio_lock

Summary

CVECVE-2025-40347
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-12-16 14:15:46 UTC
Updated2026-06-01 17:16:36 UTC
DescriptionIn 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.

Risk And Classification

EPSS: 0.000290000 probability, percentile 0.088940000 (date 2026-06-04)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3 a649161526736f48bcc592e3a412e5bcd7dd9e24 git Not specified
CNA Linux Linux affected 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3 2781ca82ce8cad263d80b617addb727e6a84c9e5 git Not specified
CNA Linux Linux affected 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed git Not specified
CNA Linux Linux affected 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa git Not specified
CNA Linux Linux affected 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3 50bd33f6b3922a6b760aa30d409cae891cec8fb5 git Not specified
CNA Linux Linux affected bf9c564716a13dde6a990d3b02c27cd6e39608bf git Not specified
CNA Linux Linux affected ff966263f5f9fdf9740f03fed0762ce73c230a6a git Not specified
CNA Linux Linux affected 5.10.24 5.11 semver Not specified
CNA Linux Linux affected 5.11.7 5.12 semver Not specified
CNA Linux Linux affected 5.12 Not specified
CNA Linux Linux unaffected 5.12 semver Not specified
CNA Linux Linux unaffected 6.1.175 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.115 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.56 6.12.* semver Not specified
CNA Linux Linux unaffected 6.17.6 6.17.* semver Not specified
CNA Linux Linux unaffected 6.18 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/2781ca82ce8cad263d80b617addb727e6a84c9e5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a649161526736f48bcc592e3a412e5bcd7dd9e24 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/50bd33f6b3922a6b760aa30d409cae891cec8fb5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1f92f5bd057a4fad9dab6af17963cdd21e5da6ed 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report