usb: xhci: disable the correct slot on alloc_dev failure
Summary
| CVE | CVE-2026-142988 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-03 10:17:23 UTC |
| Updated | 2026-12-03 10:17:23 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved: usb: xhci: disable the correct slot on alloc_dev failure xhci_alloc_dev() stores the Slot ID returned by the Enable Slot command in the local slot_id variable. udev->slot_id is updated only after xhci_alloc_virt_device() succeeds. If endpoint resource reservation or virtual device allocation fails before that update, the error path passes udev->slot_id to xhci_disable_and_free_slot(). During initial enumeration this is slot 0. When reallocating a device whose virtual device is missing or belongs to another usb_device, udev->slot_id may contain a stale Slot ID. The newly enabled slot can therefore remain active, or the wrong slot can be disabled. Pass slot_id, which identifies the slot enabled by this invocation. xhci_disable_and_free_slot() already handles a missing xhci->devs entry. |
Risk And Classification
EPSS: 0.002090000 probability, percentile 0.116720000 (date 2026-12-03)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 3ffbba9511b4148cbe1f6b6238686adaeaca8feb ef4d7c299e7c4d1e93df929a880d89f1e4e48db1 git | Not specified |
| CNA | Linux | Linux | affected 3ffbba9511b4148cbe1f6b6238686adaeaca8feb a9e44abc08f97c8239aa7145928954f4876353b8 git | Not specified |
| CNA | Linux | Linux | affected 3ffbba9511b4148cbe1f6b6238686adaeaca8feb d60e92dbea2b4b963e3c4a889eb4352a2679ecd5 git | Not specified |
| CNA | Linux | Linux | affected 3ffbba9511b4148cbe1f6b6238686adaeaca8feb 2f2fe3201029ffc215b46ac40a0a9587715bc43a git | Not specified |
| CNA | Linux | Linux | affected 2.6.31 | Not specified |
| CNA | Linux | Linux | unaffected 2.6.31 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.120 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.66 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.3.7 7.3.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.4-rc4 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/d60e92dbea2b4b963e3c4a889eb4352a2679ecd5 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/ef4d7c299e7c4d1e93df929a880d89f1e4e48db1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/a9e44abc08f97c8239aa7145928954f4876353b8 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/2f2fe3201029ffc215b46ac40a0a9587715bc43a | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.