🇰🇷 한글 설명
Linux 커널의 HID uclogic 드라이버에서 hidinput input_dev 이름을 devm으로 할당할 때 input_dev 대신 HID 장치를 참조하도록 수정되었습니다. 기존 코드는 input_dev 등록 해제 후 uevent 발생 시 devres로 해제된 이름을 사용하여 use-after-free가 발생할 수 있었습니다. 이 패치는 devm_kasprintf를 사용해 메모리 할당과 이름 포맷팅 로직을 단순화했습니다.
💡 쉬운 설명
리눅스 커널의 그래픽 태블릿 드라이버에서 이미 해제된 메모리를 다시 읽는 버그가 있었습니다. 이로 인해 시스템이 불안정해지거나 악용될 수 있는 문제가 수정되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
HID: uclogic: 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 커널 HID uclogic 드라이버를 포함하는 패치 이전 버전 (UC-Logic 기반 그래픽 태블릿 사용 시스템)
⚔️ 공격 벡터
물리적으로 연결된 악성 또는 조작된 UC-Logic HID 장치를 통해 커널 메모리 손상을 유발하여 권한 상승 또는 서비스 거부를 시도할 수 있습니다.
🛡️ 대응 방법
배포판 제공 최신 커널로 업데이트하거나, 해당 수정이 포함된 Linux 커널 버전으로 재부팅하십시오.
🔧 검증 코드
커널 버전이 수정 패치가 포함된 버전 이상인지 배포판 보안 공지와 대조하고, uclogic 모듈이 로드되지 않았다면 해당 취약점 영향이 없는 것으로 판단합니다.
uname -r && (lsmod | grep -i uclogic || echo 'uclogic 모듈 미로드')