🔍 CVE-2025-40347

7.5
CVSS Score
HIGH
2025-12-16
2026-10-14 13:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 enetc 네트워크 드라이버에서 enetc_mdio_lock의 재귀적 획득으로 인해 데드락(교착 상태)이 발생하는 취약점입니다. LS1028A 플랫폼의 RT 커널에서 enetc_poll 경로를 통해 RCU 스톨이 발생하며 시스템이 멈출 수 있습니다.

💡 쉬운 설명

네트워크 장치를 제어하는 과정에서 잠금 장치를 중복해서 사용하려다 시스템이 서로를 기다리며 멈춰버리는 문제입니다. 이로 인해 특정 하드웨어 환경에서 컴퓨터가 응답하지 않는 현상이 발생할 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Linux kernel (LS1028A platform, RT kernel 사용 환경)

⚔️ 공격 벡터

로컬 시스템에서 네트워크 트래픽 처리를 유도하여 데드락을 발생시키는 방식 (DoS)

🛡️ 대응 방법

enetc_lock_mdio 함수를 수정하여 재귀적 잠금 획득을 방지하는 최신 커널 패치 적용

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel