🇰🇷 한글 설명
Linux 커널 i915 드라이버에서 NV12 평면(plane) 해제 작업이 평면 상태 검사보다 나중에 수행되어, 사용자 공간이 이전에 Y 평면으로 선택되었던 평면을 일반 평면으로 재구성할 때 이미 계산된 평면 상태가 손상될 수 있는 문제입니다. 수정안은 새 평면 상태를 계산하기 전에 NV12 평면을 먼저 해제하도록 순서를 변경하는 것입니다.
💡 쉬운 설명
그래픽 드라이버가 화면 평면 설정을 처리할 때 순서가 잘못되어 이미 계산된 설정 값이 덮어씌워질 수 있습니다. 이 순서를 바로잡아 설정이 올바르게 유지되도록 수정한 내용입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/i915: Unlink NV12 planes earlier
unlink_nv12_plane() will clobber parts of the plane state
potentially already set up by plane_atomic_check(), so we
must make sure not to call the two in the wrong order.
The problem happens when a plane previously selected as
a Y plane is now configured as a normal plane by user space.
plane_atomic_check() will first compute the proper plane
state based on the userspace request, and unlink_nv12_plane()
later clears some of the state.
This used to work on account of unlink_nv12_plane() skipping
the state clearing based on the plane visibility. But I removed
that check, thinking it was an impossible situation. Now when
that situation happens unlink_nv12_plane() will just WARN
and proceed to clobber the state.
Rather than reverting to the old way of doing things, I think
it's more clear if we unlink the NV12 planes before we even
compute the new plane state.
(cherry picked from commit 017ecd04985573eeeb0745fa2c23896fb22ee0cc)
📍 영향받는 시스템
수정 이전 Linux 커널의 Intel i915 그래픽 드라이버를 사용하는 시스템 (구체적 버전 범위는 확인 필요)
⚔️ 공격 벡터
로컬 사용자가 디스플레이 평면 구성을 특정 순서로 조작해 드라이버 상태를 손상시키는 방식으로 알려져 있으며, 주로 서비스 거부(커널 경고 및 불안정) 가능성이 있습니다.
🛡️ 대응 방법
배포판 제공 최신 Linux 커널 업데이트를 설치하고 재부팅하여 해당 수정 커밋이 포함된 버전을 사용하십시오.
🔧 검증 코드
출력된 커널 버전을 배포판 보안 공지에서 해당 수정이 포함된 패치 버전과 비교하고, i915 모듈이 로드되어 있으면 Intel 그래픽 드라이버를 사용 중이므로 업데이트 대상임을 확인합니다.
uname -r; lsmod | grep -E '^i915' 2>/dev/null