🔍 CVE-2024-26934

7.8
CVSS Score
HIGH
2024-05-01
2026-10-15 01:17
✅ 완료

🇰🇷 한글 설명

Linux 커널 USB 코어 모듈의 usb_deauthorize_interface() 함수에서 sysfs 속성 콜백 처리 중 데드락이 발생합니다. USB 인터페이스 제거와 권한 설정이 동시에 발생하면 장치 잠금으로 인해 교착 상태에 빠져 시스템이 응답 불가 상태가 됩니다.

💡 쉬운 설명

Linux 시스템의 USB 장치 관리 코드에 교착 상태 버그가 있어, USB 권한 설정과 장치 제거가 동시에 일어나면 시스템이 응답하지 않을 수 있습니다. 이는 로컬 사용자가 의도적으로 또는 실수로 트리거할 수 있는 서비스 거부 취약점입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: USB: core: Fix deadlock in usb_deauthorize_interface() Among the attribute file callback routines in drivers/usb/core/sysfs.c, the interface_authorized_store() function is the only one which acquires a device lock on an ancestor device: It calls usb_deauthorize_interface(), which locks the interface's parent USB device. The will lead to deadlock if another process already owns that lock and tries to remove the interface, whether through a configuration change or because the device has been disconnected. As part of the removal procedure, device_del() waits for all ongoing sysfs attribute callbacks to complete. But usb_deauthorize_interface() can't complete until the device lock has been released, and the lock won't be released until the removal has finished. The mechanism provided by sysfs to prevent this kind of deadlock is to use the sysfs_break_active_protection() function, which tells sysfs not to wait for the attribute callback. Reported-and-tested by: Yue Sun <[email protected]> Reported by: xingwei lee <[email protected]>

📍 영향받는 시스템

Linux 커널 4.x ~ 6.x (CVE 보고 이전의 모든 버전, 배포판별로 패치 시점 상이)

⚔️ 공격 벡터

로컬 사용자가 sysfs 파일 시스템을 통해 USB 인터페이스 권한을 변경하는 동시에 USB 장치를 제거하면 데드락 발생

🛡️ 대응 방법

Linux 커널을 CVE 패치가 포함된 최신 버전으로 업데이트 (버전별 상이, 일반적으로 2024년 이후 커널 버전)

🔧 검증 코드

커널 버전이 2024년 이후 릴리스 버전인지 확인하여 패치 적용 여부 판단 (정확한 버전은 리누스 토발즈 커널 저장소의 커밋 e5b7a92d386f 이후)

Shell / Script
uname -r | grep -E '^[0-9]+\.[0-9]+' && echo 'Kernel version check needed against patched releases for CVE-2024-26934'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel