Skip to contentSkip to conversation

CVE-2025-38157: wifi: ath9k_htc: Abort software beacon handling if disabled

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 3, 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: ath9k_htc: Abort software beacon handling if disabled

A malicious USB device can send a WMI_SWBA_EVENTID event from an ath9k_htc-managed device before beaconing has been enabled. This causes a device-by-zero error in the driver, leading to either a crash or an out of bounds read.

Prevent this by aborting the handling in ath9k_htc_swba() if beacons are not enabled.

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

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

	Issue introduced in 3.0 with commit 832f6a18fc2aead14954c081ece03b7a5b425f81 and fixed in 5.4.295 with commit e5ce9df1d68094d37360dbd9b09289d42fa21e54
	Issue introduced in 3.0 with commit 832f6a18fc2aead14954c081ece03b7a5b425f81 and fixed in 5.10.239 with commit 0281c19074976ec48f0078d50530b406ddae75bc
	Issue introduced in 3.0 with commit 832f6a18fc2aead14954c081ece03b7a5b425f81 and fixed in 5.15.186 with commit 7ee3fb6258da8c890a51b514f60d7570dc703605
	Issue introduced in 3.0 with commit 832f6a18fc2aead14954c081ece03b7a5b425f81 and fixed in 6.1.142 with commit 40471b23147c86ea3ed97faee79937c618250bd0
	Issue introduced in 3.0 with commit 832f6a18fc2aead14954c081ece03b7a5b425f81 and fixed in 6.6.94 with commit 5482ef9875eaa43f0435e14570e1193823de857e
	Issue introduced in 3.0 with commit 832f6a18fc2aead14954c081ece03b7a5b425f81 and fixed in 6.12.34 with commit ee5ee646385f5846dcbc881389f3c44a197c402a
	Issue introduced in 3.0 with commit 832f6a18fc2aead14954c081ece03b7a5b425f81 and fixed in 6.15.3 with commit 5a85c21f812e02cb00ca07007d88acdd42d08c46
	Issue introduced in 3.0 with commit 832f6a18fc2aead14954c081ece03b7a5b425f81 and fixed in 6.16-rc1 with commit ac4e317a95a1092b5da5b9918b7118759342641c

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

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/ath9k/htc_drv_beacon.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/e5ce9df1d68094d37360dbd9b09289d42fa21e54
	https://git.kernel.org/stable/c/0281c19074976ec48f0078d50530b406ddae75bc
	https://git.kernel.org/stable/c/7ee3fb6258da8c890a51b514f60d7570dc703605
	https://git.kernel.org/stable/c/40471b23147c86ea3ed97faee79937c618250bd0
	https://git.kernel.org/stable/c/5482ef9875eaa43f0435e14570e1193823de857e
	https://git.kernel.org/stable/c/ee5ee646385f5846dcbc881389f3c44a197c402a
	https://git.kernel.org/stable/c/5a85c21f812e02cb00ca07007d88acdd42d08c46
	https://git.kernel.org/stable/c/ac4e317a95a1092b5da5b9918b7118759342641c