Skip to contentSkip to conversation

CVE-2022-50629: wifi: rsi: Fix memory leak in rsi_coex_attach()

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

wifi: rsi: Fix memory leak in rsi_coex_attach()

The coex_cb needs to be freed when rsi_create_kthread() failed in rsi_coex_attach().

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

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

	Issue introduced in 4.17 with commit 2108df3c4b1856588ca2e7f641900c2bbf38467e and fixed in 4.19.276 with commit 98259e0b6cf7f021da9fe4e11fbcce6ad6705ffe
	Issue introduced in 4.17 with commit 2108df3c4b1856588ca2e7f641900c2bbf38467e and fixed in 5.4.235 with commit fe4d7280cf4ddbea6536b596297c07662c7856fc
	Issue introduced in 4.17 with commit 2108df3c4b1856588ca2e7f641900c2bbf38467e and fixed in 5.10.173 with commit efc8df970561ff708379b89b348e16d3b410cc7b
	Issue introduced in 4.17 with commit 2108df3c4b1856588ca2e7f641900c2bbf38467e and fixed in 5.15.99 with commit b56e60b3b158a93bc713437e8e466f401ff8cc9f
	Issue introduced in 4.17 with commit 2108df3c4b1856588ca2e7f641900c2bbf38467e and fixed in 6.1.16 with commit c4f1ded67a90fb3b2e679e2c90b78921d9246044
	Issue introduced in 4.17 with commit 2108df3c4b1856588ca2e7f641900c2bbf38467e and fixed in 6.2.3 with commit ace789b1d465fae104cd37e49f6e1bcd1c8ff417
	Issue introduced in 4.17 with commit 2108df3c4b1856588ca2e7f641900c2bbf38467e and fixed in 6.3 with commit 956fb851a6e19da5ab491e19c1bc323bb2c2cf6f

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

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/net/wireless/rsi/rsi_91x_coex.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/98259e0b6cf7f021da9fe4e11fbcce6ad6705ffe
	https://git.kernel.org/stable/c/fe4d7280cf4ddbea6536b596297c07662c7856fc
	https://git.kernel.org/stable/c/efc8df970561ff708379b89b348e16d3b410cc7b
	https://git.kernel.org/stable/c/b56e60b3b158a93bc713437e8e466f401ff8cc9f
	https://git.kernel.org/stable/c/c4f1ded67a90fb3b2e679e2c90b78921d9246044
	https://git.kernel.org/stable/c/ace789b1d465fae104cd37e49f6e1bcd1c8ff417
	https://git.kernel.org/stable/c/956fb851a6e19da5ab491e19c1bc323bb2c2cf6f