Skip to contentSkip to conversation

CVE-2022-50111: ASoC: mt6359: Fix refcount leak bug

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:

ASoC: mt6359: Fix refcount leak bug

In mt6359_parse_dt() and mt6359_accdet_parse_dt(), we should call of_node_put() for the reference returned by of_get_child_by_name() which has increased the refcount.

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

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

	Issue introduced in 5.10 with commit 6835302853169441069e11bc4642300c22009c2e and fixed in 5.15.61 with commit 3d69d86b3e9d82f524e7e1906adcbbe939dc836e
	Issue introduced in 5.10 with commit 6835302853169441069e11bc4642300c22009c2e and fixed in 5.18.18 with commit ffaef892bfef5ec68dadfd3bbed49e3d4ef7b6c7
	Issue introduced in 5.10 with commit 6835302853169441069e11bc4642300c22009c2e and fixed in 5.19.2 with commit 1e7fe6906e9755d9e0242f9619c894ecd82fb9da
	Issue introduced in 5.10 with commit 6835302853169441069e11bc4642300c22009c2e and fixed in 6.0 with commit a8d5df69e2ec702d979f7d04ed519caf8691a032

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

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:

	sound/soc/codecs/mt6359-accdet.c
	sound/soc/codecs/mt6359.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/3d69d86b3e9d82f524e7e1906adcbbe939dc836e
	https://git.kernel.org/stable/c/ffaef892bfef5ec68dadfd3bbed49e3d4ef7b6c7
	https://git.kernel.org/stable/c/1e7fe6906e9755d9e0242f9619c894ecd82fb9da
	https://git.kernel.org/stable/c/a8d5df69e2ec702d979f7d04ed519caf8691a032