Bug 2351628 (CVE-2025-21859) - CVE-2025-21859 kernel: USB: gadget: f_midi: f_midi_complete to call queue_work
Summary: CVE-2025-21859 kernel: USB: gadget: f_midi: f_midi_complete to call queue_work
Keywords:
Status: NEW
Alias: CVE-2025-21859
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-12 12:24 UTC by OSIDB Bzimport
Modified: 2025-04-01 04:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-12 12:24:21 UTC
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.

Comment 1 Mauro Matteo Cascella 2025-03-12 16:43:01 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025031216-CVE-2025-21859-514d@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.