🇰🇷 한글 설명
리눅스 커널의 HID 드라이버에서 프로브(probe) 실패 시 입력 동기화가 이루어지지 않아 발생하는 취약점입니다. 프로브 실패로 인해 드라이버 리소스가 해제되는 동안 보고 콜백이 동시에 실행될 수 있어, Use-After-Free(UAF) 취약점이 발생할 수 있습니다.
💡 쉬운 설명
장치를 연결할 때 오류가 발생하면 시스템이 장치 정보를 정리하는데, 이때 장치 데이터가 아직 사용 중임에도 강제로 삭제되어 시스템 오류를 일으킬 수 있습니다. 이로 인해 해커가 시스템 권한을 탈취하거나 시스템을 중단시킬 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
HID: synchronize input before cleaning up a failed probe
hid_device_io_start() allows reports to run concurrently with probe. If
the probe subsequently fails, __hid_device_probe() releases driver
resources and clears hdev->driver without first excluding those report
callbacks.
For example, a report may enter hidraw_report_event() while the failure
path frees the associated hidraw object, leading to a use-after-free when
the report takes the object's list lock.
Stop input before performing failed-probe cleanup. This reacquires
driver_input_lock and waits for any report callback already in progress.
📍 영향받는 시스템
Linux Kernel (HID subsystem 관련 버전)
⚔️ 공격 벡터
특수하게 조작된 HID 장치를 연결하여 프로브 실패를 유도함으로써 메모리 오류 유발
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인