{"id":"CVE-2025-21859","summary":"USB: gadget: f_midi: f_midi_complete to call queue_work","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: gadget: f_midi: f_midi_complete to call queue_work\n\nWhen using USB MIDI, a lock is attempted to be acquired twice through a\nre-entrant call to f_midi_transmit, causing a deadlock.\n\nFix it by using queue_work() to schedule the inner f_midi_transmit() via\na high priority work queue from the completion handler.","modified":"2026-04-16T04:36:25.189900743Z","published":"2025-03-12T09:42:12.036Z","related":["SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7521-2"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21859.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1f10923404705a94891e612dff3b75e828a78368"},{"type":"WEB","url":"https://git.kernel.org/stable/c/24a942610ee9bafb2692a456ae850c5b2e409b05"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4ab37fcb42832cdd3e9d5e50653285ca84d6686f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/727dee0857946b85232526de4f5a957fe163e89a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b09957657d7767d164b3432af2129bd72947553c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/deeee3adb2c01eedab32c3b4519337689ad02e8a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e9fec6f42c45db2f62dc373fb1a10d2488c04e79"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21859.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21859"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d5daf49b58661ec4af7a55b277176efbf945ca05"},{"fixed":"727dee0857946b85232526de4f5a957fe163e89a"},{"fixed":"1f10923404705a94891e612dff3b75e828a78368"},{"fixed":"b09957657d7767d164b3432af2129bd72947553c"},{"fixed":"24a942610ee9bafb2692a456ae850c5b2e409b05"},{"fixed":"deeee3adb2c01eedab32c3b4519337689ad02e8a"},{"fixed":"e9fec6f42c45db2f62dc373fb1a10d2488c04e79"},{"fixed":"8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba"},{"fixed":"4ab37fcb42832cdd3e9d5e50653285ca84d6686f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21859.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}