CVE-2026-99882
ALSA: usb-audio: Bound packet copies by the PCM buffer size
Check your servers for CVE-2026-99882
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99882 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.50% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 668186369809b69a724c8982d256a3a88f7d952b affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 84c6759990a10e71be2afd5ca0a53561579566ce affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 304f5966eec2af8f82e883cbed7694ffd1eac9ff affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 9b6f91aa3846ea1460f03e34e49249c104077668 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 3112ea41836be0f97f5c42e0ef19261811f6de65 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 834ca8b916c768411693b62aaeb33f7ce39fe10e affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 22247f5024684b29d071230b00bc19ae9869bc76 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 06be918062adc1a5a76dc346803b136b20bdb5ae
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.118 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99882 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99882
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99882
trivy image --scanners vuln IMAGE | grep CVE-2026-99882
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/668186369809b69a724c8982d256a3a88f7d952b git.kernel.org
- https://git.kernel.org/stable/c/84c6759990a10e71be2afd5ca0a53561579566ce git.kernel.org
- https://git.kernel.org/stable/c/304f5966eec2af8f82e883cbed7694ffd1eac9ff git.kernel.org
- https://git.kernel.org/stable/c/9b6f91aa3846ea1460f03e34e49249c104077668 git.kernel.org
- https://git.kernel.org/stable/c/3112ea41836be0f97f5c42e0ef19261811f6de65 git.kernel.org
- https://git.kernel.org/stable/c/834ca8b916c768411693b62aaeb33f7ce39fe10e git.kernel.org
- https://git.kernel.org/stable/c/22247f5024684b29d071230b00bc19ae9869bc76 git.kernel.org
- https://git.kernel.org/stable/c/06be918062adc1a5a76dc346803b136b20bdb5ae git.kernel.org
Source: the record CVE-2026-99882 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse