CVE-2025-21859
JSON

5.5medium

USB: gadget: f_midi: f_midi_complete to call queue_work

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.19% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelfrom 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.14NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-667

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: USB: gadget: f_midi: f_midi_complete para llamar a queue_work. Al usar USB MIDI, se intenta adquirir un bloqueo dos veces mediante una llamada reentrante a f_midi_transmit, lo que provoca un bloqueo. Se soluciona usando queue_work() para programar la función f_midi_transmit() interna mediante una cola de trabajo de alta prioridad desde el controlador de finalización.

References

https://git.kernel.org/stable/c/727dee0857946b85232526de4f5a957fe163e89apatch
https://git.kernel.org/stable/c/1f10923404705a94891e612dff3b75e828a78368patch
https://git.kernel.org/stable/c/b09957657d7767d164b3432af2129bd72947553cpatch
https://git.kernel.org/stable/c/24a942610ee9bafb2692a456ae850c5b2e409b05patch
https://git.kernel.org/stable/c/deeee3adb2c01eedab32c3b4519337689ad02e8apatch
https://git.kernel.org/stable/c/e9fec6f42c45db2f62dc373fb1a10d2488c04e79patch
https://git.kernel.org/stable/c/8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dbapatch
https://git.kernel.org/stable/c/4ab37fcb42832cdd3e9d5e50653285ca84d6686fpatch
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

SourceRecordLicence
CVE ListCVE-2025-21859 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-21859 changed 2026-10-15Public domain