CVE-2025-21859
MediumIn 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.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-667CVE-2025-21859 is a Improper Locking vulnerability
What is Improper Locking?
The product does not properly acquire or release a lock, which can lead to unexpected behaviour. Learn more on MITRE CWE
Affected versions
Linux kernel versions
3.2
and later are affected. Fixed in
5.4.291,
5.10.235,
5.15.179,
6.1.130,
6.6.80,
6.12.17,
6.13.5,
6.14
and their respective stable series.
References
The following references provide additional information about CVE-2025-21859 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
-
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/1f10923404705a94891e612dff3b75e828a78368
-
PatchKernel patch commithttps://git.kernel.org/stable/c/24a942610ee9bafb2692a456ae850c5b2e409b05
-
PatchKernel patch commithttps://git.kernel.org/stable/c/4ab37fcb42832cdd3e9d5e50653285ca84d6686f
Frequently asked questions
-
What is CVE-2025-21859?
CVE-2025-21859 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 , classified as an Improper Locking flaw (CWE-667) . It affects Linux kernel versions from 3.2 onward and has been patched in 5.4.291, 5.10.235, 5.15.179 and others. CVE-2025-21859 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2025-21859?
CVE-2025-21859 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2025-21859?
Yes — CVE-2025-21859 has been patched. Fixed versions include 5.4.291, 5.10.235, 5.15.179 and others. If you are running Linux kernel 3.2 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-21859 actively exploited?
No — CVE-2025-21859 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Improper Locking (CWE-667)?
The product does not properly acquire or release a lock, which can lead to unexpected behaviour. View CWE-667 on MITRE CWE →