🇰🇷 한글 설명
Linux 커널의 mana 네트워크 드라이버에서 PM resume 실패 시 mana_remove 함수가 중복 호출될 수 있는 취약점입니다. 이 과정에서 NULL 포인터를 역참조하게 되어 커널 패닉(Kernel Panic)이 발생할 수 있습니다.
💡 쉬운 설명
시스템이 잠자기 모드에서 깨어날 때 오류가 발생하면, 드라이버가 이미 종료되었음에도 불구하고 다시 종료를 시도하다가 컴퓨터가 멈춰버리는 문제입니다. 이는 시스템의 안정성을 해칠 수 있는 결함입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: mana: Guard mana_remove against double invocation
If PM resume fails (e.g., mana_attach() returns an error), mana_probe()
calls mana_remove(), which tears down the device and sets
gd->gdma_context = NULL and gd->driver_data = NULL.
However, a failed resume callback does not automatically unbind the
driver. When the device is eventually unbound, mana_remove() is invoked
a second time. Without a NULL check, it dereferences gc->dev with
gc == NULL, causing a kernel panic.
Add an early return if gdma_context or driver_data is NULL so the second
invocation is harmless. Move the dev = gc->dev assignment after the
guard so it cannot dereference NULL.
📍 영향받는 시스템
Linux kernel (mana network driver module)
⚔️ 공격 벡터
로컬 공격자가 시스템의 전원 관리(PM) 상태를 조작하여 드라이버의 resume 실패를 유도함으로써 발생 가능
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 mana_remove 함수 내 NULL 체크 로직을 적용해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인