{"id":"CVE-2026-90022","published":"2026-09-16T10:33:26Z","modified":"2026-10-19T08:56:35Z","title":"usb: gadget: f_midi2: fix use-after-free in string attribute show path","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0017,"percentile":0.0639,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f9bdf4c4f6410a1dfafafa383a0e21069372657f","tags":[]},{"url":"https://git.kernel.org/stable/c/d11f3300b39e2daad2f0d9d66ddcc39a156cb594","tags":[]},{"url":"https://git.kernel.org/stable/c/e89e30f0b5d3004fe5955250bd8b04f3733e32ce","tags":[]},{"url":"https://git.kernel.org/stable/c/49fab5e1bdb205c36c965d0e9677bc40d282d3a2","tags":[]},{"url":"https://git.kernel.org/stable/c/fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b","tags":[]}],"priority":{"score":6.7,"factors":[{"name":"EPSS percentile","points":1.28},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 29ee7a4dddd5caa18d1cef000f20c6af43f762f1, < f9bdf4c4f6410a1dfafafa383a0e21069372657f",">= 29ee7a4dddd5caa18d1cef000f20c6af43f762f1, < d11f3300b39e2daad2f0d9d66ddcc39a156cb594",">= 29ee7a4dddd5caa18d1cef000f20c6af43f762f1, < e89e30f0b5d3004fe5955250bd8b04f3733e32ce",">= 29ee7a4dddd5caa18d1cef000f20c6af43f762f1, < 49fab5e1bdb205c36c965d0e9677bc40d282d3a2",">= 29ee7a4dddd5caa18d1cef000f20c6af43f762f1, < fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b"]},{"vendor":"Linux","product":"Linux","versions":["6.6"]}],"euvd":{"id":"EUVD-2026-80630","exploited":false,"provenance":"source"}}