CVE-2026-90021

usb: gadget: f_midi: initialize work in f_midi_alloc()

State
Published
Severity
Not scored
Published
Sep 16, 2026
Updated
Oct 30, 2026
Reserved
Sep 11, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: f_midi: initialize work in f_midi_alloc()

f_midi_alloc initializes free_ref to 1 and it can only be incremented when a sound card is registered via f_midi_register_card(). f_midi_register_card() is only called in f_midi_bind() which actually performs INIT_WORK. If f_midi_bind() is never run, work is not initialized and the if condition in f_midi_free becomes true, this results in a warning later in __flush_work as work->func = 0. Fix this by moving INIT_WORK from f_midi_bind() to f_midi_alloc().

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to before c76e82b026a28c348e5d841922aa73db36eca1d3Affected
  • 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to before 13e9f5a91360952b9b5bbc2367fc29d4a4ff2824Affected
  • 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to before 3d8b11255e632170f32f1925bfcaf96331f36317Affected
  • 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to before 02ac76f27db23ef652358458c272d9d2d6f51167Affected
  • 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to before 858576de6b2f5166b08dae803f0fd0766dcb3002Affected
  • 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to before 7e07d3e4c389217d7d7171d80edf2e23ac70f1eaAffected
  • 89019ab7a64fcdf98a2ba7799e5c6aff58d4a05dAffected
  • 3635523e9b96213969693c320302d536774d8e9bAffected
  • 5.4.291 to before 5.5Affected
  • 5.10.235 to before 5.11Affected
LinuxLinux
  • 5.12Affected
  • before 5.12Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.110 through 6.12.*Not affected
  • 6.18.51 through 6.18.*Not affected
  • 7.2.5 through 7.2.*Not affected
  • 7.3 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.