🇰🇷 한글 설명
Linux 커널의 drm/gpusvm 구성 요소에서 오류 발생 시 장치 매핑이 해제되지 않고 누수되는 취약점이 발견되었습니다. 페이지 매핑 과정 중 오류가 발생하면 dpagemap이 NULL 상태로 유지되어 이미 생성된 장치 매핑을 해제하지 못하는 문제가 있었습니다.
💡 쉬운 설명
컴퓨터의 그래픽 장치를 사용하는 과정에서 오류가 나면, 사용했던 메모리 통로를 제대로 닫지 않고 남겨두는 버그입니다. 이 문제가 반복되면 시스템 자원이 낭비되어 성능이 떨어지거나 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/gpusvm: publish dpagemap early to avoid device mapping leak on error
drm_gpusvm_get_pages() only stored the local dpagemap into
svm_pages->dpagemap on the success path. If a later page failed (e.g.
-EOPNOTSUPP when ctx->allow_mixed is false) and jumped to err_unmap,
svm_pages->dpagemap was still NULL, so __drm_gpusvm_unmap_pages() skipped
device_unmap() and leaked the device mappings already created.
Assign svm_pages->dpagemap when the first device page is mapped so the
err_unmap path can device_unmap() those mappings.
This issue was found by Sashiko AI review.
📍 영향받는 시스템
Linux kernel (drm/gpusvm 관련 모듈을 사용하는 시스템)
⚔️ 공격 벡터
특정 조건에서 페이지 매핑 오류를 유도하여 시스템 자원(장치 매핑)을 고갈시키는 방식
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.