{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2025-37882", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2025-04-16T04:51:23.962Z", "datePublished": "2025-05-09T06:45:45.936Z", "dateUpdated": "2026-08-05T11:58:01.446Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:58:01.446Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: xhci: Fix isochronous Ring Underrun/Overrun event handling\n\nThe TRB pointer of these events points at enqueue at the time of error\noccurrence on xHCI 1.1+ HCs or it's NULL on older ones. By the time we\nare handling the event, a new TD may be queued at this ring position.\n\nI can trigger this race by rising interrupt moderation to increase IRQ\nhandling delay. Similar delay may occur naturally due to system load.\n\nIf this ever happens after a Missed Service Error, missed TDs will be\nskipped and the new TD processed as if it matched the event. It could\nbe given back prematurely, risking data loss or buffer UAF by the xHC.\n\nDon't complete TDs on xrun events and don't warn if queued TDs don't\nmatch the event's TRB pointer, which can be NULL or a link/no-op TRB.\nDon't warn if there are no queued TDs at all.\n\nNow that it's safe, also handle xrun events if the skip flag is clear.\nThis ensures completion of any TD stuck in 'error mid TD' state right\nbefore the xrun event, which could happen if a driver submits a finite\nnumber of URBs to a buggy HC and then an error occurs on the last TD." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "AV:L - The race is in the xHCI host controller interrupt handler and is driven by isochronous URB traffic that a local user can generate through already-attached isoc devices (built-in UVC webcam, USB audio codec) via V4L2/ALSA/usbfs — no device insertion or physical access is needed.\nAC:L - The attacker controls both sides of the race: ring underruns are caused by starving the isoc ring (attacker-paced URB submission), while the IRQ-processing delay and Missed Service Errors are induced by attacker-generated CPU and USB bandwidth load, and the sequence can be retried continuously at stream rate until it lands.\nPR:L - Only an ordinary unprivileged local account is needed, since logind/udev ACLs routinely grant the active seat user access to /dev/video*, /dev/snd/pcm* and /dev/bus/usb, all of which submit isochronous transfers to xHCI.\nUI:N - The attacker performs all steps themselves by opening the isoc endpoint and driving the transfer pattern; no action by any other user is required.\nS:U - The corruption occurs in kernel memory managed by the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The prematurely completed URB's buffer is DMA-unmapped and freed while the xHC still owns the TRBs, so freed kernel heap contents are transmitted to the USB device on OUT endpoints and the freed object can be reallocated and read back, giving an arbitrary kernel-memory disclosure primitive.\nI:H - The host controller continues DMA-writing device-supplied data into the freed/unmapped buffer, producing an attacker-influenced write into reallocated kernel heap memory — a use-after-free write primitive usable for control-flow hijack, on top of silent data corruption of the isoc stream.\nA:H - DMA into freed memory and the resulting software/hardware ring dequeue-pointer desync cause heap corruption, IOMMU faults, \"HC is busted\" error paths and controller resets, readily crashing or hanging the system." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/usb/host/xhci-ring.c" ], "versions": [ { "version": "608b973b70f87e9a9bafbfdfa16aab68507aef45", "lessThan": "16a7a8e6c47fea5c847beb696c8c21a7a44c1915", "status": "affected", "versionType": "git" }, { "version": "608b973b70f87e9a9bafbfdfa16aab68507aef45", "lessThan": "39a080a2925c81b0f1da0add44722ef2b78e5454", "status": "affected", "versionType": "git" }, { "version": "608b973b70f87e9a9bafbfdfa16aab68507aef45", "lessThan": "906dec15b9b321b546fd31a3c99ffc13724c7af4", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/usb/host/xhci-ring.c" ], "versions": [ { "version": "6.10", "status": "affected" }, { "version": "0", "lessThan": "6.10", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.26", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.14.5", "lessThanOrEqual": "6.14.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.15", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.10", "versionEndExcluding": "6.12.26" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.10", "versionEndExcluding": "6.14.5" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.10", "versionEndExcluding": "6.15" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/16a7a8e6c47fea5c847beb696c8c21a7a44c1915" }, { "url": "https://git.kernel.org/stable/c/39a080a2925c81b0f1da0add44722ef2b78e5454" }, { "url": "https://git.kernel.org/stable/c/906dec15b9b321b546fd31a3c99ffc13724c7af4" } ], "title": "usb: xhci: Fix isochronous Ring Underrun/Overrun event handling", "x_generator": { "engine": "bippy-1.2.0" } } } }