CVE-2026-142986
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Affected 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | linux |
Affected | — |
| sid | linux |
Affected | — |
| forky | linux |
Affected | — |
| bookworm | linux |
Affected | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| linux | linux | 4.5 | |
References
- https://git.kernel.org/stable/c/41b3f72bc94c7701c322fe7c390edd7d2ec1ee38
- https://git.kernel.org/stable/c/78a8d6537f1de34770e460edee360b556ef40427
- https://git.kernel.org/stable/c/bf132239a705c7d3672c3d7086ac911bac23ebf4
- https://git.kernel.org/stable/c/d5e34684b1cdf9635f5c73e1c8ca02c886a81796
- https://git.kernel.org/stable/c/dc15fd316ac860b6904689941bb14527554e8a96
- https://git.kernel.org/stable/c/e43bc0f68b596a20fe7d4b65231e7d27192d5bb5
- https://security-tracker.debian.org/tracker/CVE-2026-142986
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.