{"id":"CVE-2025-21859","aliases":["CVE-2025-21859"],"related":[],"kind":"vulnerability","state":"published","title":"USB: gadget: f_midi: f_midi_complete to call queue_work","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: USB: gadget: f_midi: f_midi_complete para llamar a queue_work. Al usar USB MIDI, se intenta adquirir un bloqueo dos veces mediante una llamada reentrante a f_midi_transmit, lo que provoca un bloqueo. Se soluciona usando queue_work() para programar la función f_midi_transmit() interna mediante una cola de trabajo de alta prioridad desde el controlador de finalización.","source":"nvd"}],"published":"2025-03-12T09:42:12.036Z","modified":"2026-10-15T02:17:39.083Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"d5daf49b58661ec4af7a55b277176efbf945ca05","fixed":"727dee0857946b85232526de4f5a957fe163e89a","status":"affected"},{"type":"git","introduced":"d5daf49b58661ec4af7a55b277176efbf945ca05","fixed":"1f10923404705a94891e612dff3b75e828a78368","status":"affected"},{"type":"git","introduced":"d5daf49b58661ec4af7a55b277176efbf945ca05","fixed":"b09957657d7767d164b3432af2129bd72947553c","status":"affected"},{"type":"git","introduced":"d5daf49b58661ec4af7a55b277176efbf945ca05","fixed":"24a942610ee9bafb2692a456ae850c5b2e409b05","status":"affected"},{"type":"git","introduced":"d5daf49b58661ec4af7a55b277176efbf945ca05","fixed":"deeee3adb2c01eedab32c3b4519337689ad02e8a","status":"affected"},{"type":"git","introduced":"d5daf49b58661ec4af7a55b277176efbf945ca05","fixed":"e9fec6f42c45db2f62dc373fb1a10d2488c04e79","status":"affected"},{"type":"git","introduced":"d5daf49b58661ec4af7a55b277176efbf945ca05","fixed":"8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba","status":"affected"},{"type":"git","introduced":"d5daf49b58661ec4af7a55b277176efbf945ca05","fixed":"4ab37fcb42832cdd3e9d5e50653285ca84d6686f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.2","status":"unaffected"},{"type":"semver","introduced":"5.4.291","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.235","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.179","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.130","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.80","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.17","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.5","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.2","fixed":"6.1.130"},{"status":"affected","introduced":"6.2","fixed":"6.6.80"},{"status":"affected","introduced":"6.7","fixed":"6.12.17"},{"status":"affected","introduced":"6.13","fixed":"6.13.5"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/727dee0857946b85232526de4f5a957fe163e89a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f10923404705a94891e612dff3b75e828a78368","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b09957657d7767d164b3432af2129bd72947553c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24a942610ee9bafb2692a456ae850c5b2e409b05","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/deeee3adb2c01eedab32c3b4519337689ad02e8a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9fec6f42c45db2f62dc373fb1a10d2488c04e79","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ab37fcb42832cdd3e9d5e50653285ca84d6686f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:25:50.980Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21859","url":"https://www.cve.org/CVERecord?id=CVE-2025-21859","licence":"CVE Terms of Use","modified":"2026-10-15T01:04:49.576Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21859","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21859","licence":"Public domain","modified":"2026-10-15T02:17:39.083Z"}],"updatedAt":"2026-11-25T22:58:55.204Z","epss":{"score":0.00191,"percentile":0.09184,"date":"2026-12-01T12:00:22.000Z"}}