CVE-2026-142986
Last modified
CVE-2026-142986 is a vulnerability of currently unknown severity. 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..
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.
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < e43bc0f68b596a20fe7d4b65231e7d27192d5bb5; >= e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < d5e34684b1cdf9635f5c73e1c8ca02c886a81796; >= e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < bf132239a705c7d3672c3d7086ac911bac23ebf4; >= e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < 41b3f72bc94c7701c322fe7c390edd7d2ec1ee38; >= e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < dc15fd316ac860b6904689941bb14527554e8a96; >= e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < 78a8d6537f1de34770e460edee360b556ef40427 |
| Linux | Linux | 4.5 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-142986?
How severe is CVE-2026-142986?
How do I fix CVE-2026-142986?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-142980In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142981In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142982In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142983In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142984In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142985In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142987In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142988In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142989In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142990In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142991In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142992In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2026-142986?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
