CVE-2026-97492: wifi: mac80211: don't call ieee80211_handle_reconfig_failure when not needed
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: don't call ieee80211_handle_reconfig_failure when not needed
In case reconfiguration of NAN fails, we call ieee80211_handle_reconfig_failure, that marks all interfaces as not in the driver.
Then, at the error path of the reconfig, cfg80211_shutdown_all_interfaces is called to destroy all the interfaces.
If we have any other interface but the NAN one, for example a BSS station, then when its state (links, stations) will be removed, we won't tell the driver about this, because we will think that the interfaces are not in the driver, and then drivers might remain with dangling pointers to objects like stations and links (at least for iwlwifi this is the case).
ieee80211_handle_reconfig_failure is meant to be called after we cleaned up the state in the driver, there is no reason to call it for NAN reconfiguration failure.
Fix the code to just warn in such a case, as we do in other error paths in reconfig where it is too complicated to rewind.
The Linux kernel CVE team has assigned CVE-2026-97492 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.111 with commit 60b96e44489d6775fe9cd8df619c29e0dc285c49 Fixed in 6.18.53 with commit 6fb64029457cdcd77be546daf4c7c7cf04891857 Fixed in 7.2 with commit 7a8a3ff2815501f78f494808355ddf37e08647d0
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-97492
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/util.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/60b96e44489d6775fe9cd8df619c29e0dc285c49 https://git.kernel.org/stable/c/6fb64029457cdcd77be546daf4c7c7cf04891857 https://git.kernel.org/stable/c/7a8a3ff2815501f78f494808355ddf37e08647d0