{"id":"CVE-2026-142988","summary":"usb: xhci: disable the correct slot on alloc_dev failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: xhci: disable the correct slot on alloc_dev failure\n\nxhci_alloc_dev() stores the Slot ID returned by the Enable Slot command\nin the local slot_id variable.  udev-\u003eslot_id is updated only after\nxhci_alloc_virt_device() succeeds.\n\nIf endpoint resource reservation or virtual device allocation fails\nbefore that update, the error path passes udev-\u003eslot_id to\nxhci_disable_and_free_slot().  During initial enumeration this is slot 0.\nWhen reallocating a device whose virtual device is missing or belongs to\nanother usb_device, udev-\u003eslot_id may contain a stale Slot ID.\nThe newly enabled slot can therefore remain active, or the wrong slot can\nbe disabled.\n\nPass slot_id, which identifies the slot enabled by this invocation.\nxhci_disable_and_free_slot() already handles a missing xhci-\u003edevs entry.","modified":"2026-12-03T11:00:24.683641598Z","published":"2026-12-03T09:17:19.529Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142988.json"},"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/2f2fe3201029ffc215b46ac40a0a9587715bc43a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a9e44abc08f97c8239aa7145928954f4876353b8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d60e92dbea2b4b963e3c4a889eb4352a2679ecd5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef4d7c299e7c4d1e93df929a880d89f1e4e48db1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142988.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142988"}],"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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.9.2"}