Skip to contentSkip to conversation

CVE-2022-50888: remoteproc: qcom: q6v5: Fix potential null-ptr-deref in q6v5_wcss_init_mmio()

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

remoteproc: qcom: q6v5: Fix potential null-ptr-deref in q6v5_wcss_init_mmio()

q6v5_wcss_init_mmio() will call platform_get_resource_byname() that may fail and return NULL. devm_ioremap() will use res->start as input, which may causes null-ptr-deref. Check the ret value of platform_get_resource_byname() to avoid the null-ptr-deref.

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

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

	Issue introduced in 5.13 with commit 0af65b9b915e52019aee91db3e1f8b39a7ec8d08 and fixed in 5.15.86 with commit 098ebb9089c4eedea09333f912d105fa63377496
	Issue introduced in 5.13 with commit 0af65b9b915e52019aee91db3e1f8b39a7ec8d08 and fixed in 6.0.16 with commit 3afa88ae9911b65702a3aca9d92ea23fe496e56f
	Issue introduced in 5.13 with commit 0af65b9b915e52019aee91db3e1f8b39a7ec8d08 and fixed in 6.1.2 with commit 0903a87490a9ed456ac765a84dcc484c1ee42c32
	Issue introduced in 5.13 with commit 0af65b9b915e52019aee91db3e1f8b39a7ec8d08 and fixed in 6.2 with commit f360e2b275efbb745ba0af8b47d9ef44221be586

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

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/remoteproc/qcom_q6v5_wcss.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/098ebb9089c4eedea09333f912d105fa63377496
	https://git.kernel.org/stable/c/3afa88ae9911b65702a3aca9d92ea23fe496e56f
	https://git.kernel.org/stable/c/0903a87490a9ed456ac765a84dcc484c1ee42c32
	https://git.kernel.org/stable/c/f360e2b275efbb745ba0af8b47d9ef44221be586