Skip to contentSkip to conversation

CVE-2025-37944: wifi: ath12k: Fix invalid entry fetch in ath12k_dp_mon_srng_process

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 20, 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: ath12k: Fix invalid entry fetch in ath12k_dp_mon_srng_process

Currently, ath12k_dp_mon_srng_process uses ath12k_hal_srng_src_get_next_entry to fetch the next entry from the destination ring. This is incorrect because ath12k_hal_srng_src_get_next_entry is intended for source rings, not destination rings. This leads to invalid entry fetches, causing potential data corruption or crashes due to accessing incorrect memory locations. This happens because the source ring and destination ring have different handling mechanisms and using the wrong function results in incorrect pointer arithmetic and ring management.

To fix this issue, replace the call to ath12k_hal_srng_src_get_next_entry with ath12k_hal_srng_dst_get_next_entry in ath12k_dp_mon_srng_process. This ensures that the correct function is used for fetching entries from the destination ring, preventing invalid memory accesses.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

The Linux kernel CVE team has assigned CVE-2025-37944 to this issue.

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

	Fixed in 6.6.88 with commit 2c512f2eadabb1e80816116894ffaf7d802a944e
	Fixed in 6.12.25 with commit ab7edf42ce800eb34d2f73dd7271b826661a06a5
	Fixed in 6.13.12 with commit b6a3b2b2cead103089d3bb7a57d8209bdfa5399d
	Fixed in 6.14.4 with commit 298f0aea5cb32b5038f991f5db201a0fcbb9a31b
	Fixed in 6.15-rc1 with commit 63fdc4509bcf483e79548de6bc08bf3c8e504bb3

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-2025-37944

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/ath12k/dp_mon.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/2c512f2eadabb1e80816116894ffaf7d802a944e
	https://git.kernel.org/stable/c/ab7edf42ce800eb34d2f73dd7271b826661a06a5
	https://git.kernel.org/stable/c/b6a3b2b2cead103089d3bb7a57d8209bdfa5399d
	https://git.kernel.org/stable/c/298f0aea5cb32b5038f991f5db201a0fcbb9a31b
	https://git.kernel.org/stable/c/63fdc4509bcf483e79548de6bc08bf3c8e504bb3