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.
Overview
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.
- Published
- 12/3/2026
- Last modified
- 12/3/2026
- CVE assigner
- Linux
- NVD analysis
- Received
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
Linux Linux | ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < e43bc0f68b596a20fe7d4b65231e7d27192d5bb5 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < d5e34684b1cdf9635f5c73e1c8ca02c886a81796 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < bf132239a705c7d3672c3d7086ac911bac23ebf4 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < 41b3f72bc94c7701c322fe7c390edd7d2ec1ee38 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < dc15fd316ac860b6904689941bb14527554e8a96 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < 78a8d6537f1de34770e460edee360b556ef40427 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | 4.5 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
No CVSS score is published for this record yet. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.