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 5A0962E54D7 for ; Tue, 7 Oct 2025 15:25:16 +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=1759850716; cv=none; b=sxgMdSF2RqoZ9jfj4zBA3Sc2FuD54xGW5i7GuoMEjhfOMCYVLymn1AwC6gC8t2WelnUMy7DupyZ7fBn0lDzf3R6obZ4xDYUc24Sffry2TV3viBTP0Rgqsfi1oxFHtjCigqnQtP6cWZoR5W+VpPMAeb6oH6VirWkqmQsOLT+bq/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850716; c=relaxed/simple; bh=kLCmlFLk9mRpwkpVClV08Pc3IN/ruq0pg4BZaMUB+lk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TmMel9S1ff5tJdT4iVDaRgEMD5kH6mlTOUqajJ7q/qyyeacEW9Kpenf7W2SQOmDM3NS7JwtidXjmCjfUSi/eX5APrfZt1dz6NC0skkZb/XUe6lhFXs3jlEYtimguz/MkCggYN8sNRwvVDB2G4hIKKcIyExEYOq7mth8J/SfkPjY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Nv9rBZHI; 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="Nv9rBZHI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D15FDC4CEF1; Tue, 7 Oct 2025 15:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850716; bh=kLCmlFLk9mRpwkpVClV08Pc3IN/ruq0pg4BZaMUB+lk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Nv9rBZHIo1YbSHOEVuSXucocexpgHiTE8xF/qLEME89QJT7MyvoSE++w8ib/K6f6E GLY23L66MxyZLvB2NDaSxW91mbQaZJveb2zQHjefXjglF6M+0rBhhzv671b2L+9oTW DC0ACCmGpmfRWNl5luv2Hn7qk1xx7XD8ro0zStg4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53674: clk: Fix memory leak in devm_clk_notifier_register() Date: Tue, 7 Oct 2025 17:21:33 +0200 Message-ID: <2025100706-CVE-2023-53674-af85@gregkh> X-Mailer: git-send-email 2.51.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=2770; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oXTKjMxoCmIYTTkkwjmJ74IvGnHnytRqo/2AYoeLOEo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9R8FM275/uLInthbXQbb1X2Pqx/ZZir9JGjBJoamz h8Cs3n+dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEOvQYFvRofT8vzZuYw5hy +r5h9w+RpX0fzzIsWDpbrfy+06y5LwVdGa4kxrC6Cfj9BwA= 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: clk: Fix memory leak in devm_clk_notifier_register() devm_clk_notifier_register() allocates a devres resource for clk notifier but didn't register that to the device, so the notifier didn't get unregistered on device detach and the allocated resource was leaked. Fix the issue by registering the resource through devres_add(). This issue was found with kmemleak on a Chromebook. The Linux kernel CVE team has assigned CVE-2023-53674 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 6d30d50d037dfa092f9d5d1fffa348ab4abb7163 and fixed in 5.15.121 with commit a326cf0107b197e649bbaa2a2b1355894826ce32 Issue introduced in 5.11 with commit 6d30d50d037dfa092f9d5d1fffa348ab4abb7163 and fixed in 6.1.39 with commit 49451db71b746df990888068961f1033f7c9b734 Issue introduced in 5.11 with commit 6d30d50d037dfa092f9d5d1fffa348ab4abb7163 and fixed in 6.3.13 with commit cb1b04fd4283fc8f9acefe0ddc61ba072ed44877 Issue introduced in 5.11 with commit 6d30d50d037dfa092f9d5d1fffa348ab4abb7163 and fixed in 6.4.4 with commit efbbda79b2881a04dcd0e8f28634933d79e17e49 Issue introduced in 5.11 with commit 6d30d50d037dfa092f9d5d1fffa348ab4abb7163 and fixed in 6.5 with commit 7fb933e56f77a57ef7cfc59fc34cbbf1b1fa31ff 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-2023-53674 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/clk/clk.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/a326cf0107b197e649bbaa2a2b1355894826ce32 https://git.kernel.org/stable/c/49451db71b746df990888068961f1033f7c9b734 https://git.kernel.org/stable/c/cb1b04fd4283fc8f9acefe0ddc61ba072ed44877 https://git.kernel.org/stable/c/efbbda79b2881a04dcd0e8f28634933d79e17e49 https://git.kernel.org/stable/c/7fb933e56f77a57ef7cfc59fc34cbbf1b1fa31ff