🇰🇷 한글 설명
Linux 커널의 wm97xx 드라이버에서 power_supply 핸들이 등록되기 전에 인터럽트가 발생할 경우 NULL 포인터 역참조가 발생하는 취약점입니다. 이 문제는 probe() 함수 내에서 IRQ 요청 순서가 잘못되어 발생하며, 인터럽트 핸들러가 초기화되지 않은 핸들을 참조하여 시스템 오류를 유발할 수 있습니다.
💡 쉬운 설명
기기가 작동을 준비하는 도중에 갑자기 신호가 들어오면, 컴퓨터가 아직 준비되지 않은 정보를 읽으려다 멈춰버리는 문제입니다. 이로 인해 시스템이 충돌하거나 예상치 못한 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
power: supply: wm97xx: Fix NULL pointer dereference in power_supply_changed()
In `probe()`, `request_irq()` is called before allocating/registering a
`power_supply` handle. If an interrupt is fired between the call to
`request_irq()` and `power_supply_register()`, the `power_supply` handle
will be used uninitialized in `power_supply_changed()` in
`wm97xx_bat_update()` (triggered from the interrupt handler). This will
lead to a `NULL` pointer dereference since
Fix this racy `NULL` pointer dereference by making sure the IRQ is
requested _after_ the registration of the `power_supply` handle. Since
the IRQ is the last thing requests in the `probe()` now, remove the
error path for freeing it. Instead add one for unregistering the
`power_supply` handle when IRQ request fails.
📍 영향받는 시스템
Linux kernel (wm97xx driver component)
⚔️ 공격 벡터
로컬 시스템에서 특정 하드웨어 인터럽트를 정밀하게 유도하여 발생시키는 레이스 컨디션 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 IRQ 요청 순서를 수정해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.