Skip to contentSkip to conversation

CVE-2022-50633: usb: dwc3: qcom: Fix memory leak in dwc3_qcom_interconnect_init

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

usb: dwc3: qcom: Fix memory leak in dwc3_qcom_interconnect_init

of_icc_get() alloc resources for path handle, we should release it when not need anymore. Like the release in dwc3_qcom_interconnect_exit() function. Add icc_put() in error handling to fix this.

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

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

	Issue introduced in 5.10 with commit bea46b9815154ac47baf16b64022d791a4471375 and fixed in 5.10.163 with commit f9089b95548f0272e02a89989c511e235561d051
	Issue introduced in 5.10 with commit bea46b9815154ac47baf16b64022d791a4471375 and fixed in 5.15.87 with commit 56f6de394f0f57928cd401255a5c7866b68a77e3
	Issue introduced in 5.10 with commit bea46b9815154ac47baf16b64022d791a4471375 and fixed in 6.0.17 with commit 8c39c8d23ff9fb1beb6e16cf0ae929c764538625
	Issue introduced in 5.10 with commit bea46b9815154ac47baf16b64022d791a4471375 and fixed in 6.1.2 with commit 2f3b51189f7a7be5d822fb8c537d778c57eb9821
	Issue introduced in 5.10 with commit bea46b9815154ac47baf16b64022d791a4471375 and fixed in 6.2 with commit 97a48da1619ba6bd42a0e5da0a03aa490a9496b1

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

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/usb/dwc3/dwc3-qcom.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/f9089b95548f0272e02a89989c511e235561d051
	https://git.kernel.org/stable/c/56f6de394f0f57928cd401255a5c7866b68a77e3
	https://git.kernel.org/stable/c/8c39c8d23ff9fb1beb6e16cf0ae929c764538625
	https://git.kernel.org/stable/c/2f3b51189f7a7be5d822fb8c537d778c57eb9821
	https://git.kernel.org/stable/c/97a48da1619ba6bd42a0e5da0a03aa490a9496b1