CVE-2026-98327: wifi: mac80211: mesh: reset the CSA state when leaving
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: mesh: reset the CSA state when leaving
ifmsh->csa is allocated in ieee80211_mesh_csa_beacon() and only freed in ieee80211_mesh_finish_csa(), i.e. when the channel switch completes. Leaving the mesh while a switch is still pending therefore leaks it.
Additionally, ifmsh->csa_role and ifmsh->chsw_ttl have their state leak in this case, so things can get mixed up in addition to the memory leak.
Refactor the reset and call it in ieee80211_stop_mesh() to fix it all.
The Linux kernel CVE team has assigned CVE-2026-98327 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.13 with commit b8456a14e9d2770846fcf74de18ff95b676149a3 and fixed in 6.12.112 with commit aba8dfb45864441199748c33ce3c1c8ca121c8bd Issue introduced in 3.13 with commit b8456a14e9d2770846fcf74de18ff95b676149a3 and fixed in 6.18.54 with commit bd3b21145ae2e781daac1bbd19216a63ab4e0cbd Issue introduced in 3.13 with commit b8456a14e9d2770846fcf74de18ff95b676149a3 and fixed in 7.2.8 with commit ba5bf83a81e8832cb84bb3a2da67512f81f57a02 Issue introduced in 3.13 with commit b8456a14e9d2770846fcf74de18ff95b676149a3 and fixed in 7.3-rc4 with commit 860134b3af77970e006feab7e5decb8c84771c7f
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-98327
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/aba8dfb45864441199748c33ce3c1c8ca121c8bd https://git.kernel.org/stable/c/bd3b21145ae2e781daac1bbd19216a63ab4e0cbd https://git.kernel.org/stable/c/ba5bf83a81e8832cb84bb3a2da67512f81f57a02 https://git.kernel.org/stable/c/860134b3af77970e006feab7e5decb8c84771c7f