| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: 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. |
| |
| The Linux kernel CVE team has assigned CVE-2025-21859 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 5.4.291 with commit 727dee0857946b85232526de4f5a957fe163e89a |
| Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 5.10.235 with commit 1f10923404705a94891e612dff3b75e828a78368 |
| Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 5.15.179 with commit b09957657d7767d164b3432af2129bd72947553c |
| Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 6.1.130 with commit 24a942610ee9bafb2692a456ae850c5b2e409b05 |
| Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 6.6.80 with commit deeee3adb2c01eedab32c3b4519337689ad02e8a |
| Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 6.12.17 with commit e9fec6f42c45db2f62dc373fb1a10d2488c04e79 |
| Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 6.13.5 with commit 8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba |
| Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 6.14 with commit 4ab37fcb42832cdd3e9d5e50653285ca84d6686f |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2025-21859 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| drivers/usb/gadget/function/f_midi.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/727dee0857946b85232526de4f5a957fe163e89a |
| https://git.kernel.org/stable/c/1f10923404705a94891e612dff3b75e828a78368 |
| https://git.kernel.org/stable/c/b09957657d7767d164b3432af2129bd72947553c |
| 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 |