Skip to main content
VulnerabilityPublished

CVE-2026-142986: Linux kernel · usb: gadget: f_midi: fix UAF race during IN request handling

Affects Linux kernelSource CVE Database V5

0
Compare

Not known to be exploited · fixed in e43bc0f68b596a20fe7d4b65231e7d27192d5bb5 : update Linux kernel when convenient.

Data as of 3 Dec 2026, 09:30 UTC

Severity
Unrated

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in e43bc0f68b596a20fe7d4b65231e7d27192d5bb5, dc15fd316ac860b6904689941bb14527554e8a96, d5e34684b1cdf9635f5c73e1c8ca02c886a81796 +3

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < e43bc0f68b596a20fe7d4b65231e7d27192d5bb5
Fixed in
  • e43bc0f68b596a20fe7d4b65231e7d27192d5bb5
LinuxLinuxAffected
  • ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < dc15fd316ac860b6904689941bb14527554e8a96
Fixed in
  • dc15fd316ac860b6904689941bb14527554e8a96
LinuxLinuxAffected
  • ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < d5e34684b1cdf9635f5c73e1c8ca02c886a81796
Fixed in
  • d5e34684b1cdf9635f5c73e1c8ca02c886a81796
LinuxLinuxAffected
  • ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < bf132239a705c7d3672c3d7086ac911bac23ebf4
Fixed in
  • bf132239a705c7d3672c3d7086ac911bac23ebf4
LinuxLinuxAffected
  • ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < 78a8d6537f1de34770e460edee360b556ef40427
Fixed in
  • 78a8d6537f1de34770e460edee360b556ef40427
LinuxLinuxAffected
  • ≥ e1e3d7ec5da32af3bded733a61c248d7db0b4e34, < 41b3f72bc94c7701c322fe7c390edd7d2ec1ee38
Fixed in
  • 41b3f72bc94c7701c322fe7c390edd7d2ec1ee38

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.

References

Community reviews

Loading reviews…