{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "668186369809b69a724c8982d256a3a88f7d952b"
            },
            {
              "fixed": "84c6759990a10e71be2afd5ca0a53561579566ce"
            },
            {
              "fixed": "304f5966eec2af8f82e883cbed7694ffd1eac9ff"
            },
            {
              "fixed": "9b6f91aa3846ea1460f03e34e49249c104077668"
            },
            {
              "fixed": "3112ea41836be0f97f5c42e0ef19261811f6de65"
            },
            {
              "fixed": "834ca8b916c768411693b62aaeb33f7ce39fe10e"
            },
            {
              "fixed": "22247f5024684b29d071230b00bc19ae9869bc76"
            },
            {
              "fixed": "06be918062adc1a5a76dc346803b136b20bdb5ae"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.12"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99882.json"
  },
  "details": "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-\u003ebuffer_bytes - oldptr\n\nwith oldptr \u003e 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 \u003c=\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.",
  "id": "CVE-2026-99882",
  "modified": "2026-11-30T14:46:04.387758176Z",
  "published": "2026-11-30T13:17:56.417Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/06be918062adc1a5a76dc346803b136b20bdb5ae"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/22247f5024684b29d071230b00bc19ae9869bc76"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/304f5966eec2af8f82e883cbed7694ffd1eac9ff"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3112ea41836be0f97f5c42e0ef19261811f6de65"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/668186369809b69a724c8982d256a3a88f7d952b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/834ca8b916c768411693b62aaeb33f7ce39fe10e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/84c6759990a10e71be2afd5ca0a53561579566ce"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9b6f91aa3846ea1460f03e34e49249c104077668"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99882.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99882"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ALSA: usb-audio: Bound packet copies by the PCM buffer size"
}