🔍 CVE-2021-47200

7.8
CVSS Score
HIGH
2024-04-10
2026-08-04 10:16
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 drm/prime 구성 요소에서 drm_gem_ttm_mmap 함수 호출 시 Use-After-Free(UAF) 취약점이 발견되었습니다. mmap 성공 시 gem 객체의 참조 횟수를 해제하는 과정에서 객체가 먼저 해제되어, 이후 호출되는 drm_gem_object_get()에서 메모리 오류가 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터의 그래픽 메모리를 관리하는 과정에서 이미 삭제된 메모리 영역을 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: drm/prime: Fix use after free in mmap with drm_gem_ttm_mmap drm_gem_ttm_mmap() drops a reference to the gem object on success. If the gem object's refcount == 1 on entry to drm_gem_prime_mmap(), that drop will free the gem object, and the subsequent drm_gem_object_get() will be a UAF. Fix by grabbing a reference before calling the mmap helper. This issue was forseen when the reference dropping was adding in commit 9786b65bc61ac ("drm/ttm: fix mmap refcounting"): "For that to work properly the drm_gem_object_get() call in drm_gem_ttm_mmap() must be moved so it happens before calling obj->funcs->mmap(), otherwise the gem refcount would go down to zero."

📍 영향받는 시스템

drm/prime 모듈을 사용하는 리눅스 커널 버전

⚔️ 공격 벡터

특정 조건에서 메모리 매핑(mmap)을 유도하여 메모리 참조 오류를 일으키는 방식

🛡️ 대응 방법

리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel