Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-40347

HIGH 7.5EPSS 55%

net: enetc: fix the deadlock of enetc_mdio_lock

Mitigation

  • Upgrade Linux to 5.12 or later.

Who should check

  • Anyone running Linux >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < a649161526736f48bcc592e3a412e5bcd7dd9e24; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 2781ca82ce8cad263d80b617addb727e6a84c9e5; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 50bd33f6b3922a6b760aa30d409cae891cec8fb5; bf9c564716a13dde6a990d3b02c27cd6e39608bf; ff966263f5f9fdf9740f03fed0762ce73c230a6a; >= 5.10.24, < 5.11; >= 5.11.7, < 5.12
  • Anyone running Linux 5.12

Vulnerability facts

Affected
Linux >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < a649161526736f48bcc592e3a412e5bcd7dd9e24; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 2781ca82ce8cad263d80b617addb727e6a84c9e5; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 50bd33f6b3922a6b760aa30d409cae891cec8fb5; bf9c564716a13dde6a990d3b02c27cd6e39608bf; ff966263f5f9fdf9740f03fed0762ce73c230a6a; >= 5.10.24, < 5.11; >= 5.11.7, < 5.12; Linux 5.12
Fixed in
Linux 2781ca82ce8cad263d80b617addb727e6a84c9e5, Linux 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed, Linux 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa, Linux 50bd33f6b3922a6b760aa30d409cae891cec8fb5, Linux 5.11, Linux 5.12
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.84% chance of exploitation in 30 days (percentile 55, 2026-11-26)
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
Linux>= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < a649161526736f48bcc592e3a412e5bcd7dd9e24; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 2781ca82ce8cad263d80b617addb727e6a84c9e5; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 50bd33f6b3922a6b760aa30d409cae891cec8fb5; bf9c564716a13dde6a990d3b02c27cd6e39608bf; ff966263f5f9fdf9740f03fed0762ce73c230a6a; >= 5.10.24, < 5.11; >= 5.11.7, < 5.12—cvelist
Linux5.12—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-40347. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40347.md
Affected: Linux >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < a649161526736f48bcc592e3a412e5bcd7dd9e24; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 2781ca82ce8cad263d80b617addb727e6a84c9e5; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed; >= 6d36ecdbc4410e61a0e02ad…
Fixed in: Linux 2781ca82ce8cad263d80b617addb727e6a84c9e5, Linux 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed, Linux 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa, Linux 50bd33f6b3922a6b760aa30d409cae891cec8fb5, Linux 5.11, Linux 5.12

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-40347 being exploited?

There is no confirmed exploitation: CVE-2025-40347 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.84% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-40347?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2025-40347?

Linux >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < a649161526736f48bcc592e3a412e5bcd7dd9e24; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 2781ca82ce8cad263d80b617addb727e6a84c9e5; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa; >= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 50bd33f6b3922a6b760aa30d409cae891cec8fb5; bf9c564716a13dde6a990d3b02c27cd6e39608bf; ff966263f5f9fdf9740f03fed0762ce73c230a6a; >= 5.10.24, < 5.11; >= 5.11.7, < 5.12; Linux 5.12.

Is there a fix for CVE-2025-40347?

Yes. Fixed in Linux 2781ca82ce8cad263d80b617addb727e6a84c9e5, Linux 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed, Linux 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa, Linux 50bd33f6b3922a6b760aa30d409cae891cec8fb5, Linux 5.11, Linux 5.12. Upgrade Linux to 5.12 or later.

How do I check if I'm affected by CVE-2025-40347?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors