Skip to contentSkip to conversation

CVE-2022-50184: drm/meson: encoder_hdmi: Fix refcount leak in meson_encoder_hdmi_init

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

drm/meson: encoder_hdmi: Fix refcount leak in meson_encoder_hdmi_init

of_graph_get_remote_node() returns remote device nodepointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak.

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

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

	Issue introduced in 5.15.33 with commit 1c5439a716122cd86530d261cd1bf7ba43b3cdd8 and fixed in 5.15.61 with commit 275fed7142fff5b27e176e53508196715043de5c
	Issue introduced in 5.17 with commit e67f6037ae1be34b2b686bab72caa41d57714534 and fixed in 5.18.18 with commit 994bc82df85564d948037f1dfdd47c907e8a084b
	Issue introduced in 5.17 with commit e67f6037ae1be34b2b686bab72caa41d57714534 and fixed in 5.19.2 with commit 013e67e7dd898170cbf54981cf1ed7616f822566
	Issue introduced in 5.17 with commit e67f6037ae1be34b2b686bab72caa41d57714534 and fixed in 6.0 with commit d82a5a4aae9d0203234737caed1bf470aa317568
	Issue introduced in 5.16.19 with commit 7e88f6d40f5875212f9d9ee8ba19147159908d4a

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

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/gpu/drm/meson/meson_encoder_hdmi.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/275fed7142fff5b27e176e53508196715043de5c
	https://git.kernel.org/stable/c/994bc82df85564d948037f1dfdd47c907e8a084b
	https://git.kernel.org/stable/c/013e67e7dd898170cbf54981cf1ed7616f822566
	https://git.kernel.org/stable/c/d82a5a4aae9d0203234737caed1bf470aa317568