Skip to contentSkip to conversation

CVE-2025-39957: wifi: mac80211: increase scan_ies_len for S1G

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 9, 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: mac80211: increase scan_ies_len for S1G

Currently the S1G capability element is not taken into account for the scan_ies_len, which leads to a buffer length validation failure in ieee80211_prep_hw_scan() and subsequent WARN in __ieee80211_start_scan(). This prevents hw scanning from functioning. To fix ensure we accommodate for the S1G capability length.

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

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

	Fixed in 6.1.154 with commit 16c9244a62116fe148f6961753b68e7160799f97
	Fixed in 6.6.108 with commit 93e063f15e17acb8cd6ac90c8f0802c2624e1a74
	Fixed in 6.12.49 with commit 32adb020b0c32939da1322dcc87fc0ae2bc935d1
	Fixed in 6.16.9 with commit 0dbad5f5549e54ac269cc04ce89f212892a98cab
	Fixed in 6.17 with commit 7e2f3213e85eba00acb4cfe6d71647892d63c3a1

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

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:

	net/mac80211/main.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/16c9244a62116fe148f6961753b68e7160799f97
	https://git.kernel.org/stable/c/93e063f15e17acb8cd6ac90c8f0802c2624e1a74
	https://git.kernel.org/stable/c/32adb020b0c32939da1322dcc87fc0ae2bc935d1
	https://git.kernel.org/stable/c/0dbad5f5549e54ac269cc04ce89f212892a98cab
	https://git.kernel.org/stable/c/7e2f3213e85eba00acb4cfe6d71647892d63c3a1