CVE-2025-40269

Linux Kernel - Buffer Overflow in ALSA USB-Audio PCM Transfer

Title source: llm
STIX 2.1

Description

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].

Scores

EPSS 0.0021
EPSS Percentile 43.1%

Details

Status published
Products (45)
linux/Kernel < 4.4.230linux
linux/Kernel 4.10.0 - 4.14.188linux
linux/Kernel 4.15.0 - 4.19.132linux
linux/Kernel 4.20.0 - 5.4.51linux
linux/Kernel 4.5.0 - 4.9.230linux
linux/Kernel 5.11.0 - 6.1.159linux
linux/Kernel 5.16.0 - 6.6.117linux
linux/Kernel 5.5.0 - 5.7.8linux
linux/Kernel 5.8.0 - 5.15.197linux
linux/Kernel 6.2.0 - 6.12.59linux
... and 35 more
Published Dec 06, 2025
Tracked Since Feb 18, 2026