{"id":"CVE-2025-40347","published":"2025-12-16T13:30:21Z","modified":"2026-08-05T12:09:48Z","title":"net: enetc: fix the deadlock of enetc_mdio_lock","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: enetc: fix the deadlock of enetc_mdio_lock\n\nAfter applying the workaround for err050089, the LS1028A platform\nexperiences RCU stalls on RT kernel. This issue is caused by the\nrecursive acquisition of the read lock enetc_mdio_lock. Here list some\nof the call stacks identified under the enetc_poll path that may lead to\na deadlock:\n\nenetc_poll\n  -> enetc_lock_mdio\n  -> enetc_clean_rx_ring OR napi_complete_done\n     -> napi_gro_receive\n        -> enetc_start_xmit\n           -> enetc_lock_mdio\n           -> enetc_map_tx_buffs\n           -> enetc_unlock_mdio\n  -> enetc_unlock_mdio\n\nAfter enetc_poll acquires the read lock, a higher-priority writer attempts\nto acquire the lock, causing preemption. The writer detects that a\nread lock is already held and is scheduled out. However, readers under\nenetc_poll cannot acquire the read lock again because a writer is already\nwaiting, leading to a thread hang.\n\nCurrently, the deadlock is avoided by adjusting enetc_lock_mdio to prevent\nrecursive lock acquisition.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00566,"percentile":0.47547,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a649161526736f48bcc592e3a412e5bcd7dd9e24","tags":[]},{"url":"https://git.kernel.org/stable/c/2781ca82ce8cad263d80b617addb727e6a84c9e5","tags":[]},{"url":"https://git.kernel.org/stable/c/1f92f5bd057a4fad9dab6af17963cdd21e5da6ed","tags":[]},{"url":"https://git.kernel.org/stable/c/2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa","tags":[]},{"url":"https://git.kernel.org/stable/c/50bd33f6b3922a6b760aa30d409cae891cec8fb5","tags":[]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":9.51},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < a649161526736f48bcc592e3a412e5bcd7dd9e24",">= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 2781ca82ce8cad263d80b617addb727e6a84c9e5",">= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed",">= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa",">= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, < 50bd33f6b3922a6b760aa30d409cae891cec8fb5","bf9c564716a13dde6a990d3b02c27cd6e39608bf","ff966263f5f9fdf9740f03fed0762ce73c230a6a",">= 5.10.24, < 5.11",">= 5.11.7, < 5.12"]},{"vendor":"Linux","product":"Linux","versions":["5.12"]}],"euvd":{"id":"EUVD-2025-203640","exploited":false,"provenance":"source"}}