🇰🇷 한글 설명
Linux 커널의 drm/exynos: vidi 구성 요소에서 vidi_connection_ioctl() 함수가 잘못된 장치 데이터를 참조하여 발생하는 취약점입니다. 이로 인해 Null 포인터 역참조, 잘못된 값 접근, 메모리 범위 초과 또는 Use-After-Free와 같은 심각한 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 그래픽 장치 드라이버가 엉뚱한 정보를 참조하여 시스템이 멈추거나 보안 오류가 생길 수 있는 문제입니다. 잘못된 주소를 읽으려다 보니 프로그램이 예상치 못한 동작을 하게 됩니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/exynos: vidi: use priv->vidi_dev for ctx lookup in vidi_connection_ioctl()
vidi_connection_ioctl() retrieves the driver_data from drm_dev->dev to
obtain a struct vidi_context pointer. However, drm_dev->dev is the
exynos-drm master device, and the driver_data contained therein is not
the vidi component device, but a completely different device.
This can lead to various bugs, ranging from null pointer dereferences and
garbage value accesses to, in unlucky cases, out-of-bounds errors,
use-after-free errors, and more.
To resolve this issue, we need to store/delete the vidi device pointer in
exynos_drm_private->vidi_dev during bind/unbind, and then read this
exynos_drm_private->vidi_dev within ioctl() to obtain the correct
struct vidi_context pointer.
📍 영향받는 시스템
Linux kernel (Exynos DRM driver 포함 버전)
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 특수하게 조작된 ioctl 시스템 호출을 통해 메모리 오류 유도
🛡️ 대응 방법
커널 패치를 통해 vidi_connection_ioctl()이 올바른 vidi 장치 포인터를 참조하도록 수정
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전인지 확인