AZL-117376: CVE-2026-99881 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ALSA: ua101: Bound packet copies by the PCM buffer size
copycapturedata() and copyplaybackdata() wrap the ring buffer position once and split the memcpy() in two at the buffer end, which is only correct when one packet holds at most buffersize frames. The capture packet size is the device's (actuallength up to wMaxPacketSize, divided by 3 bNrChannels from its own descriptor), the playback packet size is taken from the capture packets, and setstreamhw() lets the PCM client pick periodbytesmin 1, periodsmin 2 and a period time of 1.5 packet intervals: 9 frames at 44.1 kHz high speed, an 18-frame buffer. A device sending 672-byte mono 24-bit packets delivers 224 frames per packet.
After the first packet bufferpos is 206 and stays beyond buffersize. On the next packet frames1 = buffersize - bufferpos wraps and memcpy() runs away:
snd-ua101 2-1:1.0: invalid position: , pos = 206, buffer size = 18, period size = 9 BUG: KASAN: slab-out-of-bounds in captureurbcomplete+0x9eb/0xcb0 Read of size 4294966732 at addr ffff88800d73e7e0 by task vhcirx/81
and for playback:
BUG: KASAN: vmalloc-out-of-bounds in playbackwork+0x789/0xac0 Read of size 4294966732 at addr ffffc9000002626a by task kworker/0:1H/80
Clamp the capture copy to buffersize. On playback, copy at most one buffer and fill the rest of the packet with silence, so the URB length, the delay accounting and the data sent stay consistent. With that bound the single wrap and both memcpy() halves stay inside the buffer. A device whose packets do not fit the buffer never played correctly anyway.
Reproduced on 7.3-rc7 with a USB/IP device presenting the UA-101 interface layout and a 672-byte isochronous endpoint.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the ALSA ua101 driver, clamp capture copies to buffer_size. For playback, copy at most one buffer, split the copy at the ring-buffer end, and fill the rest of the packet with silence.
Event History
Frequently Asked Questions
What systems are realistically exposed to this issue?
Systems using the Linux ALSA UA-101 driver are exposed when interacting with a UA-101 device that sends packets containing more audio frames than the selected PCM buffer can hold. The affected package identified here is Azure Linux kernel 6.6.161.1-1.
What does an attacker need to trigger the vulnerability?
An attacker would need to cause the UA-101 driver to process oversized capture packets, such as a device delivering 672-byte mono 24-bit packets, while the PCM client uses a small buffer configuration. The described example uses an 18-frame buffer and packets carrying 224 frames.
What is the impact if the issue is triggered?
The driver can calculate an invalid ring-buffer position and perform a memcpy beyond the allocated buffer. The reported outcomes include KASAN-detected slab out-of-bounds reads during capture and vmalloc out-of-bounds access during playback.
How can I identify a potentially affected configuration?
Kernel logs may show snd-ua101 messages reporting an invalid position, including a buffer position greater than the buffer size, followed by KASAN out-of-bounds reports in capture_urb_complete or playback-related processing. A configuration using the UA-101 driver with very small PCM periods or buffers is relevant to triage.