🇰🇷 한글 설명
Linux 커널의 ALSA USB 오디오 드라이버에서 fill_max 플래그가 설정된 경우 DMA 버퍼의 크기가 실제 전송 요청 크기보다 작게 할당되는 취약점입니다. 이로 인해 USB 호스트 컨트롤러가 버퍼 범위를 벗어나 데이터를 쓰는 Out-of-bounds write가 발생하여 커널 힙 메모리를 손상시킬 수 있습니다.
💡 쉬운 설명
USB 오디오 장치가 데이터를 보낼 때, 컴퓨터가 준비한 저장 공간보다 더 많은 데이터를 보내려고 시도하여 메모리 오류를 일으키는 문제입니다. 이 과정에서 시스템의 중요한 데이터가 망가질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: Fix DMA buffer out-of-bounds write when fill_max is set
When a USB audio endpoint requests full packet transfers via the fill_max
descriptor flag, data_ep_set_params() promotes ep->curpacksize to
ep->maxpacksize. However, maxsize is left at the original sample-rate
derived value.
Since u->buffer_size is allocated as maxsize * packets, the resulting
DMA buffer is far too small for the requested transfer length. When the
USB host controller streams up to curpacksize bytes per packet, it writes
past the end of the buffer via DMA, corrupting kernel heap memory.
Update maxsize to curpacksize when fill_max is set so that the allocated
DMA buffer size matches the actual transfer request size.
[ changed to reassign maxsize only when ep->fill_max is set -- tiwai ]
📍 영향받는 시스템
fill_max 플래그를 사용하는 USB 오디오 엔드포인트를 포함한 Linux 커널 버전
⚔️ 공격 벡터
악의적으로 조작된 USB 오디오 장치를 연결하여 DMA를 통한 커널 메모리 오염 유도
🛡️ 대응 방법
fill_max가 설정된 경우 maxsize를 curpacksize로 업데이트하는 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux