Skip to contentSkip to conversation

CVE-2026-98709: wifi: mac80211: count only matching reservations in reserved switch

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: count only matching reservations in reserved switch

ieee80211_vif_use_reserved_switch() validates a replacement by counting assigned links on ctx->replace_ctx and treating reservations too broadly. A link can still be assigned to the old channel context while holding a reservation that belongs to a different replacement operation.

That can make the current replacement appear complete too early. If another link finalizes first, the function can free the WILL_BE_REPLACED chanctx while the unmatched link and driver still use it, leading to a use-after-free in later beacon generation.

Require an in-place reservation to point at the current replacement context, and require the reserved and assigned contexts to be the matching replacement pair, before counting or moving the link.

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

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

	Issue introduced in 3.17 with commit 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f and fixed in 6.12.113 with commit d31f655e44631891788ca67018ec5e1ed1c7de86
	Issue introduced in 3.17 with commit 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f and fixed in 6.18.56 with commit 03525b632908b049f4d04cc8a71cdff2329589cf
	Issue introduced in 3.17 with commit 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f and fixed in 7.2.10 with commit 5cc54a000960bc88f8c58940164dca0e601ab39c
	Issue introduced in 3.17 with commit 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f and fixed in 7.3-rc6 with commit 437f3727b4fd715266c296435c116288f82666fd

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

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/chan.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/d31f655e44631891788ca67018ec5e1ed1c7de86
	https://git.kernel.org/stable/c/03525b632908b049f4d04cc8a71cdff2329589cf
	https://git.kernel.org/stable/c/5cc54a000960bc88f8c58940164dca0e601ab39c
	https://git.kernel.org/stable/c/437f3727b4fd715266c296435c116288f82666fd