CVE-2025-40347
net: enetc: fix the deadlock of enetc_mdio_lock
Check your servers for CVE-2025-40347
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40347 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.57%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 48.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, before a649161526736f48bcc592e3a412e5bcd7dd9e24 affected from 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, before 2781ca82ce8cad263d80b617addb727e6a84c9e5 affected from 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, before 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed affected from 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, before 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa affected from 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, before 50bd33f6b3922a6b760aa30d409cae891cec8fb5 affected bf9c564716a13dde6a990d3b02c27cd6e39608bf affected ff966263f5f9fdf9740f03fed0762ce73c230a6a affected from 5.10.24, before 5.11 affected from 5.11.7, before 5.12
Other versions: unaffected
|
| Linux |
affected 5.12 unaffected before 5.12 unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.6.115 up to and including 6.6.* unaffected from 6.12.56 up to and including 6.12.* unaffected from 6.17.6 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40347 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40347
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-40347
trivy image --scanners vuln IMAGE | grep CVE-2025-40347
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a649161526736f48bcc592e3a412e5bcd7dd9e24 git.kernel.org
- https://git.kernel.org/stable/c/2781ca82ce8cad263d80b617addb727e6a84c9e5 git.kernel.org
- https://git.kernel.org/stable/c/1f92f5bd057a4fad9dab6af17963cdd21e5da6ed git.kernel.org
- https://git.kernel.org/stable/c/2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa git.kernel.org
- https://git.kernel.org/stable/c/50bd33f6b3922a6b760aa30d409cae891cec8fb5 git.kernel.org
Source: the record CVE-2025-40347 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse