{
  "id": "CVE-2026-90022",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-90022",
  "published_at": "2026-09-16T10:33:26.238Z",
  "title": "usb: gadget: f_midi2: fix use-after-free in string attribute show path",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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-\u003einfo.\u003cfield\u003e pointer before calling it,\noutside the lock. This races with f_midi2_opts_str_store(), which\nfrees the old string under opts-\u003elock 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.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 29ee7a4dddd5caa18d1cef000f20c6af43f762f1, \u003c f9bdf4c4f6410a1dfafafa383a0e21069372657f",
          "\u003e= 29ee7a4dddd5caa18d1cef000f20c6af43f762f1, \u003c d11f3300b39e2daad2f0d9d66ddcc39a156cb594",
          "\u003e= 29ee7a4dddd5caa18d1cef000f20c6af43f762f1, \u003c e89e30f0b5d3004fe5955250bd8b04f3733e32ce",
          "\u003e= 29ee7a4dddd5caa18d1cef000f20c6af43f762f1, \u003c 49fab5e1bdb205c36c965d0e9677bc40d282d3a2",
          "\u003e= 29ee7a4dddd5caa18d1cef000f20c6af43f762f1, \u003c fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b"
        ],
        "fixed_in": [
          "f9bdf4c4f6410a1dfafafa383a0e21069372657f",
          "d11f3300b39e2daad2f0d9d66ddcc39a156cb594",
          "e89e30f0b5d3004fe5955250bd8b04f3733e32ce",
          "49fab5e1bdb205c36c965d0e9677bc40d282d3a2",
          "fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.6"
        ],
        "fixed_in": [
          "0",
          "6.6.157",
          "6.12.110",
          "6.18.51",
          "7.2.5",
          "7.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to f9bdf4c4f6410a1dfafafa383a0e21069372657f or d11f3300b39e2daad2f0d9d66ddcc39a156cb594 or e89e30f0b5d3004fe5955250bd8b04f3733e32ce or 49fab5e1bdb205c36c965d0e9677bc40d282d3a2 or fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b or later.",
      "Upgrade Linux to 0 or 6.6.157 or 6.12.110 or 6.18.51 or 7.2.5 or 7.3 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
