Skip to contentSkip to conversation

CVE-2023-53170: net: dsa: Removed unneeded of_node_put in felix_parse_ports_node

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 15, 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:

net: dsa: Removed unneeded of_node_put in felix_parse_ports_node

Remove unnecessary of_node_put from the continue path to prevent child node from being released twice, which could avoid resource leak or other unexpected issues.

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

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

	Issue introduced in 6.3 with commit de879a016a94a670fafeb3eb03b3d5803d81ab37 and fixed in 6.4.5 with commit 7ead10b44b79ce8bfcd51e749d54e009de5f511a
	Issue introduced in 6.3 with commit de879a016a94a670fafeb3eb03b3d5803d81ab37 and fixed in 6.5 with commit 04499f28b40bfc24f20b0e2331008bb90a54a6cf

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

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/net/dsa/ocelot/felix.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/7ead10b44b79ce8bfcd51e749d54e009de5f511a
	https://git.kernel.org/stable/c/04499f28b40bfc24f20b0e2331008bb90a54a6cf