CVE-2026-90021

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

No CVSS score yet EPSS 0.22%

Published 16 Sep 2026 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2026-90021

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-90021 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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().

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.5% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 8653d71ce3763aedcf3d2331f59beda3fecd79e4, before c76e82b026a28c348e5d841922aa73db36eca1d3
affected from 8653d71ce3763aedcf3d2331f59beda3fecd79e4, before 13e9f5a91360952b9b5bbc2367fc29d4a4ff2824
affected from 8653d71ce3763aedcf3d2331f59beda3fecd79e4, before 3d8b11255e632170f32f1925bfcaf96331f36317
affected from 8653d71ce3763aedcf3d2331f59beda3fecd79e4, before 02ac76f27db23ef652358458c272d9d2d6f51167
affected from 8653d71ce3763aedcf3d2331f59beda3fecd79e4, before 858576de6b2f5166b08dae803f0fd0766dcb3002
affected from 8653d71ce3763aedcf3d2331f59beda3fecd79e4, before 7e07d3e4c389217d7d7171d80edf2e23ac70f1ea
affected 89019ab7a64fcdf98a2ba7799e5c6aff58d4a05d
affected 3635523e9b96213969693c320302d536774d8e9b
affected from 5.4.291, before 5.5
affected from 5.10.235, before 5.11
Other versions: unaffected
Linux
affected 5.12
unaffected before 5.12
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.110 up to and including 6.12.*
unaffected from 6.18.51 up to and including 6.18.*
unaffected from 7.2.5 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-90021 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-90021

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-90021
trivy image --scanners vuln IMAGE | grep CVE-2026-90021

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-90021 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.