🇰🇷 한글 설명
리눅스 커널의 usbhid 드라이버에서 hid_post_reset() 함수 호출 시 데드락(교착 상태)이 발생할 수 있는 취약점이 발견되었습니다. USB 장치 리셋 과정에서 메모리 할당 시 블록 I/O를 유발할 수 있어, 이를 방지하기 위해 GFP_NOIO 플래그를 사용하도록 수정되었습니다.
💡 쉬운 설명
USB 장치를 재설정하는 과정에서 컴퓨터 시스템이 서로 자원을 기다리며 멈춰버리는 현상이 발생할 수 있습니다. 특정 USB 장치를 연결하거나 오류가 발생했을 때 시스템이 응답하지 않을 수 있는 문제입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
HID: usbhid: fix deadlock in hid_post_reset()
You can build a USB device that includes a HID component
and a storage or UAS component. The components can be reset
only together. That means that hid_pre_reset() and hid_post_reset()
are in the block IO error handling. Hence no memory allocation
used in them may do block IO because the IO can deadlock
on the mutex held while resetting a device and calling the
interface drivers.
Use GFP_NOIO for all allocations in them.
📍 영향받는 시스템
HID 및 저장 장치(UAS)가 통합된 USB 컴포넌트를 사용하는 리눅스 커널 시스템
⚔️ 공격 벡터
특수하게 설계된 USB 장치를 연결하여 커널의 리셋 로직을 트리거함으로써 시스템 데드락 유발
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 리눅스 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 취약점이 해결된 패치 버전인지 확인