CVE-2025-21859

USB: gadget: f_midi: f_midi_complete to call queue_work

State
Published
Severity
5.5 Medium
Published
Mar 12, 2025
Updated
Oct 15, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • d5daf49b58661ec4af7a55b277176efbf945ca05 to before 727dee0857946b85232526de4f5a957fe163e89aAffected
  • d5daf49b58661ec4af7a55b277176efbf945ca05 to before 1f10923404705a94891e612dff3b75e828a78368Affected
  • d5daf49b58661ec4af7a55b277176efbf945ca05 to before b09957657d7767d164b3432af2129bd72947553cAffected
  • d5daf49b58661ec4af7a55b277176efbf945ca05 to before 24a942610ee9bafb2692a456ae850c5b2e409b05Affected
  • d5daf49b58661ec4af7a55b277176efbf945ca05 to before deeee3adb2c01eedab32c3b4519337689ad02e8aAffected
  • d5daf49b58661ec4af7a55b277176efbf945ca05 to before e9fec6f42c45db2f62dc373fb1a10d2488c04e79Affected
  • d5daf49b58661ec4af7a55b277176efbf945ca05 to before 8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dbaAffected
  • d5daf49b58661ec4af7a55b277176efbf945ca05 to before 4ab37fcb42832cdd3e9d5e50653285ca84d6686fAffected
LinuxLinux
  • 3.2Affected
  • before 3.2Not affected
  • 5.4.291 through 5.4.*Not affected
  • 5.10.235 through 5.10.*Not affected
  • 5.15.179 through 5.15.*Not affected
  • 6.1.130 through 6.1.*Not affected
  • 6.6.80 through 6.6.*Not affected
  • 6.12.17 through 6.12.*Not affected
  • 6.13.5 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.