🔍 CVE-2021-47535

7.8
CVSS Score
HIGH
2024-05-24
2026-08-04 10:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 drm/msm/a6xx 드라이버에서 GMU 레지스터를 읽을 때 할당된 메모리 공간보다 더 많은 데이터를 쓰려고 시도하는 slab-out-of-bounds 취약점이 발견되었습니다. 이는 이전 커밋에서 레지스터 읽기 횟수는 늘렸으나 메모리 할당 크기를 수정하지 않아 발생한 문제입니다.

💡 쉬운 설명

컴퓨터의 그래픽 관련 부품 정보를 저장할 공간을 너무 작게 만들어, 정보를 저장하다가 정해진 범위를 넘어서는 메모리 영역을 건드리는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 충돌할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: drm/msm/a6xx: Allocate enough space for GMU registers In commit 142639a52a01 ("drm/msm/a6xx: fix crashstate capture for A650") we changed a6xx_get_gmu_registers() to read 3 sets of registers. Unfortunately, we didn't change the memory allocation for the array. That leads to a KASAN warning (this was on the chromeos-5.4 kernel, which has the problematic commit backported to it): BUG: KASAN: slab-out-of-bounds in _a6xx_get_gmu_registers+0x144/0x430 Write of size 8 at addr ffffff80c89432b0 by task A618-worker/209 CPU: 5 PID: 209 Comm: A618-worker Tainted: G W 5.4.156-lockdep #22 Hardware name: Google Lazor Limozeen without Touchscreen (rev5 - rev8) (DT) Call trace: dump_backtrace+0x0/0x248 show_stack+0x20/0x2c dump_stack+0x128/0x1ec print_address_description+0x88/0x4a0 __kasan_report+0xfc/0x120 kasan_report+0x10/0x18 __asan_report_store8_noabort+0x1c/0x24 _a6xx_get_gmu_registers+0x144/0x430 a6xx_gpu_state_get+0x330/0x25d4 msm_gpu_crashstate_capture+0xa0/0x84c recover_worker+0x328/0x838 kthread_worker_fn+0x32c/0x574 kthread+0x2dc/0x39c ret_from_fork+0x10/0x18 Allocated by task 209: __kasan_kmalloc+0xfc/0x1c4 kasan_kmalloc+0xc/0x14 kmem_cache_alloc_trace+0x1f0/0x2a0 a6xx_gpu_state_get+0x164/0x25d4 msm_gpu_crashstate_capture+0xa0/0x84c recover_worker+0x328/0x838 kthread_worker_fn+0x32c/0x574 kthread+0x2dc/0x39c ret_from_fork+0x10/0x18

📍 영향받는 시스템

Linux kernel (특히 chromeos-5.4 커널 및 a6xx 드라이버를 사용하는 시스템)

⚔️ 공격 벡터

로컬 공격자가 특정 GPU 상태 캡처 프로세스를 유도하여 메모리 오염을 일으킴

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 메모리 할당 크기를 수정해야 함

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel