Skip to contentSkip to conversation

CVE-2022-50871: wifi: ath11k: Fix qmi_msg_handler data structure initialization

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:

wifi: ath11k: Fix qmi_msg_handler data structure initialization

qmi_msg_handler is required to be null terminated by QMI module. There might be a case where a handler for a msg id is not present in the handlers array which can lead to infinite loop while searching the handler and therefore out of bound access in qmi_invoke_handler(). Hence update the initialization in qmi_msg_handler data structure.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1

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

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

	Fixed in 6.0.16 with commit d5d71de448f36e34592f7c81b5e300d3e8dbb735
	Fixed in 6.1.2 with commit a10e1530c424bb277b4edc7def0195857a548495
	Fixed in 6.2 with commit ed3725e15a154ebebf44e0c34806c57525483f92

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

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/ath/ath11k/qmi.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/d5d71de448f36e34592f7c81b5e300d3e8dbb735
	https://git.kernel.org/stable/c/a10e1530c424bb277b4edc7def0195857a548495
	https://git.kernel.org/stable/c/ed3725e15a154ebebf44e0c34806c57525483f92