🇰🇷 한글 설명
Linux 커널의 HID ALPS 드라이버에서 input2 장치 등록이 실패할 때 해제된 메모리를 참조하는 use-after-free 취약점이 수정되었습니다. input2 포인터가 등록 성공 후에만 저장되도록 변경되고 raw_event 경로에 NULL 가드가 추가되었습니다. 등록 실패 중 U1_SP_ABSOLUTE_REPORT_ID 보고서가 도착하면 커널 메모리 손상이 발생할 수 있습니다.
💡 쉬운 설명
리눅스 커널의 터치패드 관련 드라이버에서 이미 지워진 메모리를 다시 사용하는 버그가 있었습니다. 이로 인해 시스템이 불안정해지거나 비정상 동작할 수 있으며, 이를 수정한 패치가 배포되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
HID: alps: fix use-after-free on input2 registration failure
alps_input_configured() stores data->input2 before calling
input_register_device(). If registration fails, input_free_device()
frees the input device but data->input2 still points to the freed memory.
alps_input_configured() calls hid_hw_open() before allocating input2, so
URBs are already active and raw_event can fire during the failure window.
A U1_SP_ABSOLUTE_REPORT_ID report arriving then causes u1_raw_event()
to dereference the freed data->input2 -> use-after-free.
Fix by only storing input2 into drvdata after successful registration
and adding a NULL guard in the raw_event path.
📍 영향받는 시스템
패치 이전의 Linux 커널 (HID ALPS 드라이버를 사용하는 ALPS 터치패드 장착 노트북 등)
⚔️ 공격 벡터
로컬 장치 또는 HID 보고서를 주입할 수 있는 공격자가 등록 실패 시점에 조작된 U1 보고서를 전송하여 해제된 메모리를 참조하게 만듦
🛡️ 대응 방법
배포판의 최신 커널 업데이트를 적용하고 시스템을 재부팅
🔧 검증 코드
출력된 커널 버전을 배포판 보안 공지에서 해당 CVE 수정이 포함된 버전과 비교하여, 같거나 이후 버전이면 패치된 것입니다.