🇰🇷 한글 설명
Linux 커널의 amdkfd 구성 요소에서 사용자 큐 초기화 실패 시 gang_ctx_bo를 적절히 해제하지 못하는 취약점이 발견되었습니다. 함수 호출 시 void* 타입을 void** 타입으로 잘못 전달하여 발생하는 타입 불일치 문제로 인해 메모리 관리 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터 메모리를 정리하는 과정에서 데이터의 형식을 잘못 지정하여 메모리가 제대로 비워지지 않는 오류가 있습니다. 이로 인해 시스템의 메모리 관리에 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
amdkfd: properly free gang_ctx_bo when failed to init user queue
The destructor of a gtt bo is declared as
void amdgpu_amdkfd_free_gtt_mem(struct amdgpu_device *adev, void **mem_obj);
Which takes void** as the second parameter.
GCC allows passing void* to the function because void* can be implicitly
casted to any other types, so it can pass compiling.
However, passing this void* parameter into the function's
execution process(which expects void** and dereferencing void**)
will result in errors.
📍 영향받는 시스템
AMD GPU 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 사용자 큐 초기화 요청을 통해 메모리 오류를 유도할 수 있음
🛡️ 대응 방법
AMD GPU 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 확인