Skip to contentSkip to conversation

CVE-2022-50112: rpmsg: qcom_smd: Fix refcount leak in qcom_smd_parse_edge

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:

rpmsg: qcom_smd: Fix refcount leak in qcom_smd_parse_edge

of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when done.

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

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

	Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 4.19.256 with commit cb50423e46ea585620a6be307d7f7b71587936b7
	Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 5.4.211 with commit 8ee5d40ae29e63f6fd6cbf9dcfc0a48c474013db
	Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 5.10.137 with commit 9715809b9eeb85b3f9b083857a2f29a9e2351125
	Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 5.15.61 with commit ece6cfe62a103cc6032664983be557f1b5a1ff7e
	Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 5.18.18 with commit ae7fdbab97df6a2115eed6b7e39c278b805c9c7d
	Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 5.19.2 with commit 43e42c25a232a6862e7d2f292a069ac828559030
	Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 6.0 with commit 65382585f067d4256ba087934f30f85c9b6984de

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

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/rpmsg/qcom_smd.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/cb50423e46ea585620a6be307d7f7b71587936b7
	https://git.kernel.org/stable/c/8ee5d40ae29e63f6fd6cbf9dcfc0a48c474013db
	https://git.kernel.org/stable/c/9715809b9eeb85b3f9b083857a2f29a9e2351125
	https://git.kernel.org/stable/c/ece6cfe62a103cc6032664983be557f1b5a1ff7e
	https://git.kernel.org/stable/c/ae7fdbab97df6a2115eed6b7e39c278b805c9c7d
	https://git.kernel.org/stable/c/43e42c25a232a6862e7d2f292a069ac828559030
	https://git.kernel.org/stable/c/65382585f067d4256ba087934f30f85c9b6984de