🇰🇷 한글 설명
리눅스 커널의 ACPI 비디오 드라이버에서 acpi_video_switch_brightness() 함수 호출 시 Use-After-Free 취약점이 발견되었습니다. 장치 제거 과정에서 백라이트 관련 리소스가 해제된 후, 지연된 작업(delayed work)이 해당 메모리에 접근하여 발생합니다.
💡 쉬운 설명
컴퓨터의 화면 밝기를 조절하는 기능이 장치를 제거하는 과정에서 이미 삭제된 메모리 영역을 다시 사용하려고 시도하는 오류입니다. 이로 인해 시스템이 불안정해지거나 예기치 않게 종료될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ACPI: video: Fix use-after-free in acpi_video_switch_brightness()
The switch_brightness_work delayed work accesses device->brightness
and device->backlight, freed by acpi_video_dev_unregister_backlight()
during device removal.
If the work executes after acpi_video_bus_unregister_backlight()
frees these resources, it causes a use-after-free when
acpi_video_switch_brightness() dereferences device->brightness or
device->backlight.
Fix this by calling cancel_delayed_work_sync() for each device's
switch_brightness_work in acpi_video_bus_remove_notify_handler()
after removing the notify handler that queues the work. This ensures
the work completes before the memory is freed.
[ rjw: Changelog edit ]
📍 영향받는 시스템
ACPI 비디오 드라이버를 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
장치 제거(Device Removal) 시 발생하는 레이스 컨디션(Race Condition)을 이용한 메모리 오염
🛡️ 대응 방법
해당 취약점이 수정된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 버전인지 확인