Skip to contentSkip to conversation

CVE-2023-53602: wifi: ath11k: fix memory leak in WMI firmware stats

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 4, 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 memory leak in WMI firmware stats

Memory allocated for firmware pdev, vdev and beacon statistics are not released during rmmod.

Fix it by calling ath11k_fw_stats_free() function before hardware unregister.

While at it, avoid calling ath11k_fw_stats_free() while processing the firmware stats received in the WMI event because the local list is getting spliced and reinitialised and hence there are no elements in the list after splicing.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1

The Linux kernel CVE team has assigned CVE-2023-53602 to this issue.

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

	Fixed in 6.1.42 with commit 86f9330a49d1464849482298dd34d361859183eb
	Fixed in 6.4.7 with commit 55248d36beb79d3a61c9fb3122dc377fff523c89
	Fixed in 6.5 with commit 6aafa1c2d3e3fea2ebe84c018003f2a91722e607

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-2023-53602

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/mac.c
drivers/net/wireless/ath/ath11k/wmi.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/86f9330a49d1464849482298dd34d361859183eb
	https://git.kernel.org/stable/c/55248d36beb79d3a61c9fb3122dc377fff523c89
	https://git.kernel.org/stable/c/6aafa1c2d3e3fea2ebe84c018003f2a91722e607