From mboxrd@z Thu Jan 1 00:00:00 1970 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 692D95803AF for ; Fri, 11 Sep 2026 20:05:01 +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=1789157105; cv=none; b=TTWQsbSORfma3b96eyC+7bXYa8tYDo7v8seOapFZAA90rZC81tLdaZAUgeasVHXN06USB8li7lL+3CBblawE/IuKARpH6KdaL3m50B/7C0BTettfi054TIX30TULWZvMtQ0xfH0Owx/hfOY8LkMkPYR4wXJeQXlx/t5T0nNGWO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789157105; c=relaxed/simple; bh=WASky8D3G8F0vfSsR1SkMqV9WQBJ/+jCaV24kuj6ECo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d7W39sqHsFjZy5cth3eMCu2vd8/zgyutymdGH2LDCOs6IM2MBcFD2aRAC953h55Dl59XO2I7aRcMgRknsnm3HCT3a9uoyWDB6duZeOMxvLTJ4ya0PwmIC+x+IOglYyr74Nb486s0V5zc8c+kwfcMw7EO2BdTvEROdfJBkVPQihk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hWiXRNhA; 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="hWiXRNhA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04B6D1F0089A; Fri, 11 Sep 2026 20:04:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789157099; bh=i272crQKx8YdiUrGTjiEb0riboFkypBgbmZJavz3u0o=; h=From:To:Cc:Subject:Date:Reply-To; b=hWiXRNhAvq5rfEc/uXSHlUlCZkR0tvGkGc8WOK3a1PbNgQ6GEMgVEmCpCJ5Zyqt/A LxyDHNGbmATrYR1PTUZEflDY0eY1mTNS/66lGIl5vyKpFKeTfYCjgawLHmNG2FtLYJ d4aJMeNC/JA/4UH+RpcU0Q9q/gx6Lx0pBtVzmEU8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89735: usb: gadget: midi2: remove default configfs groups on teardown Date: Fri, 11 Sep 2026 21:47:04 +0200 Message-ID: <2026091103-CVE-2026-89735-e08c@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=2786; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qm9Gnuhu4Fiv45FMbPi1L9Q4KuSL+Kg6AXTmqY18hfE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIrt/3Ox9NvE5i8yET1U9DOcOlt5u2CvRwvHhyNlps tNmcMRkdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEdsszLFhjoJTsLWkwd37L sWlZDE0zE3yfP2FY0Lzz/3HNbad26RjKhK7quFp5IsvrDQA= 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: midi2: remove default configfs groups on teardown f_midi2_alloc_inst() creates default configfs child groups for the default endpoint and default block using configfs_add_default_group(), setting their internal refcount to 1. However, during function teardown in f_midi2_free_inst() or EP cleanup in f_midi2_ep_opts_release(), configfs_remove_default_groups() is never called, therefore never dropping the refcount and leaking struct f_midi2_ep_opts and f_midi2_block_opts. Add the missing configfs_remove_default_groups() in the afformentioned functions to free the structs properly. The Linux kernel CVE team has assigned CVE-2026-89735 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 8b645922b22303cec4628dbbbf6c8553d1cdec87 and fixed in 6.12.109 with commit 4beda67ee72e0c8df5b49951dd8b96f6adb25e02 Issue introduced in 6.6 with commit 8b645922b22303cec4628dbbbf6c8553d1cdec87 and fixed in 6.18.50 with commit a15c2acd3083461f91725760e59dff88b33c28f6 Issue introduced in 6.6 with commit 8b645922b22303cec4628dbbbf6c8553d1cdec87 and fixed in 7.2.4 with commit 9ea5dfb2bfef4f8a7e704d1921d8a790cb7fb700 Issue introduced in 6.6 with commit 8b645922b22303cec4628dbbbf6c8553d1cdec87 and fixed in 7.3-rc1 with commit 0f6bffb5008f0cba9cad5ded2caccc64466a6e54 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-89735 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/4beda67ee72e0c8df5b49951dd8b96f6adb25e02 https://git.kernel.org/stable/c/a15c2acd3083461f91725760e59dff88b33c28f6 https://git.kernel.org/stable/c/9ea5dfb2bfef4f8a7e704d1921d8a790cb7fb700 https://git.kernel.org/stable/c/0f6bffb5008f0cba9cad5ded2caccc64466a6e54