🇰🇷 한글 설명
Linux 커널의 dax/kmem 구성 요소에서 일부 리소스 할당에 실패하더라도 프로브 과정이 성공으로 처리되는 취약점이 발견되었습니다. 이로 인해 리소스가 NULL 상태인 상황에서 장치 제거 시 NULL 포인터 참조가 발생하여 시스템 오류를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품을 설정하는 과정에서 일부가 제대로 연결되지 않았는데도 '성공'이라고 착각하는 문제가 있습니다. 이 상태에서 해당 부품을 제거하려고 하면 컴퓨터가 잘못된 주소를 참조하여 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
dax/kmem: account for partial discontiguous resource upon removal
When dev_dax_kmem_probe() partially succeeds (at least one range is
mapped) but a subsequent range fails request_mem_region() or
add_memory_driver_managed(), the probe silently continues, ultimately
returning success, but with the corresponding range resource NULL'ed out.
dev_dax_kmem_remove() iterates over all dax_device ranges regardless of if
the underlying resource exists. When remove_memory() is called later, it
returns 0 because the memory was never added which causes
dev_dax_kmem_remove() to incorrectly assume the (nonexistent) resource can
be removed and attempts cleanup on a NULL pointer.
Fix this by skipping these ranges altogether, noting that these cases are
considered success, such that the cleanup is still reached when all
actually-added ranges are successfully removed.
📍 영향받는 시스템
Linux kernel (dax/kmem 관련 모듈 사용 시스템)
⚔️ 공격 벡터
로컬 공격자가 특정 장치 드라이버의 프로브 실패를 유도한 후 장치를 제거하여 커널 패닉을 유발할 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.