Skip to contentSkip to conversation

CVE-2025-38642: wifi: mac80211: fix WARN_ON for monitor mode on some devices

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 22, 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: fix WARN_ON for monitor mode on some devices

On devices without WANT_MONITOR_VIF (and probably without channel context support) we get a WARN_ON for changing the per-link setting of a monitor interface.

Since we already skip AP_VLAN interfaces and MONITOR with WANT_MONITOR_VIF and/or NO_VIRTUAL_MONITOR should update the settings, catch this in the link change code instead of the warning.

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

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

	Issue introduced in 6.13 with commit c4382d5ca1af75cf909463c7a707efd1a5f9a557 and fixed in 6.15.10 with commit ff15498ebaa49c5429a74e70a1951dede60cd14c
	Issue introduced in 6.13 with commit c4382d5ca1af75cf909463c7a707efd1a5f9a557 and fixed in 6.16.1 with commit 1e10ded6b0f9b0eeefaacbb6c6c6afff3f702812
	Issue introduced in 6.13 with commit c4382d5ca1af75cf909463c7a707efd1a5f9a557 and fixed in 6.17-rc1 with commit c57e5b9819dfd16d709bcd6cb633301ed0829a66

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

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/ff15498ebaa49c5429a74e70a1951dede60cd14c
	https://git.kernel.org/stable/c/1e10ded6b0f9b0eeefaacbb6c6c6afff3f702812
	https://git.kernel.org/stable/c/c57e5b9819dfd16d709bcd6cb633301ed0829a66