🇰🇷 한글 설명
Linux 커널의 amdgpu 드라이버 내 drm/amd/display 구성 요소에서 발생하는 취약점입니다. AMD EDID의 replay 기능 확인을 위한 IEEE ID 추출 과정에서 EDID 길이를 벗어난 메모리에 접근하는 slab-out-of-bounds 오류가 발생합니다.
💡 쉬운 설명
모니터 정보를 읽어오는 과정에서 정해진 범위를 넘어선 잘못된 메모리 영역을 읽으려다 발생하는 오류입니다. 이로 인해 시스템이 불안정해지거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Adjust VSDB parser for replay feature
At some point, the IEEE ID identification for the replay check in the
AMD EDID was added. However, this check causes the following
out-of-bounds issues when using KASAN:
[ 27.804016] BUG: KASAN: slab-out-of-bounds in amdgpu_dm_update_freesync_caps+0xefa/0x17a0 [amdgpu]
[ 27.804788] Read of size 1 at addr ffff8881647fdb00 by task systemd-udevd/383
...
[ 27.821207] Memory state around the buggy address:
[ 27.821215] ffff8881647fda00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 27.821224] ffff8881647fda80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 27.821234] >ffff8881647fdb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 27.821243] ^
[ 27.821250] ffff8881647fdb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 27.821259] ffff8881647fdc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 27.821268] ==================================================================
This is caused because the ID extraction happens outside of the range of
the edid lenght. This commit addresses this issue by considering the
amd_vsdb_block size.
(cherry picked from commit b7e381b1ccd5e778e3d9c44c669ad38439a861d8)
📍 영향받는 시스템
AMD GPU를 사용하는 Linux 커널 시스템 (amdgpu 드라이버 포함)
⚔️ 공격 벡터
조작된 EDID(Extended Display Identification Data) 정보를 가진 디스플레이 장치를 연결하여 발생
🛡️ 대응 방법
AMD VSDB 블록 크기를 고려하도록 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 취약점이 해결된 패치 버전인지 확인합니다.