# CVE-2025-21859: USB: gadget: f_midi: f_midi_complete to call queue_work

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-03-12T09:42:12.036Z
- Modified: 2026-10-15T02:17:39.083Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d5daf49b58661ec4af7a55b277176efbf945ca05 before 727dee0857946b85232526de4f5a957fe163e89a; from d5daf49b58661ec4af7a55b277176efbf945ca05 before 1f10923404705a94891e612dff3b75e828a78368; from d5daf49b58661ec4af7a55b277176efbf945ca05 before b09957657d7767d164b3432af2129bd72947553c; from d5daf49b58661ec4af7a55b277176efbf945ca05 before 24a942610ee9bafb2692a456ae850c5b2e409b05; from d5daf49b58661ec4af7a55b277176efbf945ca05 before deeee3adb2c01eedab32c3b4519337689ad02e8a; from d5daf49b58661ec4af7a55b277176efbf945ca05 before e9fec6f42c45db2f62dc373fb1a10d2488c04e79; from d5daf49b58661ec4af7a55b277176efbf945ca05 before 8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba; from d5daf49b58661ec4af7a55b277176efbf945ca05 before 4ab37fcb42832cdd3e9d5e50653285ca84d6686f; 3.2 (not affected: before 3.2; from 5.4.291 up to 5.4.*; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.130 up to 6.1.*; from 6.6.80 up to 6.6.*; from 6.12.17 up to 6.12.*; from 6.13.5 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 3.2 before 6.1.130; from 6.2 before 6.6.80; from 6.7 before 6.12.17; from 6.13 before 6.13.5; 6.14

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/727dee0857946b85232526de4f5a957fe163e89a> (patch)
- <https://git.kernel.org/stable/c/1f10923404705a94891e612dff3b75e828a78368> (patch)
- <https://git.kernel.org/stable/c/b09957657d7767d164b3432af2129bd72947553c> (patch)
- <https://git.kernel.org/stable/c/24a942610ee9bafb2692a456ae850c5b2e409b05> (patch)
- <https://git.kernel.org/stable/c/deeee3adb2c01eedab32c3b4519337689ad02e8a> (patch)
- <https://git.kernel.org/stable/c/e9fec6f42c45db2f62dc373fb1a10d2488c04e79> (patch)
- <https://git.kernel.org/stable/c/8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba> (patch)
- <https://git.kernel.org/stable/c/4ab37fcb42832cdd3e9d5e50653285ca84d6686f> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Sources

- CVE List: [CVE-2025-21859](https://www.cve.org/CVERecord?id=CVE-2025-21859), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-21859](https://nvd.nist.gov/vuln/detail/CVE-2025-21859), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-21859 · Whole record: https://cve.day/CVE-2025-21859.json · Rebuilt by cve.day 2026-11-25T22:58:55.204Z
