🇰🇷 한글 설명
Linux 커널의 drm/amd/display 구성 요소에서 뷰포트 영역이 0일 경우 calculate_mcache_setting 함수 내에서 0으로 나누기 오류가 발생합니다. 이로 인해 시스템 패닉(Panic)이 발생하거나 num_mcaches 변수의 언더플로우가 발생할 수 있는 취약점입니다.
💡 쉬운 설명
화면을 표시하는 영역의 크기가 0이 될 때 계산 오류가 발생하여 컴퓨터 시스템이 갑자기 멈추거나 꺼질 수 있는 문제입니다. 특정 그래픽 설정 조건에서 시스템이 비정상적으로 작동할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Fix divide-by-zero in calculate_mcache_setting on zero viewport
If a plane reaches calculate_mcache_setting with a zero-area viewport,
calculate_mcache_setting exits early with num_mcaches == 0 and
mvmpg_width/height == 0. This will cause a divide-by-zero panic and can
also cause an underflow on num_mcaches.
Fix this by changing calculate_mcache_setting to bool and adding guards
after each calculate_mcache_row_bytes call. If num_mcaches or
mvmpg_width/height is zero, return a false. Callers will propagate the
failure as a rejected mode, which prevents the panic.
(cherry picked from commit 29c0f7c655f47bcbd575ff75e58480df6ec3c9da)
📍 영향받는 시스템
AMD GPU를 사용하는 Linux 커널 시스템 (패치 적용 전 버전)
⚔️ 공격 벡터
조작된 그래픽 디스플레이 설정 또는 뷰포트 크기 값을 전달하여 시스템 패닉 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.