CVE-2026-98421: wifi: mac80211: require a peer station for TDLS setup confirm
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: require a peer station for TDLS setup confirm
It's nonsense for the setup confirm to go to station that doesn't even exist, and it hits a warning when building the frame:
WARN_ON_ONCE(!sta || !ap_sta)
Only accept WLAN_TDLS_SETUP_CONFIRM when the station is already there as a TDLS station. Need to copy the call to ieee80211_tdls_prep_mgmt_packet() since the existing WLAN_TDLS_DISCOVERY_REQUEST already falls through to it.
The Linux kernel CVE team has assigned CVE-2026-98421 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.17 with commit 6f7eaa47e1de30159277f91f1145a6687f13ffd9 and fixed in 6.1.189 with commit 6bae6ef511a29ef12ab969adeea691067d4d5d74 Issue introduced in 3.17 with commit 6f7eaa47e1de30159277f91f1145a6687f13ffd9 and fixed in 6.6.158 with commit d0afa5395c46d73ad2090aa50209886e84f179bd Issue introduced in 3.17 with commit 6f7eaa47e1de30159277f91f1145a6687f13ffd9 and fixed in 6.12.112 with commit 742c762bee59c973684f70dfed7de4945d3141e2 Issue introduced in 3.17 with commit 6f7eaa47e1de30159277f91f1145a6687f13ffd9 and fixed in 6.18.54 with commit fce36d242a18ddf64731d816a37564103172da11 Issue introduced in 3.17 with commit 6f7eaa47e1de30159277f91f1145a6687f13ffd9 and fixed in 7.2.8 with commit 1c0a5c96473b9e7a5f4c453ef6a13dc0f5589a4b Issue introduced in 3.17 with commit 6f7eaa47e1de30159277f91f1145a6687f13ffd9 and fixed in 7.3-rc4 with commit 038e1d126304fd25d507fd4e671232df57bd1799
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-98421
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/tdls.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/6bae6ef511a29ef12ab969adeea691067d4d5d74 https://git.kernel.org/stable/c/d0afa5395c46d73ad2090aa50209886e84f179bd https://git.kernel.org/stable/c/742c762bee59c973684f70dfed7de4945d3141e2 https://git.kernel.org/stable/c/fce36d242a18ddf64731d816a37564103172da11 https://git.kernel.org/stable/c/1c0a5c96473b9e7a5f4c453ef6a13dc0f5589a4b https://git.kernel.org/stable/c/038e1d126304fd25d507fd4e671232df57bd1799