Skip to contentSkip to conversation

CVE-2022-49668: PM / devfreq: exynos-ppmu: Fix refcount leak in of_get_devfreq_events

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 26, 2025

lore
Share & tools
lore
#0 lore raw

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

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

PM / devfreq: exynos-ppmu: Fix refcount leak in of_get_devfreq_events

of_get_child_by_name() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. This function only calls of_node_put() in normal path, missing it in error paths.
Add missing of_node_put() to avoid refcount leak.

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

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

	Issue introduced in 4.0 with commit f262f28c147051e7aa6daaf4fb5996833ffadff4 and fixed in 5.4.204 with commit bdecd912e99acfd61507f1720d3f4eed1b3418d8
	Issue introduced in 4.0 with commit f262f28c147051e7aa6daaf4fb5996833ffadff4 and fixed in 5.10.129 with commit e65027fdebbacd40595e96ef7b5d2418f71bddf2
	Issue introduced in 4.0 with commit f262f28c147051e7aa6daaf4fb5996833ffadff4 and fixed in 5.15.53 with commit 01121e39ef537289926ae6f5374dce92c796d863
	Issue introduced in 4.0 with commit f262f28c147051e7aa6daaf4fb5996833ffadff4 and fixed in 5.18.10 with commit 194781229d4cbc804b8ded13156eb8addce87d6c
	Issue introduced in 4.0 with commit f262f28c147051e7aa6daaf4fb5996833ffadff4 and fixed in 5.19 with commit f44b799603a9b5d2e375b0b2d54dd0b791eddfc2

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

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/devfreq/event/exynos-ppmu.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/bdecd912e99acfd61507f1720d3f4eed1b3418d8
	https://git.kernel.org/stable/c/e65027fdebbacd40595e96ef7b5d2418f71bddf2
	https://git.kernel.org/stable/c/01121e39ef537289926ae6f5374dce92c796d863
	https://git.kernel.org/stable/c/194781229d4cbc804b8ded13156eb8addce87d6c
	https://git.kernel.org/stable/c/f44b799603a9b5d2e375b0b2d54dd0b791eddfc2