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 397A939021E for ; Tue, 16 Dec 2025 13:45: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=1765892707; cv=none; b=fUFwcYHaw4Vos3XKcvRa30Hm6qN1xyQ4PLSftVXxjVZZl95o2kaWgaIE1xvXmLUiKETEmNhd+A+aPe81CIvk0YrOBccaSoYmATWIyRH1RqKsis9kgl0KF8BxbV5kIhd4Zm+qk0ZGl4B/gO5EpPo9H41nTOZutArUgTJKCDLJv18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892707; c=relaxed/simple; bh=twEQ8Ufqab3qqADFjMi++XmaKP5FQBGvf1ZBolVUFmM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M0E4zyqb8yZYp6jtCrziL8/oNm5Q54nKeCNCGBTkk8m9IGi0baKv9WzSDZkTrDRSN+U4aEHUzoAxoyVUfzak9k6n61iSMoLVDwMbHZN8Dasme5IY7nQR2eJS14uvFB9X+Dc29wSrDx6ZksW9AQNbwLLxBh5oTD2f012HXgCyids= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=enlkY+x7; 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="enlkY+x7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABBCCC4CEF1; Tue, 16 Dec 2025 13:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892707; bh=twEQ8Ufqab3qqADFjMi++XmaKP5FQBGvf1ZBolVUFmM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=enlkY+x7Pg05fvHmz26qMGJ3o6/ZJ/Q00DPsRBNBdnh8iPGiRaWDY6RGHN2x91cjp I8rTlAWENF1giLbxnu8kYoax0IWWXJsNBF4MF0OZVkNje0xeWiMl/aiOlw4e5WAzxB gCfJGPZkgLt+Jy6O+0KHPfbnVVR4+yKTk6Mm65nA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68172: crypto: aspeed - fix double free caused by devm Date: Tue, 16 Dec 2025 14:43:33 +0100 Message-ID: <2025121629-CVE-2025-68172-3d84@gregkh> X-Mailer: git-send-email 2.52.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=2550; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=C2NcrBrhR/OVQN17HjiCkAQghHS51jMEaL2Ue2Je2Jg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOSYxGK4JSU27NcWI9MWHFI6Nfu8LPX1nI1GHw+Gid8 c2zc5/HdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBENjEyzLPrWTDP4K+Dnwj7 b9F/1w0dXxvdfscwP9fs4LItvF84a3YeDa+aqCdz7YbaNQA= 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: crypto: aspeed - fix double free caused by devm The clock obtained via devm_clk_get_enabled() is automatically managed by devres and will be disabled and freed on driver detach. Manually calling clk_disable_unprepare() in error path and remove function causes double free. Remove the manual clock cleanup in both aspeed_acry_probe()'s error path and aspeed_acry_remove(). The Linux kernel CVE team has assigned CVE-2025-68172 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 2f1cf4e50c956f882c9fc209c7cded832b67b8a3 and fixed in 6.6.117 with commit 0dd6474ced33489076e6c0f3fe5077bf12e85b28 Issue introduced in 6.3 with commit 2f1cf4e50c956f882c9fc209c7cded832b67b8a3 and fixed in 6.12.58 with commit 29d0504077044a7e1ffbd09a6118018d5954a6e5 Issue introduced in 6.3 with commit 2f1cf4e50c956f882c9fc209c7cded832b67b8a3 and fixed in 6.17.8 with commit e8407dfd267018f4647ffb061a9bd4a6d7ebacc6 Issue introduced in 6.3 with commit 2f1cf4e50c956f882c9fc209c7cded832b67b8a3 and fixed in 6.18 with commit 3c9bf72cc1ced1297b235f9422d62b613a3fdae9 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-68172 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/crypto/aspeed/aspeed-acry.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/0dd6474ced33489076e6c0f3fe5077bf12e85b28 https://git.kernel.org/stable/c/29d0504077044a7e1ffbd09a6118018d5954a6e5 https://git.kernel.org/stable/c/e8407dfd267018f4647ffb061a9bd4a6d7ebacc6 https://git.kernel.org/stable/c/3c9bf72cc1ced1297b235f9422d62b613a3fdae9