{"id":"CVE-2025-40347","aliases":["CVE-2025-40347"],"related":[],"kind":"vulnerability","state":"published","title":"net: enetc: fix the deadlock of enetc_mdio_lock","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: enetc: corregir el interbloqueo de enetc_mdio_lock\n\nDespués de aplicar la solución alternativa para err050089, la plataforma LS1028A experimenta bloqueos RCU en el kernel RT. Este problema es causado por la adquisición recursiva del bloqueo de lectura enetc_mdio_lock. Aquí se enumeran algunas de las pilas de llamadas identificadas bajo la ruta enetc_poll que pueden conducir a un interbloqueo:\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\nDespués de que enetc_poll adquiere el bloqueo de lectura, un escritor de mayor prioridad intenta adquirir el bloqueo, causando la expropiación. El escritor detecta que un bloqueo de lectura ya está retenido y es desprogramado. Sin embargo, los lectores bajo enetc_poll no pueden adquirir el bloqueo de lectura de nuevo porque un escritor ya está esperando, lo que lleva a un cuelgue del hilo.\n\nActualmente, el interbloqueo se evita ajustando enetc_lock_mdio para prevenir la adquisición recursiva del bloqueo.","source":"nvd"}],"published":"2025-12-16T13:30:21.539Z","modified":"2026-10-14T13:10:00.187Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3","fixed":"a649161526736f48bcc592e3a412e5bcd7dd9e24","status":"affected"},{"type":"git","introduced":"6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3","fixed":"2781ca82ce8cad263d80b617addb727e6a84c9e5","status":"affected"},{"type":"git","introduced":"6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3","fixed":"1f92f5bd057a4fad9dab6af17963cdd21e5da6ed","status":"affected"},{"type":"git","introduced":"6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3","fixed":"2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa","status":"affected"},{"type":"git","introduced":"6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3","fixed":"50bd33f6b3922a6b760aa30d409cae891cec8fb5","status":"affected"},{"type":"git","version":"bf9c564716a13dde6a990d3b02c27cd6e39608bf","status":"affected"},{"type":"git","version":"ff966263f5f9fdf9740f03fed0762ce73c230a6a","status":"affected"},{"type":"semver","introduced":"5.10.24","fixed":"5.11","status":"affected"},{"type":"semver","introduced":"5.11.7","fixed":"5.12","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.12","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.115","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.56","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.6","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a649161526736f48bcc592e3a412e5bcd7dd9e24","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2781ca82ce8cad263d80b617addb727e6a84c9e5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f92f5bd057a4fad9dab6af17963cdd21e5da6ed","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/50bd33f6b3922a6b760aa30d409cae891cec8fb5","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40347","url":"https://www.cve.org/CVERecord?id=CVE-2025-40347","licence":"CVE Terms of Use","modified":"2026-08-05T12:09:48.141Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40347","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40347","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.468Z","epss":{"score":0.00566,"percentile":0.48325,"date":"2026-12-01T12:00:22.000Z"}}