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 138B12FE051 for ; Wed, 22 Oct 2025 13:25:46 +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=1761139548; cv=none; b=S12ytPgDyt0L5YLyv70HpZC47zxLceMpXJ6jrq7rdUuiNJf+sJutbxYfIaet9+bGqF1Aumi8LXtxV89EbGt0lYYcqaNv6Dr70kTdcKv1YmXzxP5iywx5FKg1JQavB80lDzilISKLxBNoak6NA3eWykhiYpCGDSmJAJipLdURvKM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139548; c=relaxed/simple; bh=7k2HqTycy94m7MV/N9prcs69Ezj69wFbGTpwE0STcCk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M9sna9AZZfuI2qT0I6qL/dT7PUEkbWb2JysIoq45kOYh/QzdMFNfQF0mpnHoJuCF/XdwzD3CwGCeOMb17kFiB7XMMMFgptQ5NU8sUj1wzS6Ece+65K47Qt96qi5Ru/Av9bcrXV5G17H4lt/4Fqk2BzzCiLEF604WY+yOBqLEId4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m2D0EetV; 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="m2D0EetV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76930C4CEE7; Wed, 22 Oct 2025 13:25:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139546; bh=7k2HqTycy94m7MV/N9prcs69Ezj69wFbGTpwE0STcCk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=m2D0EetV2uZmWpPLnbtmCjXdsR09JuPAJMXptEGa5F2fW7XogdMhES3GnlRNuhW9T vXX2I1FLE9/2I6/ECkvIr1vYuG05w33r/j73hE7blA1yDSTctfMUQlFwMKukXcSGi0 kdidZ48sal6vf1phlz78iOHteUOoep6cfndY6sqE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53704: clk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe() Date: Wed, 22 Oct 2025 15:24:43 +0200 Message-ID: <2025102212-CVE-2023-53704-9f42@gregkh> X-Mailer: git-send-email 2.51.1 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=3184; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2fvWQSfPF4z76ocmkjhFs19GPNY8trdsW6dhecA61vw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk/bv2JuxP0/vo+8b2s2c9OHKu4Ksu86W22Van2FYUvf AuC1kvxdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEqlQY5vAeaXN4+1Zs/v+T nUbL2P9XTW/c9oJhfkl4wY8XXX/v/psnMumFyuHouye8/QA= 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: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe() Replace of_iomap() and kzalloc() with devm_of_iomap() and devm_kzalloc() which can automatically release the related memory when the device or driver is removed or unloaded to avoid potential memory leak. In this case, iounmap(anatop_base) in line 427,433 are removed as manual release is not required. Besides, referring to clk-imx8mq.c, check the return code of of_clk_add_hw_provider, if it returns negtive, print error info and unregister hws, which makes the program more robust. The Linux kernel CVE team has assigned CVE-2023-53704 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 and fixed in 5.10.188 with commit cb047c13bbf9018693ae31f03a5a26b212d02f13 Issue introduced in 5.6 with commit 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 and fixed in 5.15.121 with commit bcea444ab4c045864b55d67313833d606676602a Issue introduced in 5.6 with commit 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 and fixed in 6.1.39 with commit 6317d0302655f7e854cd4f31e93b47d35cb058bb Issue introduced in 5.6 with commit 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 and fixed in 6.3.13 with commit 5bcf140e9e6cf76f1f1bd1f489a14ca4d49f9a1a Issue introduced in 5.6 with commit 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 and fixed in 6.4.4 with commit 92ce7629a11ae62292e1cfaa6132dab081fc80ee Issue introduced in 5.6 with commit 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 and fixed in 6.5 with commit 878b02d5f3b56cb090dbe2c70c89273be144087f 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-53704 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/imx/clk-imx8mp.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/cb047c13bbf9018693ae31f03a5a26b212d02f13 https://git.kernel.org/stable/c/bcea444ab4c045864b55d67313833d606676602a https://git.kernel.org/stable/c/6317d0302655f7e854cd4f31e93b47d35cb058bb https://git.kernel.org/stable/c/5bcf140e9e6cf76f1f1bd1f489a14ca4d49f9a1a https://git.kernel.org/stable/c/92ce7629a11ae62292e1cfaa6132dab081fc80ee https://git.kernel.org/stable/c/878b02d5f3b56cb090dbe2c70c89273be144087f