{"id":"CVE-2026-99882","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:20:22.780","lastModified":"2026-11-30T14:20:22.780","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: Bound packet copies by the PCM buffer size\n\nretire_capture_urb() and prepare_playback_urb() assume that one USB\npacket never carries more data than the whole ALSA ring buffer. Nothing\nenforces that: the packet size comes from the device (wMaxPacketSize,\nand curpacksize == maxpacksize when the class-specific endpoint\ndescriptor sets MaxPacketsOnly), while the PCM hardware constraints only\nrequire 64-byte periods, two periods and a period time of one data\ninterval. An 8 kHz mono U8 stream on a 128-byte buffer is legal, and a\nfull-speed device can send 1023-byte packets into it.\n\nOn the first oversized packet hwptr_done is wrapped once and stays\nbeyond buffer_bytes (895 for 1023 bytes into 128). On the next packet\nthe wrap arithmetic in the copy path computes\n\n    bytes1 = subs->buffer_bytes - oldptr\n\nwith oldptr > buffer_bytes, so bytes1 wraps to about 4 GB and memcpy()\nruns off the end of the URB buffer and of the vmalloc'd DMA buffer:\n\n  BUG: KASAN: slab-out-of-bounds in retire_capture_urb+0x251/0x870\n  Read of size 4294966529 at addr ffff88800c1e2800 by task vhci_rx/82\n\nand for playback, where copy_to_urb() has the same shape:\n\n  BUG: KASAN: vmalloc-out-of-bounds in copy_to_urb.isra.0+0x188/0x430\n  Read of size 4294966529 at addr ffffc9000004537f by task vhci_rx/79\n   prepare_playback_urb+0x98a/0x1fc0\n\nTruncate an oversized capture packet to the buffer size, and stop\nfilling a playback URB once it holds a whole buffer. With bytes <=\nbuffer_bytes the single wrap of hwptr_done and the two-part memcpy()\nin both copy paths stay inside the buffer. A device whose packets do\nnot fit the buffer at all was never going to play correctly anyway.\n\nReproduced on 7.3-rc7 with a USB/IP device (dummy_hcd cannot carry\nisochronous data) advertising a UAC1 endpoint with MaxPacketsOnly and\nwMaxPacketSize 1023, and a PCM client using period_size 64, periods 2."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["sound/usb/pcm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"668186369809b69a724c8982d256a3a88f7d952b","versionType":"git","status":"affected"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"84c6759990a10e71be2afd5ca0a53561579566ce","versionType":"git","status":"affected"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"304f5966eec2af8f82e883cbed7694ffd1eac9ff","versionType":"git","status":"affected"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"9b6f91aa3846ea1460f03e34e49249c104077668","versionType":"git","status":"affected"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"3112ea41836be0f97f5c42e0ef19261811f6de65","versionType":"git","status":"affected"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"834ca8b916c768411693b62aaeb33f7ce39fe10e","versionType":"git","status":"affected"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"22247f5024684b29d071230b00bc19ae9869bc76","versionType":"git","status":"affected"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"06be918062adc1a5a76dc346803b136b20bdb5ae","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["sound/usb/pcm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","lessThan":"2.6.12","versionType":"semver","status":"unaffected"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/06be918062adc1a5a76dc346803b136b20bdb5ae","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/22247f5024684b29d071230b00bc19ae9869bc76","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/304f5966eec2af8f82e883cbed7694ffd1eac9ff","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/3112ea41836be0f97f5c42e0ef19261811f6de65","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/668186369809b69a724c8982d256a3a88f7d952b","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/834ca8b916c768411693b62aaeb33f7ce39fe10e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/84c6759990a10e71be2afd5ca0a53561579566ce","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/9b6f91aa3846ea1460f03e34e49249c104077668","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}