In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Track a timed out End Transfer If an End Transfer command with CMDIOC times out, the driver clears the resource index but keeps DWC3_EP_TRANSFER_STARTED without setting DWC3_EP_END_TRANSFER_PENDING. The command is still outstanding, but a later stop issues another End Transfer with resource index 0, and the next Start Transfer fails with "No Resource". Mark the timed out End Transfer as pending so that no other command is issued to the endpoint until it completes. For any other failure, there is no outstanding command, so clear DWC3_EP_TRANSFER_STARTED.
https://git.kernel.org/stable/c/ce3dcf963822ce6aaccee34688909b6b797fff90
https://git.kernel.org/stable/c/af91c6322e633504aa45de278f5d520f39d127be
https://git.kernel.org/stable/c/751d7b8c64ae9c0f704bd3da38f28bee80a4ff11
https://git.kernel.org/stable/c/6fe7b2480fb5c6aad4ee669161db0aac05cdc6cc