Skip to contentSkip to conversation

CVE-2022-50176: drm/mcde: Fix refcount leak in mcde_dsi_bind

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/mcde: Fix refcount leak in mcde_dsi_bind

Every iteration of for_each_available_child_of_node() decrements the reference counter of the previous node. There is no decrement when break out from the loop and results in refcount leak. Add missing of_node_put() to fix this.

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

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

	Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 5.4.211 with commit 87c35bbefdfa3c5edfb8c80f5c04717aaacc629d
	Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 5.10.137 with commit f57699a9b66ea11f000f56d1f1179059239b8690
	Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 5.15.61 with commit 3123ae6fdd4013d24a3a4877084b14e917faae5c
	Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 5.18.18 with commit 7214902de5b1fb2b632a7b8b3b9540e41aabab38
	Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 5.19.2 with commit 32c827e30bb44ae809950a9efab59e98e44d30e5
	Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 6.0 with commit 3a149169e4a2f9127022fec6ef5d71b4e804b3b9

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

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/mcde/mcde_dsi.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/87c35bbefdfa3c5edfb8c80f5c04717aaacc629d
	https://git.kernel.org/stable/c/f57699a9b66ea11f000f56d1f1179059239b8690
	https://git.kernel.org/stable/c/3123ae6fdd4013d24a3a4877084b14e917faae5c
	https://git.kernel.org/stable/c/7214902de5b1fb2b632a7b8b3b9540e41aabab38
	https://git.kernel.org/stable/c/32c827e30bb44ae809950a9efab59e98e44d30e5
	https://git.kernel.org/stable/c/3a149169e4a2f9127022fec6ef5d71b4e804b3b9