Junglewise Threat Intelligence

CVE-2025-40347: Linux Kernel enetc driver deadlock in MDIO lock

CVE-2025-40347 · Severity: info · CVSS 0 · Published 2025-12-16

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's networking driver for certain Freescale hardware could cause the system to hang or become unresponsive. This occurs due to a 'deadlock' where the system gets stuck waiting for internal resources that are already in use. This primarily affects real-time (RT) kernel configurations on specific industrial or networking hardware platforms, potentially leading to a complete service outage.

Technical details

A deadlock exists in the enetc networking driver due to recursive acquisition of the 'enetc_mdio_lock' read lock. In the enetc_poll path, the driver acquires a read lock; if a higher-priority writer attempts to acquire the same lock, it causes preemption. Subsequent attempts by the reader to re-acquire the lock (recursively) fail because a writer is already pending, leading to a thread hang and RCU stalls. This issue specifically impacts the LS1028A platform running a Real-Time (RT) kernel. The fix involves adjusting the locking logic in enetc_poll and associated RX/TX ring cleaning functions to prevent recursive acquisition.

Affected products

  • Linux Linux Kernel LS1028A platform with RT kernel

Timeline

  • 2025-12-16: advisory: CVE-2025-40347 published by kernel.org
  • 2025-10-29: patched: Fix committed to stable kernel trees

References

Related threats