CVE-2026-142986

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.

Package Linux Kernel
Published 2026-12-03
Last modified 2026-12-06
Patch available
Yes

Affected versions

Linux kernel versions 4.5 and later are affected. Fixed in 5.10.276, 5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc4 and their respective stable series.

Affected from
≥ 4.5
Fixed in
✓ 5.10.276 5.10.x ✓ 5.15.227 5.15.x ✓ 6.12.120 6.12.x ✓ 6.18.66 6.18.x ✓ 7.3.7 7.3.x ✓ 7.4-rc4

Frequently asked questions

  • What is CVE-2026-142986?

    CVE-2026-142986 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 4.5 onward and has been patched in 5.10.276, 5.15.227, 6.12.120 and others. CVE-2026-142986 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • Is there a patch available for CVE-2026-142986?

    Yes. CVE-2026-142986 has been patched. Fixed versions include 5.10.276, 5.15.227, 6.12.120 and others. If you are running Linux kernel 4.5 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2026-142986 actively exploited?

    No. CVE-2026-142986 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.