USB: gadget: f_midi: f_midi_complete to call queue_work
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d5daf49b58661ec4af7a55b277176efbf945ca05 · < e9fec6f42c45db2f62dc373fb1a10d2488c04e79| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel USB MIDI gadget's f_midi component can deadlock when a re-entrant call to f_midi_transmit attempts to acquire the same lock twice. This can interrupt USB MIDI operation; the input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running the Linux kernel with the USB MIDI gadget should check their kernel version; affected versions are not specified.