Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E70F4CDA2D for ; Wed, 16 Sep 2026 10:45:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555557; cv=none; b=LYqyaltBKib+cLgvOd2Cu4ZWZS7oRkWl2YkFlffGKDtOLiEoSWQEa0a/jvj3VyZCzl5NoBdWcNfkEMhxnKlAApgbXPPOdqAZidJ4M6Sgj1AIentGjYXScu6p+dGA5K4Y/zlFZtGhP/nActaDoPzyTkcEoLmWSq4uDOb3Jq1Hl18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555557; c=relaxed/simple; bh=TQrrdt0h0sGfMLHvCIzb6882FK7tSEwKnE427JTlmag=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BuL7vofMbXZEcqfD+woH5pFIdOVjRqK6q4csOZCaZkO///t6VjkWcI+DbKQe6n+Cl+28cXcNu9/WxsHF6JnZu9AVVqfaRqdZrmJpX4tLlO6WHvclhuwbs8a8Q68F8+L95rikYF5J4KzHCmbi1h07LhvMBinlsbJ0GKpKHXvVQ1s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QFPIDabL; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QFPIDabL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 031BF1F0089B; Wed, 16 Sep 2026 10:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555553; bh=HcaSoDaQxwwawTzmBEFSTlYFX/LBdYJAJNRqU4dDf30=; h=From:To:Cc:Subject:Date:Reply-To; b=QFPIDabLKHhrjJwhOiHSoDrOnlWvv0ut4HNjIqCJ8HGAK06Qj5ghu1UP385qjvngH MZFUMMyhKRIeuwWI8i+xrorCrAGhW7NOFOOtI8mjSCeLfnSqFinYgzb50rhfO79VsY au+1g5EimWV4l7XRT85aea9dFRWSZNFA0eX9Cly0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90022: usb: gadget: f_midi2: fix use-after-free in string attribute show path Date: Wed, 16 Sep 2026 11:32:32 +0100 Message-ID: <2026091604-CVE-2026-90022-8afa@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2735; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Slr2FaimleoDlYfCVO0Ks6mqso5H8esd/2duD+s1iLQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8tc8NVxU1bBFa85p/YcJC90yVib/P/hbfid3S3k2n 8bVnNWvOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi4gcZFky4dctB64oKh4Xo 8lvfHVWPOumu+8QwV0576iVR0aQDbt73vvUfz1PSd1gcDAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. 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. The Linux kernel CVE team has assigned CVE-2026-90022 to this issue. Affected and fixed versions =========================== Fixed in 6.6.157 with commit f9bdf4c4f6410a1dfafafa383a0e21069372657f Fixed in 6.12.110 with commit d11f3300b39e2daad2f0d9d66ddcc39a156cb594 Fixed in 6.18.51 with commit e89e30f0b5d3004fe5955250bd8b04f3733e32ce Fixed in 7.2.5 with commit 49fab5e1bdb205c36c965d0e9677bc40d282d3a2 Fixed in 7.3-rc2 with commit fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-90022 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/usb/gadget/function/f_midi2.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/f9bdf4c4f6410a1dfafafa383a0e21069372657f https://git.kernel.org/stable/c/d11f3300b39e2daad2f0d9d66ddcc39a156cb594 https://git.kernel.org/stable/c/e89e30f0b5d3004fe5955250bd8b04f3733e32ce https://git.kernel.org/stable/c/49fab5e1bdb205c36c965d0e9677bc40d282d3a2 https://git.kernel.org/stable/c/fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b