🔍 CVE-2025-40269

7.8
CVSS Score
HIGH
2025-12-06
2026-10-15 19:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ALSA USB 오디오 드라이버에서 PCM 전송 버퍼의 오버플로 취약점이 발견되었습니다. USB 디스크립터의 wMaxPacketSize 제한보다 큰 패킷 크기가 계산될 경우 버퍼 오버플로가 발생할 수 있으며, 이를 방지하기 위해 패킷 크기에 대한 유효성 검사 로직이 추가되었습니다.

💡 쉬운 설명

USB 오디오 장치를 사용할 때 데이터가 정해진 그릇보다 더 크게 들어와서 시스템 오류를 일으킬 수 있는 문제입니다. 잘못된 정보를 가진 USB 장치를 연결하면 컴퓨터의 메모리 영역이 넘쳐날 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: Fix potential overflow of PCM transfer buffer The PCM stream data in USB-audio driver is transferred over USB URB packet buffers, and each packet size is determined dynamically. The packet sizes are limited by some factors such as wMaxPacketSize USB descriptor. OTOH, in the current code, the actually used packet sizes are determined only by the rate and the PPS, which may be bigger than the size limit above. This results in a buffer overflow, as reported by syzbot. Basically when the limit is smaller than the calculated packet size, it implies that something is wrong, most likely a weird USB descriptor. So the best option would be just to return an error at the parameter setup time before doing any further operations. This patch introduces such a sanity check, and returns -EINVAL when the packet size is greater than maxpacksize. The comparison with ep->packsize[1] alone should suffice since it's always equal or greater than ep->packsize[0].

📍 영향받는 시스템

Linux Kernel (ALSA USB-audio driver 포함 버전)

⚔️ 공격 벡터

조작된 USB 디스크립터를 가진 악성 USB 오디오 장치를 시스템에 연결

🛡️ 대응 방법

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