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.
https://git.kernel.org/stable/c/ef4d7c299e7c4d1e93df929a880d89f1e4e48db1
https://git.kernel.org/stable/c/d60e92dbea2b4b963e3c4a889eb4352a2679ecd5
https://git.kernel.org/stable/c/a9e44abc08f97c8239aa7145928954f4876353b8
https://git.kernel.org/stable/c/2f2fe3201029ffc215b46ac40a0a9587715bc43a