🇰🇷 한글 설명
Linux 커널의 HID sensor-hub 구성 요소에서 sensor_hub_get_feature 함수 내 경계 외 쓰기(out-of-bounds write) 취약점이 발견되었습니다. 악의적인 HID 디스크립터가 실제 버퍼 크기보다 큰 필드 크기를 광고할 경우, 스택 버퍼에 데이터를 복사하는 과정에서 메모리 오염이 발생할 수 있습니다.
💡 쉬운 설명
특수하게 조작된 입력 장치(마우스, 센서 등)를 연결했을 때, 컴퓨터의 메모리 영역을 넘어서 데이터를 써버리는 오류입니다. 이를 통해 해커가 시스템의 제어권을 탈취하거나 오류를 일으킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
HID: sensor-hub: Fix out-of-bounds write in sensor_hub_get_feature
sensor_hub_get_feature() clamps its return value to the caller's buffer
size, but the copy loop still copies field->report_size / 8 bytes for
each report value. A malicious HID descriptor can advertise a large
feature field size while an IIO caller supplies a small stack buffer,
such as a single s32, causing an out-of-bounds write.
HID core stores parsed report values in __s32 slots and clamps extracted
values to 32 bits. Reject feature fields that require more than one slot
per value, guard the total byte count calculation, and clamp each
per-value copy to the remaining caller buffer.
📍 영향받는 시스템
Linux kernel (HID sensor-hub 구성 요소가 포함된 버전)
⚔️ 공격 벡터
악의적으로 조작된 HID 디스크립터를 가진 장치를 시스템에 연결하여 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인