🇰🇷 한글 설명
Linux 커널의 drm/xe/dma-buf 구성 요소에서 재시도 루프 처리 중 Use-After-Free(UAF) 취약점이 발견되었습니다. 오류 발생 시 메모리 객체가 해제된 후 다시 참조되어 발생하는 문제로, 할당과 초기화 과정을 통합하여 해결되었습니다.
💡 쉬운 설명
컴퓨터가 메모리를 사용한 뒤 제대로 지우지 않거나, 이미 지운 메모리를 다시 사용하려고 할 때 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/xe/dma-buf: fix UAF with retry loop
Retry doesn't work here, since bo will be freed on error, leading to
UAF. However, now that we do the alloc & init before the attach, we can
now combine this as one unit and have the init do the alloc for us. This
should make the retry safe.
Reported by Sashiko.
v2: Fix up the error unwind (CI)
(cherry picked from commit 479669418253e0f27f8cf5db01a731352ea592e7)
📍 영향받는 시스템
Linux Kernel (drm/xe/dma-buf 모듈을 사용하는 시스템)
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 DMA-BUF 관련 시스템 호출을 통해 메모리 오류를 유도하여 권한 상승 시도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인