CVE-2026-142988

Source
https://cve.org/CVERecord?id=CVE-2026-142988
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142988.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142988
Downstream
Published
2026-12-03T09:17:19Z
Modified
2026-12-03T11:00:24Z
Summary
usb: xhci: disable the correct slot on alloc_dev failure
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142988.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3ffbba9511b4148cbe1f6b6238686adaeaca8feb
Fixed
ef4d7c299e7c4d1e93df929a880d89f1e4e48db1
Fixed
a9e44abc08f97c8239aa7145928954f4876353b8
Fixed
d60e92dbea2b4b963e3c4a889eb4352a2679ecd5
Fixed
2f2fe3201029ffc215b46ac40a0a9587715bc43a

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142988.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.31
Fixed
6.12.120
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.66
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142988.json"