CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

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

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.

Classification

CVE ID: CVE-2025-21859

Affected Products

Vendor: Linux, Linux

Product: Linux, Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.01% (probability of being exploited)

EPSS Percentile: 1.35% (scored less or equal to compared to others)

EPSS Date: 2025-04-10 (when was this score calculated)

References

https://nvd.nist.gov/vuln/detail/CVE-2025-21859
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

Timeline