🇰🇷 한글 설명
Linux 커널의 amdgpu 드라이버 내 cleaner shader IB 버퍼 오버플로우 취약점입니다. GFX 링에서 align_mask 값이 0xff로 설정되어 64바이트 버퍼에 256개의 dword를 기록함으로써 커널 페이지 폴트가 발생할 수 있습니다.
💡 쉬운 설명
그래픽 카드 드라이버가 데이터를 저장할 공간보다 더 많은 양의 정보를 쓰려고 시도하여 시스템이 충돌하는 문제입니다. 이로 인해 컴퓨터가 갑자기 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/gfx: fix cleaner shader IB buffer overflow
The cleaner shader sysfs path allocates a 16-dword (64 byte) IB but
incorrectly fills (align_mask + 1) dwords. On GFX rings align_mask is
0xff, so the loop wrote 256 dwords into a 64-byte buffer, causing a
kernel page fault.
The IB only needs to be a minimal NOP shell to schedule the job; the
cleaner shader itself is emitted on the ring via emit_cleaner_shader().
Fill 16 dwords to match the allocation.
v2: Use ib_size_dw variable (Lijo)
(cherry picked from commit bf21af331ebf72d0935fd70c73192414a422c03a)
📍 영향받는 시스템
Linux kernel (amdgpu driver component)
⚔️ 공격 벡터
로컬 공격자가 특정 sysfs 경로를 통해 잘못된 크기의 데이터를 입력하여 커널 메모리 오버플로우 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인