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 B477928134C for ; Tue, 16 Sep 2025 08:11:44 +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=1758010304; cv=none; b=rtdg8/nzKH8m8+uGmcbpQQQ7NM2gw8W9ASQjlolVb6o2YxE6qGFySpmVvvknebhFqxdtcy5x0De7Oig2wjTuZLS0YoZ0LTlC9W9HUdxfDK/z4qmu16LpRljpu7hRxgfEJHvqsN2fysbwyrZV4PpB+v28Br0d9MM96uQ3BDCqgfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758010304; c=relaxed/simple; bh=+BDGzFS1iCXOYzuM2Lq9QWN6FD7RjTQkEicBDu9TUko=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=euUAPgVEP/XeLUD4qF182hqX9SL1CuK9XzffzeLzjdIdvw2CDkFaScVDjPxk105UvjYIqqYwONdl/1AJ6luakyHbNmDj2F47kNHCoDE66yQ1Y4AxYavDmVdAuNjtDyoLzSUmoaU1h9hWE/FY5nkLiUawDzGgwEPH0E9q7HM8c+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SYykH+kR; 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="SYykH+kR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D849BC4CEEB; Tue, 16 Sep 2025 08:11:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758010304; bh=+BDGzFS1iCXOYzuM2Lq9QWN6FD7RjTQkEicBDu9TUko=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SYykH+kR/99RAWGjcHGRoWLNme60oIbo99VLTs/+Ey2Zv+0DlLj8ev2K4Dafo4CR5 eaBp1qfupARbkaDsZAr1OI7mjf0yVUa5A8Q0Xoj1wBNXWZtllui352WnXpFolfau4s EcRjXUlDqkXxLFMmqeCWKYv2VpJVfFPWOqTjeEnE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53264: clk: imx: clk-imxrt1050: fix memory leak in imxrt1050_clocks_probe Date: Tue, 16 Sep 2025 10:07:02 +0200 Message-ID: <2025091602-CVE-2023-53264-9c17@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=2600; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AreqRtT+iAVMP5Sz8hgbcaV1FCowMBRioK0Vu8eKumE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknpZZFrgh/UnXrbGPiA76/QXvFzr40v/a3I9jx6Oo5q l9Dy39e6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ2L5imMPBuHg2T4dU9sJ2 bqfkifWZc77esmNY0DcjwWmbsmHyv4T/evHhz07stbYtAwA= 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-imxrt1050: fix memory leak in imxrt1050_clocks_probe Use devm_of_iomap() instead of of_iomap() to automatically handle the unused ioremap region. If any error occurs, regions allocated by kzalloc() will leak, but using devm_kzalloc() instead will automatically free the memory using devm_kfree(). Also, fix error handling of hws by adding unregister_hws label, which unregisters remaining hws when iomap failed. The Linux kernel CVE team has assigned CVE-2023-53264 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 7154b046d8f3a441474ced1688eb348d42f5f165 and fixed in 6.1.39 with commit 1839032251a66f2ae5a043c495532830a55d28c4 Issue introduced in 5.18 with commit 7154b046d8f3a441474ced1688eb348d42f5f165 and fixed in 6.3.13 with commit 0fbdfd2542252e4c02e8158a06b7c0c9cfd40f99 Issue introduced in 5.18 with commit 7154b046d8f3a441474ced1688eb348d42f5f165 and fixed in 6.4.4 with commit 02e54db221bb001b32f839e0149ee8d890ab9aa1 Issue introduced in 5.18 with commit 7154b046d8f3a441474ced1688eb348d42f5f165 and fixed in 6.5 with commit 1b280598ab3bd8a2dc8b96a12530d5b1ee7a8f4a 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-53264 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-imxrt1050.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/1839032251a66f2ae5a043c495532830a55d28c4 https://git.kernel.org/stable/c/0fbdfd2542252e4c02e8158a06b7c0c9cfd40f99 https://git.kernel.org/stable/c/02e54db221bb001b32f839e0149ee8d890ab9aa1 https://git.kernel.org/stable/c/1b280598ab3bd8a2dc8b96a12530d5b1ee7a8f4a