Skip to contentSkip to conversation

CVE-2026-98335: wifi: mac80211: abort chanswitch when leaving a mesh

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

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: abort chanswitch when leaving a mesh

The code in ieee80211_stop_mesh() leaves CSA active, but leaving the mesh released the channel context, so the CSA finalize work crashes:

  Oops: general protection fault, probably for non-canonical address
        0xdffffc0000000003
  KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
  RIP: 0010:ieee80211_put_srates_elem+0x42/0x640 net/mac80211/util.c:3272
  Call Trace:
   ieee80211_mesh_build_beacon+0xa83/0x1b50 net/mac80211/mesh.c:1093
   ieee80211_mesh_rebuild_beacon+0xc7/0x170 net/mac80211/mesh.c:1147
   ieee80211_mesh_finish_csa+0x131/0x210 net/mac80211/mesh.c:1542
   ieee80211_set_after_csa_beacon net/mac80211/cfg.c:4085 [inline]
   __ieee80211_csa_finalize net/mac80211/cfg.c:4133 [inline]
   ieee80211_csa_finalize+0x633/0x1150 net/mac80211/cfg.c:4155
   cfg80211_wiphy_work+0x2ab/0x450 net/wireless/core.c:438

Abort the channel switch properly.

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

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

	Issue introduced in 3.13 with commit b8456a14e9d2770846fcf74de18ff95b676149a3 and fixed in 6.12.112 with commit bc544ef02327edf61c94d2b6bae9d14b217009b2
	Issue introduced in 3.13 with commit b8456a14e9d2770846fcf74de18ff95b676149a3 and fixed in 6.18.54 with commit 2e1d6e80148495e728a85a9250176f266312e55c
	Issue introduced in 3.13 with commit b8456a14e9d2770846fcf74de18ff95b676149a3 and fixed in 7.2.8 with commit d222fdc973bb8dbf0357772bd9042ffdc8291939
	Issue introduced in 3.13 with commit b8456a14e9d2770846fcf74de18ff95b676149a3 and fixed in 7.3-rc4 with commit ac7472a24bd433b81c06582835dd1d5547c10da9

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

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/mesh.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/bc544ef02327edf61c94d2b6bae9d14b217009b2
	https://git.kernel.org/stable/c/2e1d6e80148495e728a85a9250176f266312e55c
	https://git.kernel.org/stable/c/d222fdc973bb8dbf0357772bd9042ffdc8291939
	https://git.kernel.org/stable/c/ac7472a24bd433b81c06582835dd1d5547c10da9