🇰🇷 한글 설명
Linux 커널의 bitland-mifs-wmi 드라이버에서 절전 모드(suspend) 또는 복구(resume) 시 NULL 포인터 역참조가 발생하는 취약점입니다. 드라이버 초기화 과정에서 특정 장치의 프로필 디바이스가 초기화되지 않은 상태로 남을 수 있으며, 이로 인해 시스템이 중단되는 커널 Oops가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터를 절전 모드로 전환하거나 다시 깨울 때, 컴퓨터가 준비되지 않은 정보를 참조하려다 오류가 발생하여 시스템이 멈추는 문제입니다. 이는 하드웨어 드라이버의 설정 오류로 인해 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
platform/x86: bitland-mifs-wmi: Fix NULL pointer dereference during suspend/resume
The driver registers two distinct WMI devices: a control device
(BITLAND_WMI_CONTROL) and an event device (BITLAND_WMI_EVENT). During
the probe phase, the event device handling path returns early before
initializing the platform profile device (data->pp_dev), leaving it
NULL.
However, the PM sleep operations are registered globally for the WMI
driver and are triggered for both devices. When entering suspend, the
event device invokes bitland_mifs_wmi_suspend(), which passes the
uninitialized data->pp_dev (NULL) into laptop_profile_get(). This leads
to a NULL pointer dereference inside dev_get_drvdata(), causing a
kernel Oops and halting the suspend sequence.
Fix this by adding a validity check for data->pp_dev in both the suspend
and resume callbacks, safely skipping profile operations for the event
device.
📍 영향받는 시스템
Linux kernel (bitland-mifs-wmi 드라이버를 사용하는 x86 플랫폼)
⚔️ 공격 벡터
로컬 공격자가 시스템을 절전 모드로 전환하거나 복구하도록 유도하여 커널 패닉(Kernel Oops)을 유발할 수 있음
🛡️ 대응 방법
커널 패치를 적용하여 suspend/resume 콜백 함수 내에 pp_dev의 유효성 검사 로직을 추가해야 함
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 수정된 패치 버전인지 확인합니다.