🇰🇷 한글 설명
Linux 커널의 drm/amdkfd 구성 요소에서 EOP 링 크기를 계산할 때 정수 언더플로우가 발생할 수 있는 취약점이 발견되었습니다. 로그 계산 과정에서 발생할 수 있는 오류를 방지하기 위해 수학적 계산 방식을 개선하여 수정되었습니다.
💡 쉬운 설명
컴퓨터가 메모리 크기를 계산하는 과정에서 숫자가 너무 작아져 잘못된 값이 나오는 오류가 있었습니다. 이로 인해 시스템이 불안정해질 수 있는 문제를 수학적 계산 방식을 바꿔서 해결했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Avoid integer underflow in EOP ring size calculation.
The low 6 bits of cp_hqd_eop_control store the base-2 logarithm
of the EOP ring size. This was calculated as
order_base_2(q->eop_ring_buffer_size / 4) - 1
But order_base_2 can in theory return 0, so this could underflow
(although in practice the ring buffer size cannot be less than 4096).
Change this to
order_base_2(q->eop_ring_buffer_size / 8)
using properties of logarithms.
Also add to the above comment to make the mathematics more clear.
(cherry picked from commit f0f43fcf8b2b3a924cad9444340921c96ed5f634)
📍 영향받는 시스템
Linux Kernel (drm/amdkfd 모듈을 사용하는 시스템)
⚔️ 공격 벡터
특수하게 조작된 메모리 크기 값을 전달하여 정수 언더플로우를 유도하는 방식
🛡️ 대응 방법
최신 보안 패치가 적용된 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인