Skip to contentSkip to conversation

CVE-2023-53818: ARM: zynq: Fix refcount leak in zynq_early_slcr_init

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 9, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ARM: zynq: Fix refcount leak in zynq_early_slcr_init

of_find_compatible_node() returns a node pointer with refcount incremented, we should use of_node_put() on error path.
Add missing of_node_put() to avoid refcount leak.

The Linux kernel CVE team has assigned CVE-2023-53818 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.0 with commit 3329659df0300d1d0aa22f5e7063f83a88ef92aa and fixed in 4.14.308 with commit f00bc6727adf840eb208700ea27cda4f3742629d
	Issue introduced in 4.0 with commit 3329659df0300d1d0aa22f5e7063f83a88ef92aa and fixed in 4.19.276 with commit 351b7e93d02b50b2faae2d4bda28e16a8389cbb7
	Issue introduced in 4.0 with commit 3329659df0300d1d0aa22f5e7063f83a88ef92aa and fixed in 5.4.235 with commit ede0334bf4df360f4f9446075cffbbb3bc54d0b6
	Issue introduced in 4.0 with commit 3329659df0300d1d0aa22f5e7063f83a88ef92aa and fixed in 5.10.173 with commit 227f8c1c5c4b3d131b66e57e58d38054f441b915
	Issue introduced in 4.0 with commit 3329659df0300d1d0aa22f5e7063f83a88ef92aa and fixed in 5.15.99 with commit 1cc12d10d13ae5ad8d3f7432a4c0156d221fc99b
	Issue introduced in 4.0 with commit 3329659df0300d1d0aa22f5e7063f83a88ef92aa and fixed in 6.1.16 with commit e43a06c73be4b93d308f0df809ee0023b7c37b54
	Issue introduced in 4.0 with commit 3329659df0300d1d0aa22f5e7063f83a88ef92aa and fixed in 6.2.3 with commit 4c22ee805202087c2553c9175968e9e922d75bc1
	Issue introduced in 4.0 with commit 3329659df0300d1d0aa22f5e7063f83a88ef92aa and fixed in 6.3 with commit 9eedb910a3be0005b88c696a8552c0d4c9937cd4

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-53818

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:
arch/arm/mach-zynq/slcr.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/f00bc6727adf840eb208700ea27cda4f3742629d
	https://git.kernel.org/stable/c/351b7e93d02b50b2faae2d4bda28e16a8389cbb7
	https://git.kernel.org/stable/c/ede0334bf4df360f4f9446075cffbbb3bc54d0b6
	https://git.kernel.org/stable/c/227f8c1c5c4b3d131b66e57e58d38054f441b915
	https://git.kernel.org/stable/c/1cc12d10d13ae5ad8d3f7432a4c0156d221fc99b
	https://git.kernel.org/stable/c/e43a06c73be4b93d308f0df809ee0023b7c37b54
	https://git.kernel.org/stable/c/4c22ee805202087c2553c9175968e9e922d75bc1
	https://git.kernel.org/stable/c/9eedb910a3be0005b88c696a8552c0d4c9937cd4