# CVE-2025-40347: net: enetc: fix the deadlock of enetc\_mdio\_lock

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.84% (percentile 55, 2026-11-26)
- **Published:** 2025-12-16T13:30:21.539Z
- **Modified:** 2026-10-14T13:10:00.187Z

## 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

## 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

- Linux: \>= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, \< a649161526736f48bcc592e3a412e5bcd7dd9e24; \>= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, \< 2781ca82ce8cad263d80b617addb727e6a84c9e5; \>= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, \< 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed; \>= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, \< 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa; \>= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, \< 50bd33f6b3922a6b760aa30d409cae891cec8fb5; bf9c564716a13dde6a990d3b02c27cd6e39608bf; ff966263f5f9fdf9740f03fed0762ce73c230a6a; \>= 5.10.24, \< 5.11; \>= 5.11.7, \< 5.12 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- Upgrade Linux to 5.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/a649161526736f48bcc592e3a412e5bcd7dd9e24>
- other: <https://git.kernel.org/stable/c/2781ca82ce8cad263d80b617addb727e6a84c9e5>
- other: <https://git.kernel.org/stable/c/1f92f5bd057a4fad9dab6af17963cdd21e5da6ed>
- other: <https://git.kernel.org/stable/c/2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa>
- other: <https://git.kernel.org/stable/c/50bd33f6b3922a6b760aa30d409cae891cec8fb5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40347>

HTML: <https://flawdb.com/CVE-2025-40347> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40347>
