🇰🇷 한글 설명
Linux 커널의 amdgpu VCE 드라이버에서 이미지 크기 계산 시 정수 오버플로가 발생하는 취약점입니다. 악의적인 VCE 명령 스트림을 통해 비정상적으로 큰 이미지 크기를 입력하면 버퍼 크기가 0으로 계산되어 유효성 검사를 우회하고 GPU 펌웨어의 메모리 경계 외 접근을 허용할 수 있습니다.
💡 쉬운 설명
이미지 크기를 계산하는 과정에서 숫자가 너무 커져서 0으로 잘못 인식되는 오류가 있습니다. 이를 이용해 해커가 컴퓨터의 허용된 메모리 범위를 벗어나 데이터에 접근할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/vce: fix integer overflow in image size
Fix a security vulnerability where malicious VCE command streams
with oversized dimensions (e.g. 65536×65536) cause 32-bit integer
overflow, wrapping the calculated buffer size to 0. This bypasses
validation and allows GPU firmware to perform out-of-bound memory
access.
The fix uses 64-bit arithmetic to detect overflow and rejects
invalid dimensions before they reach the hardware.
V2: remove redundant check
V3: modify max height value
V4: remove size64
(cherry picked from commit cbe408dba581755ad1279a487ec786d8927d778d)
📍 영향받는 시스템
Linux Kernel (amdgpu/vce 드라이버를 사용하는 AMD GPU 시스템)
⚔️ 공격 벡터
조작된 크기의 이미지 데이터를 포함한 악의적인 VCE 명령 스트림 전송
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인