🇰🇷 한글 설명
Linux 커널의 nouveau 드라이버에서 OP_UNMAP_SPARSE 작업 중 오류가 발생하여 작업이 취소될 때, 해당 영역의 dirty 플래그가 제대로 초기화되지 않는 취약점입니다. 이로 인해 해당 메모리 영역이 영구적으로 dirty 상태로 남아 이후의 바인딩 작업이 실패하거나 시스템이 응답하지 않는 상태에 빠질 수 있습니다.
💡 쉬운 설명
그래픽 카드 드라이버에서 메모리 정리 작업 중 오류가 나면, 정리해야 할 표시가 지워지지 않고 남아버리는 문제입니다. 이 표시 때문에 나중에 같은 메모리를 사용하려고 하면 컴퓨터가 오류를 내거나 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau/uvmm: clear the dirty flag when unwinding an OP_UNMAP_SPARSE
A successful OP_UNMAP_SPARSE marks its region dirty with
nouveau_uvma_region_dirty() and defers the teardown to
nouveau_uvmm_bind_job_cleanup(); it does not remove the region from
uvmm->region_mt.
If a later op in the job fails, the unwind path never clears reg->dirty
(set in one place, cleared nowhere) and sets op->reg = NULL, so cleanup
skips the teardown. The region is left in the tree with dirty set and its
completion never signalled. Later binds over that range then fail
permanently -- -ENOENT or -EINVAL from the dirty checks, or an unkillable
wait_for_completion() in bind_validate_region() -- for the lifetime of
the uvmm.
Clear reg->dirty when the unwind reverts the sparse unmap, restoring the
region to the state it was found in.
📍 영향받는 시스템
Linux kernel (nouveau driver 포함 버전)
⚔️ 공격 벡터
로컬 사용자가 특정 메모리 관리 작업(OP_UNMAP_SPARSE)을 유도하여 드라이버 상태를 손상시킴
🛡️ 대응 방법
nouveau 드라이버의 UVMM 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인