Skip to contentSkip to conversation

CVE-2026-98704: wifi: mac80211: keep fallback association elements alive

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: keep fallback association elements alive

Associating to a non-transmitted MBSSID profile reads freed memory while determining the operating channel and applying HT capabilities.

When an association response omits WMM, HT, or VHT information, ieee80211_assoc_config_link() parses the cached BSS IEs and copies the missing element pointers out of that fallback parse. For a non-transmitted MBSSID profile those pointers refer to merged-profile storage owned by the parse object, and the fallback block frees that object at its end. The copied pointers are used afterwards to determine the operating channel, configure bandwidth, and apply HT capabilities.

Keep the fallback parse result alive until association setup finishes.

[reorder variable declaration]

The Linux kernel CVE team has assigned CVE-2026-98704 to this issue.

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

	Issue introduced in 5.2 with commit 5023b14cf4df4d22e1a80738167f3438c9e62e5f and fixed in 6.12.113 with commit 1d9644753d46c86b4e5c05bd6d9d35339ea27331
	Issue introduced in 5.2 with commit 5023b14cf4df4d22e1a80738167f3438c9e62e5f and fixed in 6.18.56 with commit d0183cd1f6a2dba9e63be20af2f65093c9c8d121
	Issue introduced in 5.2 with commit 5023b14cf4df4d22e1a80738167f3438c9e62e5f and fixed in 7.2.10 with commit 0878594c5806dd29fa5e16cc026ce19158afdad2
	Issue introduced in 5.2 with commit 5023b14cf4df4d22e1a80738167f3438c9e62e5f and fixed in 7.3-rc6 with commit a10a2f80476d166fd81c361ec0319493671b694e

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-2026-98704

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/mlme.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/1d9644753d46c86b4e5c05bd6d9d35339ea27331
	https://git.kernel.org/stable/c/d0183cd1f6a2dba9e63be20af2f65093c9c8d121
	https://git.kernel.org/stable/c/0878594c5806dd29fa5e16cc026ce19158afdad2
	https://git.kernel.org/stable/c/a10a2f80476d166fd81c361ec0319493671b694e