🇰🇷 한글 설명
Linux 커널의 drm/xe 드라이버에서 xe_gem_prime_import() 함수 호출 시 dma-buf 첨부(attachment)가 해제되지 않는 메모리 누수 취약점이 발견되었습니다. xe_dma_buf_init_obj()가 실패할 경우 dma_buf_dynamic_attach()를 통해 생성된 연결을 명시적으로 분리하지 않아 자원이 낭비되는 문제입니다.
💡 쉬운 설명
컴퓨터의 그래픽 자원을 관리하는 과정에서 사용이 끝난 연결을 제대로 끊지 않아 메모리가 계속 쌓이는 문제가 있습니다. 이로 인해 시스템의 메모리가 점차 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()
When xe_dma_buf_init_obj() fails, the attachment from
dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before
returning the error. Note: we cannot use goto out_err here because
xe_dma_buf_init_obj() already frees bo on failure, and out_err would
double-free it.
(cherry picked from commit a828eb185aac41800df8eae4b60501ccc0dbbe51)
📍 영향받는 시스템
Linux kernel (drm/xe driver 포함 버전)
⚔️ 공격 벡터
특정 드라이버 호출을 통한 반복적인 메모리 자원 할당 및 해제 실패 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.