🇰🇷 한글 설명
Linux 커널의 AMD 디스플레이 드라이버(drm/amd/display)에서 mod_hdcp_hdcp1_create_session() 함수가 get_first_active_display()의 널 반환값을 확인하지 않아 널 포인터 역참조 취약점이 발생한다. 디스플레이 목록이 비어있을 때 시스템 충돌 또는 권한 상승으로 이어질 수 있다.
💡 쉬운 설명
AMD 그래픽 드라이버의 보안 기능(HDCP)에서 화면이 없을 때 프로그램이 존재하지 않는 메모리에 접근하려고 시도한다. 이로 인해 시스템이 멈추거나 악의적 접근자가 시스템을 제어할 수 있다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add null pointer check in mod_hdcp_hdcp1_create_session()
The function mod_hdcp_hdcp1_create_session() calls the function
get_first_active_display(), but does not check its return value.
The return value is a null pointer if the display list is empty.
This will lead to a null pointer dereference.
Add a null pointer check for get_first_active_display() and return
MOD_HDCP_STATUS_DISPLAY_NOT_FOUND if the function return null.
This is similar to the commit c3e9826a2202
("drm/amd/display: Add null pointer check for get_first_active_display()").
(cherry picked from commit 5e43eb3cd731649c4f8b9134f857be62a416c893)
📍 영향받는 시스템
Linux kernel with AMD display driver (drm/amd/display) - versions before upstream commit 5e43eb3cd731649c4f8b9134f857be62a416c893
⚔️ 공격 벡터
Local denial of service by disconnecting all displays or triggering empty display list condition; requires local system access
🛡️ 대응 방법
Update Linux kernel to patched version containing commit 5e43eb3cd731649c4f8b9134f857be62a416c893 which adds null pointer validation
🔧 검증 코드
커널 버전을 확인하고 AMD GPU 드라이버 로드 여부를 확인한다; 0이면 미로드, 1 이상이면 AMD 드라이버가 활성화된 상태이므로 취약점 영향 범위 확인 필요
uname -r && lsmod | grep -E '(amdgpu|drm_amd)' | wc -l