🇰🇷 한글 설명
Linux 커널의 drm/msm/dsi 드라이버에서 DSI 6G 플랫폼 사용 시 메모리 덤프 과정에서 매핑되지 않은 영역에 접근할 수 있는 취약점이 발견되었습니다. IO 주소 공간이 io_offset에 의해 조정되지만, 메모리 덤프 크기는 이를 반영하지 않아 할당 범위를 벗어난 메모리 접근이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 화면 정보를 저장할 때 정해진 메모리 범위를 넘어서서 잘못된 영역을 읽으려고 시도하는 문제입니다. 이로 인해 시스템이 불안정해지거나 보안상 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/msm/dsi: don't dump registers past the mapped region
On DSI 6G platforms the IO address space is internally adjusted by
io_offset. Later this adjusted address might be used for memory dumping.
However the size that is used for memory dumping isn't adjusted to
account for the io_offset, leading to the potential access to the
unmapped region. Lower ctrl_size by the io_offset value to prevent
access past the mapped area.
msm_disp_snapshot_add_block+0x1d4/0x3c8 [msm] (P)
msm_dsi_host_snapshot+0x4c/0x78 [msm]
msm_dsi_snapshot+0x28/0x50 [msm]
msm_disp_snapshot_capture_state+0x74/0x140 [msm]
msm_disp_snapshot_state_sync+0x60/0x90 [msm]
_msm_disp_snapshot_work+0x30/0x90 [msm]
kthread_worker_fn+0xdc/0x460
kthread+0x120/0x140
Patchwork: https://patchwork.freedesktop.org/patch/721747/
📍 영향받는 시스템
Linux kernel (msm/dsi driver in DSI 6G platforms)
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 특정 드라이버 기능을 호출하여 매핑되지 않은 메모리 영역에 접근 시도
🛡️ 대응 방법
Linux 커널을 최신 패치가 적용된 버전으로 업데이트하여 io_offset을 반영한 ctrl_size 조정 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 적용 이후 버전인지 확인