🇰🇷 한글 설명
리눅스 커널의 HID 센서 드라이버에서 enable_sensor 함수 호출 시 Use-After-Free 취약점이 발견되었습니다. 센서 상태를 초기화하기 전에 sysfs 속성에 접근하거나, 메모리 해제 후 속성에 접근할 때 잘못된 포인터를 참조할 수 있는 문제입니다.
💡 쉬운 설명
센서 기능을 켜고 끌 때, 아직 준비되지 않은 메모리 영역을 건드리거나 이미 삭제된 메모리를 참조하여 시스템 오류를 일으킬 수 있는 결함입니다. 이로 인해 시스템이 멈추거나 보안 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
HID: sensor: custom: Fix use-after-free in enable_sensor
enable_sensor_store() can call set_power_report_state(), which
dereferences sensor_inst->power_state and sensor_inst->report_state.
These pointers refer to entries in sensor_inst->fields.
Create the field attributes before exposing the enable_sensor sysfs
attribute, so enable_sensor cannot be accessed before the state it
depends on has been initialized.
On remove, delete enable_sensor before freeing the field attributes,
so a concurrent sysfs write cannot dereference freed memory through
power_state or report_state.
📍 영향받는 시스템
Linux Kernel (HID sensor custom driver 포함 버전)
⚔️ 공격 벡터
로컬 사용자가 sysfs 인터페이스를 통해 특정 센서 설정을 조작하여 메모리 오류 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.