🇰🇷 한글 설명
Linux 커널의 accel/habanalabs 드라이버에서 메모리 관리자 IDR이 파일 디스크립터 해제 시 너무 일찍 파괴되는 취약점이 발견되었습니다. 이로 인해 사용자 컨텍스트나 메모리 버퍼가 여전히 사용 중인 상태에서 IDR이 삭제되어, 버퍼 해제 시 핸들을 찾지 못해 메모리 누수가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 사용 중인 메모리 관리 도구를 너무 빨리 치워버려서, 나중에 메모리를 정리하려고 할 때 도구가 없어 메모리가 낭비되는 문제입니다. 이 문제가 반복되면 시스템의 메모리가 점점 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
accel/habanalabs: postpone mem_mgr IDR destruction to hpriv_release()
The memory manager IDR is currently destroyed when user releases the
file descriptor.
However, at this point the user context might be still held, and memory
buffers might be still in use.
Later on, calls to release those buffers will fail due to not finding
their handles in the IDR, leading to a memory leak.
To avoid this leak, split the IDR destruction from the memory manager
fini, and postpone it to hpriv_release() when there is no user context
and no buffers are used.
📍 영향받는 시스템
Linux kernel (accel/habanalabs driver 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 특정 드라이버 동작을 유도하여 메모리 누수를 발생시킴
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인