{"id":"AZL-117878","summary":"CVE-2026-142986 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_midi: fix UAF race during IN request handling\n\nf_midi_disable() drains and frees pre-allocated IN requests from\nin_req_fifo without holding midi-\u003etransmit_lock. If f_midi_transmit()\nruns concurrently on the workqueue, f_midi_do_transmit() can peek a\nrequest from in_req_fifo and write into its buffer while\nf_midi_disable() frees it, leading to a use-after-free.\n\nAdditionally, when usb_ep_queue() fails in f_midi_do_transmit() (such\nas with -ESHUTDOWN when the endpoint is disabled concurrently), it\nresets req-\u003elength = 0 and returns active instead of the error code,\ncausing the do-while loop in f_midi_transmit() to keep spinning under\nmidi-\u003etransmit_lock until the substream is drained.\n\nFix this by acquiring midi-\u003etransmit_lock in f_midi_disable() while\nreleasing IN requests from in_req_fifo, and returning the error code\nfrom f_midi_do_transmit() when usb_ep_queue() fails so f_midi_transmit()\naborts immediately and drops active substreams.","modified":"2026-12-04T14:18:39.454872590Z","published":"2026-12-03T10:17:22Z","upstream":["CVE-2026-142986"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142986"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-117878.json"}}],"schema_version":"1.9.2"}