CVE-2026-143180: ALSA: usb-audio: Drop capture packets with bogus actual_length
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: Drop capture packets with bogus actuallength
retirecaptureurb() copies urb->isoframedesc[i].actuallength bytes out of urb->transferbuffer at the packet's offset, but never checks that value against the requested packet length. A host controller reporting more data than requested makes memcpy() read past the end of the URB transfer buffer.
Commit 06be918062ad ("ALSA: usb-audio: Bound packet copies by the PCM buffer size") clamps the count to the PCM ring buffer size, which protects the destination. The source slot is only ep->curpacksize bytes per packet, though, so the over-read remains.
This was hit on an ARM32 system (vendor 5.4 kernel; the code path is unchanged in mainline) with a full-speed UAC1 microphone behind a high-speed hub, i.e. the EHCI siTD path. sitdcomplete() computes actuallength as desc->length - SITDLENGTH(t); the controller reported a remaining length larger than the programmed one, the value wrapped to ~4G, and the capture copy faulted on the first unmapped page after the URB buffer:
Unable to handle kernel paging request at virtual address e8756000 Internal error: Oops: 7 [#1] PREEMPT SMP ARM r3 : 00000000 r2 : 0001e700 r1 : e8756000 r0 : e878fc80 Code: ba000002 f5d1f03c f5d1f05c f5d1f07c (e8b151f8)
A packet can never legitimately carry more than its requested length, so warn and skip it instead of copying.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 06be918062ad
Event History
Frequently Asked Questions
Which systems are most clearly exposed by the reported scenario?
The issue was observed on an ARM32 system using a full-speed UAC1 microphone behind a high-speed hub, on the EHCI siTD completion path. The report states that the relevant usb-audio code path is unchanged in mainline.
What condition causes the out-of-bounds read?
The host controller must report an isochronous packet actual length greater than the programmed packet length. In the reported EHCI siTD case, a remaining-length value larger than requested caused an unsigned calculation to wrap to a value near 4 GB, leading the capture copy to read beyond the URB transfer buffer.
Why is limiting copies to the PCM ring buffer not sufficient?
Clamping the copy count to the PCM ring buffer protects the destination buffer only. Each source packet slot in the URB transfer buffer is limited to ep->curpacksize bytes, so a bogus larger actual_length can still make the copy read past its source slot and the URB buffer.