Description
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: Bound packet copies by the PCM buffer size
retire_capture_urb() and prepare_playback_urb() assume that one USB
packet never carries more data than the whole ALSA ring buffer. Nothing
enforces that: the packet size comes from the device (wMaxPacketSize,
and curpacksize == maxpacksize when the class-specific endpoint
descriptor sets MaxPacketsOnly), while the PCM hardware constraints only
require 64-byte periods, two periods and a period time of one data
interval. An 8 kHz mono U8 stream on a 128-byte buffer is legal, and a
full-speed device can send 1023-byte packets into it.
On the first oversized packet hwptr_done is wrapped once and stays
beyond buffer_bytes (895 for 1023 bytes into 128). On the next packet
the wrap arithmetic in the copy path computes
bytes1 = subs->buffer_bytes - oldptr
with oldptr > buffer_bytes, so bytes1 wraps to about 4 GB and memcpy()
runs off the end of the URB buffer and of the vmalloc'd DMA buffer:
BUG: KASAN: slab-out-of-bounds in retire_capture_urb+0x251/0x870
Read of size 4294966529 at addr ffff88800c1e2800 by task vhci_rx/82
and for playback, where copy_to_urb() has the same shape:
BUG: KASAN: vmalloc-out-of-bounds in copy_to_urb.isra.0+0x188/0x430
Read of size 4294966529 at addr ffffc9000004537f by task vhci_rx/79
prepare_playback_urb+0x98a/0x1fc0
Truncate an oversized capture packet to the buffer size, and stop
filling a playback URB once it holds a whole buffer. With bytes <=
buffer_bytes the single wrap of hwptr_done and the two-part memcpy()
in both copy paths stay inside the buffer. A device whose packets do
not fit the buffer at all was never going to play correctly anyway.
Reproduced on 7.3-rc7 with a USB/IP device (dummy_hcd cannot carry
isochronous data) advertising a UAC1 endpoint with MaxPacketsOnly and
wMaxPacketSize 1023, and a PCM client using period_size 64, periods 2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | patch: 0 | — |
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <06be918062adc1a5a76dc346803b136b20bdb5ae | — |
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <304f5966eec2af8f82e883cbed7694ffd1eac9ff | — |
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <668186369809b69a724c8982d256a3a88f7d952b | — |
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <834ca8b916c768411693b62aaeb33f7ce39fe10e | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | patch: 6.12.118 | — |
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <22247f5024684b29d071230b00bc19ae9869bc76 | — |
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | patch: 5.15.226 | — |
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <84c6759990a10e71be2afd5ca0a53561579566ce | — |
| Linux | Linux | patch: 5.10.275 | — |
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <9b6f91aa3846ea1460f03e34e49249c104077668 | — |
| Linux | Linux | patch: 6.18.63 | — |
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <3112ea41836be0f97f5c42e0ef19261811f6de65 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | 2.6.12 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.3.4-1 | — |
| Debian 13 | linux | 6.12.118-1 | — |
| Debian 12 | linux | No fix yet | — |
| Debian 12 | linux-6.12 | 6.12.118-1~deb12u1 | DLA-4961-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 24.04 LTS | linux +52 | No fix yet | — |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
Advisories 2
- DLA-4961-1 linux-6.12 - security update Debian Security (DSA / DLA) · Dec 2, 2026
- WID-SEC-2026-4889 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 30, 2026
References
- https://git.kernel.org/stable/c/668186369809b69a724c8982d256a3a88f7d952b
- https://git.kernel.org/stable/c/84c6759990a10e71be2afd5ca0a53561579566ce
- https://git.kernel.org/stable/c/304f5966eec2af8f82e883cbed7694ffd1eac9ff
- https://git.kernel.org/stable/c/9b6f91aa3846ea1460f03e34e49249c104077668
- https://git.kernel.org/stable/c/3112ea41836be0f97f5c42e0ef19261811f6de65
- https://git.kernel.org/stable/c/834ca8b916c768411693b62aaeb33f7ce39fe10e
- https://git.kernel.org/stable/c/22247f5024684b29d071230b00bc19ae9869bc76
- https://git.kernel.org/stable/c/06be918062adc1a5a76dc346803b136b20bdb5ae