Back to CVE records
High 7.8Published Sep 16, 2026

CVE-2026-90022usb: gadget: f_midi2: fix use-after-free in string attribute show path

Updated under an hour ago ()

Does this affect you?

It affects Linux. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_midi2: fix use-after-free in string attribute show path f_midi2_opts_str_show() takes the string lock internally, but its callers dereference the opts->info.<field> pointer before calling it, outside the lock. This races with f_midi2_opts_str_store(), which frees the old string under opts->lock when the attribute is written concurrently, the show path can read a pointer that gets freed before the lock inside str_show() is even taken. Change f_midi2_opts_str_show() to take a pointer to the string field, matching the existing pattern in f_midi2_opts_str_store(), and dereference it only after the lock is held. Update all three callers (iface_name, block name, and the EP string option macro) accordingly.

CVSS
7.8 HIGH (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
Not given
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Linux
NVD analysis
Received
Record last updated
Oct 19, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
Linux Linux
linux:linux (from the name)
from 29ee7a4dddd5caa18d1cef000f20c6af43f762f1 before f9bdf4c4f6410a1dfafafa383a0e21069372657f; from 29ee7a4dddd5caa18d1cef000f20c6af43f762f1 before d11f3300b39e2daad2f0d9d66ddcc39a156cb594; from 29ee7a4dddd5caa18d1cef000f20c6af43f762f1 before e89e30f0b5d3004fe5955250bd8b04f3733e32ce; from 29ee7a4dddd5caa18d1cef000f20c6af43f762f1 before 49fab5e1bdb205c36c965d0e9677bc40d282d3a2; from 29ee7a4dddd5caa18d1cef000f20c6af43f762f1 before fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b
CNA record

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.