🇰🇷 한글 설명
Linux 커널의 amdgpu 드라이버에서 발생한 취약점으로, amdgpu_vm_bo_find() 함수가 NULL을 반환할 경우 이를 확인하지 않고 참조하여 NULL 포인터 역참조가 발생합니다. 이로 인해 시스템 충돌이나 커널 패닉이 발생할 수 있습니다.
💡 쉬운 설명
그래픽 카드를 사용하는 프로그램이 잘못된 정보를 요청했을 때, 컴퓨터 시스템이 예상치 못한 빈 값을 처리하려다 멈춰버리는 문제입니다. 이로 인해 컴퓨터가 갑자기 꺼지거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: check amdgpu_vm_bo_find() result in GET_MAPPING_INFO
The AMDGPU_GEM_OP_GET_MAPPING_INFO path of amdgpu_gem_op_ioctl() looks
up the bo_va for the buffer object in the caller's VM via
amdgpu_vm_bo_find(), but uses the returned pointer without checking it.
amdgpu_vm_bo_find() returns NULL when the BO has no bo_va in that VM,
which is the normal case for a BO that has never been mapped. The result
is fed straight into amdgpu_vm_bo_va_for_each_valid_mapping(), which
expands to list_for_each_entry(mapping, &(bo_va)->valids, list) and
dereferences bo_va, causing a NULL pointer dereference.
This is reachable by any process able to issue the ioctl (render group)
simply by requesting mapping info for an unmapped BO.
Return -ENOENT when no bo_va is found, jumping to out_exec so the
drm_exec context and GEM object reference are released.
(cherry picked from commit 528b19377affc1cc7362a70a254c1dda793595f9)
📍 영향받는 시스템
Linux Kernel (amdgpu driver 포함 버전)
⚔️ 공격 벡터
렌더링 그룹 권한을 가진 로컬 프로세스가 매핑되지 않은 버퍼 객체에 대해 ioctl 요청을 수행
🛡️ 대응 방법
amdgpu_vm_bo_find()의 반환값을 검사하여 NULL인 경우 -ENOENT를 반환하도록 커널 패치 적용
🔧 검증 코드
출력된 커널 버전이 취약점이 수정된 최신 패치 버전인지 확인
💻 영향받는 소프트웨어
NVIDIA vGPU Guest Driver for Linux