| Name | CVE-2026-90022 |
| Description | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-6528-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| linux (PTS) | bookworm | 6.1.176-1 | fixed |
| bookworm (security) | 6.1.187-1 | fixed | |
| trixie | 6.12.107-1 | vulnerable | |
| trixie (security) | 6.12.111-1 | fixed | |
| forky | 7.2.8-1 | fixed | |
| sid | 7.2.9-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| linux | source | bookworm | (not affected) | |||
| linux | source | trixie | 6.12.111-1 | DSA-6528-1 | ||
| linux | source | (unstable) | 7.2.6-1 |
[bookworm] - linux <not-affected> (Vulnerable code not present)
https://git.kernel.org/linus/fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b (7.3-rc2)