PT-2026-166841
CVE-2026-142986
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f midi: fix UAF race during IN request handling
f midi disable() drains and frees pre-allocated IN requests from
in req fifo without holding midi->transmit lock. If f midi transmit()
runs concurrently on the workqueue, f midi do transmit() can peek a
request from in req fifo and write into its buffer while
f midi disable() frees it, leading to a use-after-free.
Additionally, when usb ep queue() fails in f midi do transmit() (such
as with -ESHUTDOWN when the endpoint is disabled concurrently), it
resets req->length = 0 and returns active instead of the error code,
causing the do-while loop in f midi transmit() to keep spinning under
midi->transmit lock until the substream is drained.
Fix this by acquiring midi->transmit lock in f midi disable() while
releasing IN requests from in req fifo, and returning the error code
from f midi do transmit() when usb ep queue() fails so f midi transmit()
aborts immediately and drops active substreams.
Found an issue in the description? Have something to add? Feel free to write us 👾