🇰🇷 한글 설명
Linux 커널의 HID 센서 드라이버에서 커스텀 센서 필드 생성 중 오류가 발생할 경우, 이미 생성된 sysfs 그룹을 제대로 정리하지 못하는 취약점이 발견되었습니다. 이로 인해 메모리 누수나 잘못된 포인터 참조가 발생할 수 있으며, 패치를 통해 오류 발생 시 생성된 그룹을 제거하는 언와인드(unwind) 경로가 추가되었습니다.
💡 쉬운 설명
센서 정보를 보여주는 시스템 설정 파일을 만드는 과정에서 오류가 나면, 이미 만들어진 파일들이 제대로 삭제되지 않고 남는 문제입니다. 이로 인해 시스템 메모리가 낭비되거나 프로그램이 오작동할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
HID: sensor: custom: Fix field sysfs group cleanup on failure
hid_sensor_custom_add_attributes() creates one sysfs group for each
custom sensor field. If sysfs_create_group() fails after some groups
have already been created, the function returns the error without
removing the previously created groups.
Add a local unwind path to remove the groups that were already created.
With enable_sensor exposed only after the field attributes are ready,
this path can free sensor_inst->fields without leaving enable_sensor
able to access pointers into that array.
📍 영향받는 시스템
Linux Kernel (HID sensor custom driver 관련 버전)
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 센서 속성 생성 과정에서 오류를 유도하여 메모리 자원 관리 문제를 일으킴
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인