{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-90022","id":"CVE-2026-90022","title":"usb: gadget: f_midi2: fix use-after-free in string attribute show path","description":"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 ","descriptionLong":"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.","published":"2026-09-16T10:33:26.238Z","updated":"2026-10-28T02:31:10.817604193Z","reserved":"2026-09-11T19:38:34.781Z","status":"Received","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"29ee7a4dddd5caa18d1cef000f20c6af43f762f1","lessThan":"f9bdf4c4f6410a1dfafafa383a0e21069372657f","status":"affected","versionType":"git"},{"version":"29ee7a4dddd5caa18d1cef000f20c6af43f762f1","lessThan":"d11f3300b39e2daad2f0d9d66ddcc39a156cb594","status":"affected","versionType":"git"},{"version":"29ee7a4dddd5caa18d1cef000f20c6af43f762f1","lessThan":"e89e30f0b5d3004fe5955250bd8b04f3733e32ce","status":"affected","versionType":"git"},{"version":"29ee7a4dddd5caa18d1cef000f20c6af43f762f1","lessThan":"49fab5e1bdb205c36c965d0e9677bc40d282d3a2","status":"affected","versionType":"git"},{"version":"29ee7a4dddd5caa18d1cef000f20c6af43f762f1","lessThan":"fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","status":"unaffected","versionType":"semver"},{"version":"6.6.157","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.110","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.51","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.5","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/f9bdf4c4f6410a1dfafafa383a0e21069372657f","tags":["web"]},{"url":"https://git.kernel.org/stable/c/d11f3300b39e2daad2f0d9d66ddcc39a156cb594","tags":["web"]},{"url":"https://git.kernel.org/stable/c/e89e30f0b5d3004fe5955250bd8b04f3733e32ce","tags":["web"]},{"url":"https://git.kernel.org/stable/c/49fab5e1bdb205c36c965d0e9677bc40d282d3a2","tags":["web"]},{"url":"https://git.kernel.org/stable/c/fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90022.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90022","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0017,"epssPercentile":0.06518,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-90022","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90022","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-90022","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-90022","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}