🔍 CVE-2025-38595

7.8
CVSS Score
HIGH
2025-08-19
2026-10-30 13:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 Xen 관련 코드에서 dmabuf_exp_from_pages() 함수 호출 시 Use-After-Free(UAF) 취약점이 발견되었습니다. 파일 디스크립터가 설치된 직후 다른 스레드에서 해당 파일을 닫을 경우, 이미 해제된 객체에 접근하게 되어 시스템 불안정이나 권한 상승을 초래할 수 있습니다.

💡 쉬운 설명

컴퓨터가 사용 중인 데이터가 갑자기 사라졌는데도 이를 계속 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 제어권을 뺏을 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: xen: fix UAF in dmabuf_exp_from_pages() [dma_buf_fd() fixes; no preferences regarding the tree it goes through - up to xen folks] As soon as we'd inserted a file reference into descriptor table, another thread could close it. That's fine for the case when all we are doing is returning that descriptor to userland (it's a race, but it's a userland race and there's nothing the kernel can do about it). However, if we follow fd_install() with any kind of access to objects that would be destroyed on close (be it the struct file itself or anything destroyed by its ->release()), we have a UAF. dma_buf_fd() is a combination of reserving a descriptor and fd_install(). gntdev dmabuf_exp_from_pages() calls it and then proceeds to access the objects destroyed on close - starting with gntdev_dmabuf itself. Fix that by doing reserving descriptor before anything else and do fd_install() only when everything had been set up.

📍 영향받는 시스템

Xen 기능을 사용하는 Linux 커널 (취약한 버전)

⚔️ 공격 벡터

멀티스레드 환경에서 파일 디스크립터가 생성되는 시점과 닫히는 시점 사이의 경쟁 상태(Race Condition)를 이용한 공격

🛡️ 대응 방법

해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전을 확인하여 보안 패치가 적용된 최신 버전인지 제조사의 보안 공지와 대조하십시오.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel