🇰🇷 한글 설명
리눅스 커널의 HID 멀티터치 드라이버에서 input_dev 이름 할당 시 잘못된 장치 참조로 인해 Use-After-Free 취약점이 발생합니다. input_dev가 등록 해제된 후 uevent가 발생할 때 이미 해제된 메모리에 접근하게 되어 시스템 불안정이나 권한 상승을 초래할 수 있습니다.
💡 쉬운 설명
터치스크린 장치가 꺼질 때 컴퓨터가 이미 삭제된 정보를 다시 읽으려고 시도하면서 발생하는 오류입니다. 이 과정에서 시스템이 멈추거나 해커가 시스템 제어권을 얻을 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
HID: multitouch: Correct devm device reference for hidinput input_dev name
Reference the HID device rather than the input device for the devm
allocation of the input_dev name. Referencing the input_dev would lead to a
use-after-free when the input_dev was unregistered and subsequently fires a
uevent that depends on the name. At the point of firing the uevent, the
name would be freed by devres management.
Use devm_kasprintf to simplify the logic for allocating memory and
formatting the input_dev name string.
📍 영향받는 시스템
Linux Kernel (HID multitouch driver 관련 버전)
⚔️ 공격 벡터
특정 HID 장치의 등록 해제 및 uevent 발생 과정을 유도하여 메모리 오류 유발
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인