🇰🇷 한글 설명
리눅스 커널의 ACPI 버튼 드라이버에서 장치 제거 시 GPE 핸들러가 제대로 해제되지 않는 메모리 누수 취약점이 발견되었습니다. 이로 인해 드라이버 제거 후 ACPI 알림이 발생하면 커널 크래시가 발생할 수 있으며, 동일한 장치의 재탐색 과정이 실패할 수 있습니다.
💡 쉬운 설명
컴퓨터의 전원 버튼 같은 장치를 소프트웨어에서 제거할 때, 관련 작업 명령이 메모리에 남아서 문제가 생기는 현상입니다. 이 상태에서 버튼을 누르면 컴퓨터 시스템이 갑자기 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ACPI: button: Fix ACPI GPE handler leak during removal
Commit a7e23ec17fee ("ACPI: button: Install notifier for system events
as well") changed the ACPI notify handler type for ACPI buttons to
ACPI_ALL_NOTIFY, but it forgot to update acpi_button_remove() to reflect
that change. This leads to leaking the notify handler past driver
removal, which may cause a kernel crash to occur if ACPI notify on
the given device is triggered after removing the driver, and causes a
subsequent probe of the given device with the same driver to fail.
Address this by updating the acpi_remove_notify_handler() call in
acpi_button_remove() as appropriate.
📍 영향받는 시스템
ACPI 버튼 핸들러가 ACPI_ALL_NOTIFY로 변경된 이후의 리눅스 커널 버전
⚔️ 공격 벡터
로컬 공격자가 장치 드라이버를 제거한 후 ACPI 이벤트를 강제로 발생시켜 커널 크래시 유도
🛡️ 대응 방법
커널 패치(commit a7e23ec17fee 관련 수정 사항)를 적용하여 acpi_button_remove() 함수를 업데이트해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인