Skip to contentSkip to conversation

CVE-2022-50444: clk: tegra20: Fix refcount leak in tegra20_clock_init

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

clk: tegra20: Fix refcount leak in tegra20_clock_init

of_find_matching_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak.

The Linux kernel CVE team has assigned CVE-2022-50444 to this issue.

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

	Issue introduced in 3.9 with commit 37c26a906527b8a6a252614ca83d21ad318c4e84 and fixed in 4.9.331 with commit f9bdef9bb60814514a787b84184ecaa269a7c951
	Issue introduced in 3.9 with commit 37c26a906527b8a6a252614ca83d21ad318c4e84 and fixed in 4.14.296 with commit 6f76ef65899fcd93ca747ef38d7a41931e61e4fa
	Issue introduced in 3.9 with commit 37c26a906527b8a6a252614ca83d21ad318c4e84 and fixed in 4.19.262 with commit 0172d14f50098f5736b4b272a1529a3e05419bd6
	Issue introduced in 3.9 with commit 37c26a906527b8a6a252614ca83d21ad318c4e84 and fixed in 5.4.220 with commit 5d9fb09612defe7b1d5627db7b3833b46eb21e7b
	Issue introduced in 3.9 with commit 37c26a906527b8a6a252614ca83d21ad318c4e84 and fixed in 5.10.150 with commit 70f0a0a27d79f689defc5f5f0bd47d07813e6dea
	Issue introduced in 3.9 with commit 37c26a906527b8a6a252614ca83d21ad318c4e84 and fixed in 5.15.75 with commit d6e750535b46e12cdde185b416c415e49e4e6e22
	Issue introduced in 3.9 with commit 37c26a906527b8a6a252614ca83d21ad318c4e84 and fixed in 5.19.17 with commit 8cd228892759d37f36a46616025f4fa0d0a63b5d
	Issue introduced in 3.9 with commit 37c26a906527b8a6a252614ca83d21ad318c4e84 and fixed in 6.0.3 with commit 53531d00e2a8a28a3bf56ea58b18ff3611824f37
	Issue introduced in 3.9 with commit 37c26a906527b8a6a252614ca83d21ad318c4e84 and fixed in 6.1 with commit 4e343bafe03ff68a62f48f8235cf98f2c685468b

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-2022-50444

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/tegra/clk-tegra20.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/f9bdef9bb60814514a787b84184ecaa269a7c951
	https://git.kernel.org/stable/c/6f76ef65899fcd93ca747ef38d7a41931e61e4fa
	https://git.kernel.org/stable/c/0172d14f50098f5736b4b272a1529a3e05419bd6
	https://git.kernel.org/stable/c/5d9fb09612defe7b1d5627db7b3833b46eb21e7b
	https://git.kernel.org/stable/c/70f0a0a27d79f689defc5f5f0bd47d07813e6dea
	https://git.kernel.org/stable/c/d6e750535b46e12cdde185b416c415e49e4e6e22
	https://git.kernel.org/stable/c/8cd228892759d37f36a46616025f4fa0d0a63b5d
	https://git.kernel.org/stable/c/53531d00e2a8a28a3bf56ea58b18ff3611824f37
	https://git.kernel.org/stable/c/4e343bafe03ff68a62f48f8235cf98f2c685468b