{"id":"CVE-2026-90022","aliases":["CVE-2026-90022"],"related":[],"kind":"vulnerability","state":"published","title":"usb: gadget: f_midi2: fix use-after-free in string attribute show path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_midi2: fix use-after-free in string attribute show path\n\nf_midi2_opts_str_show() takes the string lock internally, but its\ncallers dereference the opts->info.<field> pointer before calling it,\noutside the lock. This races with f_midi2_opts_str_store(), which\nfrees the old string under opts->lock when the attribute is written\nconcurrently, the show path can read a pointer that gets freed\nbefore the lock inside str_show() is even taken.\n\nChange f_midi2_opts_str_show() to take a pointer to the string field,\nmatching the existing pattern in f_midi2_opts_str_store(), and\ndereference it only after the lock is held. Update all three callers\n(iface_name, block name, and the EP string option macro) accordingly.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_midi2: fix use-after-free in string attribute show path\n\nf_midi2_opts_str_show() takes the string lock internally, but its\ncallers dereference the opts->info.<field> pointer before calling it,\noutside the lock. This races with f_midi2_opts_str_store(), which\nfrees the old string under opts->lock when the attribute is written\nconcurrently, the show path can read a pointer that gets freed\nbefore the lock inside str_show() is even taken.\n\nChange f_midi2_opts_str_show() to take a pointer to the string field,\nmatching the existing pattern in f_midi2_opts_str_store(), and\ndereference it only after the lock is held. Update all three callers\n(iface_name, block name, and the EP string option macro) accordingly.","source":"cvelist"}],"published":"2026-09-16T10:33:26.238Z","modified":"2026-10-19T09:18:50.257Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"29ee7a4dddd5caa18d1cef000f20c6af43f762f1","fixed":"f9bdf4c4f6410a1dfafafa383a0e21069372657f","status":"affected"},{"type":"git","introduced":"29ee7a4dddd5caa18d1cef000f20c6af43f762f1","fixed":"d11f3300b39e2daad2f0d9d66ddcc39a156cb594","status":"affected"},{"type":"git","introduced":"29ee7a4dddd5caa18d1cef000f20c6af43f762f1","fixed":"e89e30f0b5d3004fe5955250bd8b04f3733e32ce","status":"affected"},{"type":"git","introduced":"29ee7a4dddd5caa18d1cef000f20c6af43f762f1","fixed":"49fab5e1bdb205c36c965d0e9677bc40d282d3a2","status":"affected"},{"type":"git","introduced":"29ee7a4dddd5caa18d1cef000f20c6af43f762f1","fixed":"fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.51","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.5","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f9bdf4c4f6410a1dfafafa383a0e21069372657f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d11f3300b39e2daad2f0d9d66ddcc39a156cb594","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e89e30f0b5d3004fe5955250bd8b04f3733e32ce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/49fab5e1bdb205c36c965d0e9677bc40d282d3a2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90022","url":"https://www.cve.org/CVERecord?id=CVE-2026-90022","licence":"CVE Terms of Use","modified":"2026-10-19T08:56:35.790Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90022","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90022","licence":"Public domain","modified":"2026-10-19T09:18:50.257Z"}],"updatedAt":"2026-11-25T22:59:39.017Z","epss":{"score":0.0017,"percentile":0.03656,"date":"2026-11-30T12:00:22.000Z"}}