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

Published Mar 12, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

USB: gadget: fmidi: fmidicomplete to call queuework

When using USB MIDI, a lock is attempted to be acquired twice through a re-entrant call to fmiditransmit, causing a deadlock.

Fix it by using queuework() to schedule the inner fmiditransmit() via a high priority work queue from the completion handler.

Affected Software

13 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=3.2<6.1.130
Linux Linux kernel>=6.2<6.6.80
Linux Linux kernel>=6.7<6.12.17
Linux Linux kernel>=6.13<6.13.5
Linux Linux kernel=6.14-rc1
Linux Linux kernel=6.14-rc2
Linux Linux kernel=6.14-rc3
Microsoft azl3 kernel 6.6.82.1-1<6.6.82.1-1
6.6.82.1-1
Microsoft cbl2 kernel 5.15.182.1-1
Microsoft azl3 kernel 6.6.78.1-3<6.6.82.1-1
6.6.82.1-1
Microsoft cbl2 kernel 5.15.182.1-1<5.15.179.1-1
5.15.179.1-1
Microsoft cbl2 kernel 5.15.179.1-1<5.15.179.1-1
5.15.179.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.82.1-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.15.179.1-1

Event History

Mar 12, 2025
CVE Published
via MITRE·09:42 AM
Data Sourced
via MITRE·09:42 AM
Description
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 9, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-21859?

CVE-2025-21859 has been classified as a high severity vulnerability due to its potential to cause a deadlock in USB MIDI operations.

2

What causes the deadlock in CVE-2025-21859?

The deadlock in CVE-2025-21859 is caused by a re-entrant call to f_midi_transmit that attempts to acquire a lock twice.

3

How do I fix CVE-2025-21859?

To fix CVE-2025-21859, update the Linux kernel to the latest version where the fix has been implemented using queue_work().

4

Which versions of the Linux kernel are affected by CVE-2025-21859?

CVE-2025-21859 affects various versions of the Linux kernel that implement USB MIDI functionality.

5

Is there a workaround for CVE-2025-21859 until a fix is applied?

Currently, there is no known workaround for CVE-2025-21859 other than upgrading the Linux kernel to a fixed version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203