CVE-2025-21859

USB: gadget: f_midi: f_midi_complete to call queue_work

MEDIUM
5.5
CVSS Score
Published: March 12, 2025 at 09:42 AM UTC
Updated: October 15, 2026 at 02:17 AM UTC
2 products affected across 2 vendorsLinux KernelSIMATIC S7-1500 TM MFP

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.2 ≤ v < 6.1.1306.13 ≤ v < 6.13.56.2 ≤ v < 6.6.806.7 ≤ v < 6.12.176.146.14 rc16.14 rc26.14 rc3d5daf49b58661ec4af7a55b277176efbf945ca05
Vendor states this is fixed in 1f10923404705a94891e612dff3b75e828a78368 (fixed)
Vendor states this is fixed in 24a942610ee9bafb2692a456ae850c5b2e409b05 (fixed)
Vendor states this is fixed in 4ab37fcb42832cdd3e9d5e50653285ca84d6686f (fixed)
Vendor states this is fixed in 727dee0857946b85232526de4f5a957fe163e89a (fixed)
Vendor states this is fixed in 8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba (fixed)
Vendor states this is fixed in b09957657d7767d164b3432af2129bd72947553c (fixed)
Vendor states this is fixed in deeee3adb2c01eedab32c3b4519337689ad02e8a (fixed)
Vendor states this is fixed in e9fec6f42c45db2f62dc373fb1a10d2488c04e79 (fixed)
Vendor states this is fixed in 3.2 (unaffected)
Vendor states this is fixed in 5.10.235 (unaffected)
Vendor states this is fixed in 5.15.179 (unaffected)
Vendor states this is fixed in 5.4.291 (unaffected)
Vendor states this is fixed in 6.1.130 (unaffected)
Vendor states this is fixed in 6.12.17 (unaffected)
Vendor states this is fixed in 6.13.5 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.80 (unaffected)

References (12)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1f10923404705a94891e612dff3b75e828a78368
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/24a942610ee9bafb2692a456ae850c5b2e409b05
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4ab37fcb42832cdd3e9d5e50653285ca84d6686f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/727dee0857946b85232526de4f5a957fe163e89a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b09957657d7767d164b3432af2129bd72947553c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/deeee3adb2c01eedab32c3b4519337689ad02e8a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e9fec6f42c45db2f62dc373fb1a10d2488c04e79

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-667

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card