🔍 CVE-2025-39997

0.0
CVSS Score
UNKNOWN
2025-10-15
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ALSA usb-audio 드라이버에서 snd_usbmidi_free 함수 호출 시 발생하는 레이스 컨디션 및 Use-After-Free(UAF) 취약점입니다. 기존 패치에도 불구하고 엔드포인트 삭제 후 타이머가 종료되어 메모리 해제 후 접근이 발생하는 문제가 남아있었습니다. 이를 해결하기 위해 메모리 해제 전 에러 타이머와 URB를 먼저 종료하도록 수정되었습니다.

💡 쉬운 설명

USB 오디오 장치를 사용할 때 시스템 내부에서 데이터 처리 순서가 꼬여 이미 삭제된 메모리 영역에 접근하는 오류가 발생할 수 있습니다. 이로 인해 시스템이 갑자기 멈추거나 보안 문제가 생길 수 있어 이를 바로잡는 업데이트가 필요합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: fix race condition to UAF in snd_usbmidi_free The previous commit 0718a78f6a9f ("ALSA: usb-audio: Kill timer properly at removal") patched a UAF issue caused by the error timer. However, because the error timer kill added in this patch occurs after the endpoint delete, a race condition to UAF still occurs, albeit rarely. Additionally, since kill-cleanup for urb is also missing, freed memory can be accessed in interrupt context related to urb, which can cause UAF. Therefore, to prevent this, error timer and urb must be killed before freeing the heap memory.

📍 영향받는 시스템

Linux Kernel (ALSA usb-audio driver components)

⚔️ 공격 벡터

특정 조건에서 USB 오디오 장치를 연결하거나 해제할 때 발생하는 레이스 컨디션을 이용한 로컬 공격

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 수정된 최신 패치 버전인지 배포판 보안 공지를 통해 확인하십시오.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel