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 092BE270578 for ; Sat, 4 Oct 2025 15:19:21 +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=1759591161; cv=none; b=EJpE2Slrc8RZVu8rojSYwyq2G6z2hk9lTPKMxvrg8jPTi33uczXlMFwyTYk2cm3rPpk767qmwLMFgXIiQE9YEGQgFXTLz4C/uGStS4ntbtRIYZSb8wrOs4K2qkmAhW/LEknsLVlP9gPDoKrOWi+FWw/FOw2YTcgfVytFYkjawI0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591161; c=relaxed/simple; bh=0VkA2ZZQEzlRGUQDxoqmw5lUZDY2qHKJ2QKOoCjul4Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JFirx4d4TrSrHbsvJ5ncWC2eBWJlRIVgJUnTgsYozAdn/FR0CZ3dbxI+k9EsCKSZgYyLR4yUys9F2KTPT5mSGR6688UlJLZSuy1wyZSGCVXMIK+sx6z40NQJrGJMCL0b0fPo/4w/Hfb3qv2cZJ8CBnEaQJO0l6rsIxhRXoO73UA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Fv5ceop9; 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="Fv5ceop9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83B5DC4CEF1; Sat, 4 Oct 2025 15:19:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591160; bh=0VkA2ZZQEzlRGUQDxoqmw5lUZDY2qHKJ2QKOoCjul4Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Fv5ceop9hcFyiTM9tbRId2YpeGLt2kmj4JWYs/7xs+jDI0uw4kABsGxPo65gY25q6 /09SxmKThWT2dfZmzs9TlRF2p7iQ7YEPE+ts7tDvagqBLUg3yr4CRSuKeo35RkfdEM pUU3jACXsK6PPKx+BScu+TalyOqYR43VcT0BX8Jo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53572: clk: imx: scu: use _safe list iterator to avoid a use after free Date: Sat, 4 Oct 2025 17:17:26 +0200 Message-ID: <2025100453-CVE-2023-53572-ab85@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=2609; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=igdJBD8MNnqxjGT/sKCMfEMFSi5RLwQt8qB5v7mmmfc=; b=kA0DAAIRMUfUDdst+ykByyZiAGjhOmWgHAcJhn19izWMITes0tNUuHttYn5SQZE4YzjdtbA+9 ohdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmjhOmUACgkQMUfUDdst+ynFUQCbBcbG 2E1L7srwqZ8ES/TK4Sy+Xa0AnjyxUzJJ5tY/W1uwq32/jr1kI8mr 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: scu: use _safe list iterator to avoid a use after free This loop is freeing "clk" so it needs to use list_for_each_entry_safe(). Otherwise it dereferences a freed variable to get the next item on the loop. The Linux kernel CVE team has assigned CVE-2023-53572 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 77d8f3068c63ee0983f0b5ba3207d3f7cce11be4 and fixed in 5.15.121 with commit f95ff838ac39f861d1f95a0f3bbb1e01c2517d79 Issue introduced in 5.11 with commit 77d8f3068c63ee0983f0b5ba3207d3f7cce11be4 and fixed in 6.1.39 with commit 08cc7cd2c2a29a2abf5bceb8f048c0734d3694ba Issue introduced in 5.11 with commit 77d8f3068c63ee0983f0b5ba3207d3f7cce11be4 and fixed in 6.3.13 with commit 3d90921f91fc6a8c801d527bb5848c99e335c1cf Issue introduced in 5.11 with commit 77d8f3068c63ee0983f0b5ba3207d3f7cce11be4 and fixed in 6.4.4 with commit 0a719f0e4b6f233979e219baff73923e76a96e09 Issue introduced in 5.11 with commit 77d8f3068c63ee0983f0b5ba3207d3f7cce11be4 and fixed in 6.5 with commit 632c60ecd25dbacee54d5581fe3aeb834b57010a 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-53572 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-scu.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/f95ff838ac39f861d1f95a0f3bbb1e01c2517d79 https://git.kernel.org/stable/c/08cc7cd2c2a29a2abf5bceb8f048c0734d3694ba https://git.kernel.org/stable/c/3d90921f91fc6a8c801d527bb5848c99e335c1cf https://git.kernel.org/stable/c/0a719f0e4b6f233979e219baff73923e76a96e09 https://git.kernel.org/stable/c/632c60ecd25dbacee54d5581fe3aeb834b57010a