🇰🇷 한글 설명
Linux 커널의 drm/edid 구성 요소에서 drm_parse_tiled_block() 함수가 데이터 블록의 길이를 적절히 검증하지 않아 발생하는 힙 기반 경계 외 읽기(Out-of-bounds read) 취약점입니다. 공격자가 조작된 EDID 데이터를 제공할 경우, 할당된 메모리 범위를 벗어나 데이터를 읽음으로써 시스템 정보 유출이나 커널 불안정을 초래할 수 있습니다.
💡 쉬운 설명
모니터 정보를 전달하는 데이터(EDID)를 조작하여 컴퓨터가 허용된 메모리 범위를 넘어서 데이터를 읽게 만드는 보안 결함입니다. 이를 통해 해커가 시스템의 민감한 정보를 훔쳐보거나 컴퓨터를 멈추게 할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/edid: fix OOB read in drm_parse_tiled_block()
drm_parse_tiled_block() casts the DisplayID block to a
struct displayid_tiled_block and reads the full fixed layout up to
tile->topology_id[7] without checking block->num_bytes. The DisplayID
iterator only validates the declared payload length, so a crafted EDID
can advertise a tiled-display block (tag DATA_BLOCK_TILED_DISPLAY, or
DATA_BLOCK_2_TILED_DISPLAY_TOPOLOGY for v2.0) with a small num_bytes at
the end of a DisplayID extension. The read then runs past the end of the
exact-sized kmemdup()'d EDID allocation, a heap out-of-bounds read.
Reject blocks shorter than the spec's 22-byte tiled payload before
reading the fixed struct, as drm_parse_vesa_mso_data() already does.
BUG: KASAN: slab-out-of-bounds in drm_edid_connector_update
Read of size 2 at addr ffff888010077700 by task exploit/147
dump_stack_lvl (lib/dump_stack.c:94 ...)
print_report (mm/kasan/report.c:378 ...)
kasan_report (mm/kasan/report.c:595)
drm_edid_connector_update (drivers/gpu/drm/drm_edid.c:7581)
bochs_connector_helper_get_modes (drivers/gpu/drm/tiny/bochs.c:574)
drm_helper_probe_single_connector_modes (drivers/gpu/drm/drm_probe_helper.c:426)
status_store (drivers/gpu/drm/drm_sysfs.c:219)
...
vfs_write (fs/read_write.c:595 fs/read_write.c:688)
ksys_write (fs/read_write.c:740)
📍 영향받는 시스템
Linux Kernel (drm/edid 모듈을 사용하는 시스템)
⚔️ 공격 벡터
조작된 EDID(Extended Display Identification Data)를 통해 타일형 디스플레이 블록의 크기를 속여 전달
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 drm_parse_tiled_block()의 길이 검증 로직을 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인