Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E7433215F42 for ; Thu, 8 May 2025 06:40:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746686408; cv=none; b=Mv4Xc6hAoWNEhtUFBoZWoq3PlzdR0rN2b2nUT4Z66L6RWpfwf6qagj9LgqqTScmdMRHoRCUs8vTiXtj+ssMJbQ5PjwWfW/QsZmt57/rK73bQW1buadygnTwyedBWTzG9zJfUT43GCHWwKV8Dx3+RpxoUC2S7y/c5flvZokV/udQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746686408; c=relaxed/simple; bh=MabuSWKAKhKJPbBka2Y4WdFrEeUJDbB4BwkQvKD84dc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lgbO5jnidrCywbIlCCICrk/xYyp93iwvdgzkJTDqu/NQUeDIdgQSo8ApUC2bBfGVsJdaCRMgi9/wru/WIhF/w56AFJ64AjkKF/AuMdFwFmkhxOA2SvkStBJjCjiTgQGuDmyVwbuZfhNPbqX2wTYus0dgcej6Oa9vy8xL+XSHigw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AV7eVDD9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AV7eVDD9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF8C3C4CEED; Thu, 8 May 2025 06:40:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746686407; bh=MabuSWKAKhKJPbBka2Y4WdFrEeUJDbB4BwkQvKD84dc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AV7eVDD94IyBb6eWWaU2oWfrELVlix6zDvFFyVfY/FO5SnaBFEh4WmZCnroQqSsdT Z3K88Ef4yBukqI2kpCuiVVXwEzSVqh5jL3oiHfVMCLw00OVAqXAbpA5007vuntiliw NPOrCD2J5uSVOnDcHBrHKUCSp0cixnboRPpEEmAQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37817: mcb: fix a double free bug in chameleon_parse_gdd() Date: Thu, 8 May 2025 08:39:26 +0200 Message-ID: <2025050819-CVE-2025-37817-d85c@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3376; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q3BGCGIMM11hrW6W2O1lPbfzrOcBz/5dgkMwu2/YMz8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkygdMZDf6VT1H7d9q19efVsnXGF57aXtI0P8tnxV4ik +o/NzOnI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyNZthnlmaUnPkR7/cvy8s Kk+lvhRbeEXxB8Nc0Xi+qfwcy5XKD2U35hjOn/d8TbUEAA== 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: mcb: fix a double free bug in chameleon_parse_gdd() In chameleon_parse_gdd(), if mcb_device_register() fails, 'mdev' would be released in mcb_device_register() via put_device(). Thus, goto 'err' label and free 'mdev' again causes a double free. Just return if mcb_device_register() fails. The Linux kernel CVE team has assigned CVE-2025-37817 to this issue. Affected and fixed versions =========================== Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 5.4.293 with commit d70184958b0ea8c0fd52e2b456654b503e769fc8 Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 5.10.237 with commit 4ffe8c9fb561e4427dd1a3056cd5b3685b74f78d Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 5.15.181 with commit 59f993cd36b6e28a394ba3d977e8ffe5c9884e3b Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 6.1.136 with commit c5b8a549ef1fcc6066b037a3962c79d60465ba0b Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 6.6.89 with commit 96838eb1836fd372e42be5db84f0b333b65146a6 Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 6.12.26 with commit df1a5d5c6134224f9298e5189230f9d29ae50cac Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 6.14.5 with commit bcc7d58ee5173e34306026bd01e1fbf75e169d37 Issue introduced in 3.15 with commit 3764e82e5150d87b205c10cd78a9c9ab86fbfa51 and fixed in 6.15-rc4 with commit 7c7f1bfdb2249f854a736d9b79778c7e5a29a150 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-2025-37817 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/mcb/mcb-parse.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/d70184958b0ea8c0fd52e2b456654b503e769fc8 https://git.kernel.org/stable/c/4ffe8c9fb561e4427dd1a3056cd5b3685b74f78d https://git.kernel.org/stable/c/59f993cd36b6e28a394ba3d977e8ffe5c9884e3b https://git.kernel.org/stable/c/c5b8a549ef1fcc6066b037a3962c79d60465ba0b https://git.kernel.org/stable/c/96838eb1836fd372e42be5db84f0b333b65146a6 https://git.kernel.org/stable/c/df1a5d5c6134224f9298e5189230f9d29ae50cac https://git.kernel.org/stable/c/bcc7d58ee5173e34306026bd01e1fbf75e169d37 https://git.kernel.org/stable/c/7c7f1bfdb2249f854a736d9b79778c7e5a29a150