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 B2EE42D12F5 for ; Tue, 30 Dec 2025 12:15:34 +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=1767096934; cv=none; b=Zw69hZYTIH6zLp/IcGSNg73RmCS+T9ZbOd1Dufq3wGlT19lvRVbCRC8aj5m23sJ5JLhKOgZZvTrt2EnMjuAQOMgynXsem+OSFFoSZ8PnX9lS6A4cDGEpw7metryeWlwVb7dP8+P+I84K2EEAJrTvW/sZeQaViim87bPJgNjhkXY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096934; c=relaxed/simple; bh=oVAB180AbYb7ZIBfWsYVnpSPBFh/UEsz/eWEAWbUpHM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=SlkpQJqoH8leNJeBYMen7Whi41VKvbHhyXBqWGzsR0017QSsYiH9/neEd2iA5ZsLF6CD9/EUtR4t1+8ZfmTILhEQnk/zHL0IoybmGfc15WUcZpOLg0Pt00Ip8x5vp4EbKzqXsWmQAqmCeU1Nh9CMrgwiL/KvKTn+JH7TnRmhA88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nUdTIfhs; 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="nUdTIfhs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B94CC4CEFB; Tue, 30 Dec 2025 12:15:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096934; bh=oVAB180AbYb7ZIBfWsYVnpSPBFh/UEsz/eWEAWbUpHM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=nUdTIfhs4jDO+p1BbPMaKMnOB3oAKVjZhv8BYJOfckhB6RKQIJvCjytkT1TLMWO0C jG4K12kjT5lZh15fhQgIyRuDz/ugc8o2+y90ECK4bAG67Zp7/vt/+VhMBdCYMbcOCG /BpKurUEWPvk9gJEAmMUgnItZPOdLhUrOMuyEDck= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54228: regulator: raa215300: Fix resource leak in case of error Date: Tue, 30 Dec 2025 13:13:58 +0100 Message-ID: <2025123029-CVE-2023-54228-0585@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=2264; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UI2e6eOvIS/vytE80wRXapsK38szUwZLk37kGxPAMsw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB1/FhGbHSUuyaubknfBoDXaxswnkFxVYlPapQ3bjg d6vBYs7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCLHAhnm13FV/CzwbGWt+Pc6 X/tf5uMtTXn9DAt6FdpvbawSftwSp+1WJNjpPb95czIA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: regulator: raa215300: Fix resource leak in case of error The clk_register_clkdev() allocates memory by calling vclkdev_alloc() and this memory is not freed in the error path. Similarly, resources allocated by clk_register_fixed_rate() are not freed in the error path. Fix these issues by using devm_clk_hw_register_fixed_rate() and devm_clk_hw_register_clkdev(). After this, the static variable clk is not needed. Replace it with  local variable hw in probe() and drop calling clk_unregister_fixed_rate() from raa215300_rtc_unregister_device(). The Linux kernel CVE team has assigned CVE-2023-54228 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 7bce16630837c705f72e8fd53a11ae8c236236f4 and fixed in 6.5.4 with commit 2bf2d2ac9e67184dc99275875a6452ca6e3027ff Issue introduced in 6.5 with commit 7bce16630837c705f72e8fd53a11ae8c236236f4 and fixed in 6.6 with commit e21ac64e669e960688e79bf5babeed63132dac8a 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-54228 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/regulator/raa215300.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/2bf2d2ac9e67184dc99275875a6452ca6e3027ff https://git.kernel.org/stable/c/e21ac64e669e960688e79bf5babeed63132dac8a