Commit 378ae9cc authored by Moon Hee Lee's avatar Moon Hee Lee Committed by Greg Kroah-Hartman
Browse files

wifi: mac80211: reject TDLS operations when station is not associated



[ Upstream commit 16ecdab5 ]

syzbot triggered a WARN in ieee80211_tdls_oper() by sending
NL80211_TDLS_ENABLE_LINK immediately after NL80211_CMD_CONNECT,
before association completed and without prior TDLS setup.

This left internal state like sdata->u.mgd.tdls_peer uninitialized,
leading to a WARN_ON() in code paths that assumed it was valid.

Reject the operation early if not in station mode or not associated.

Reported-by: default avatar <syzbot+f73f203f8c9b19037380@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=f73f203f8c9b19037380


Fixes: 81dd2b88 ("mac80211: move TDLS data to mgd private part")
Tested-by: default avatar <syzbot+f73f203f8c9b19037380@syzkaller.appspotmail.com>
Signed-off-by: default avatarMoon Hee Lee <moonhee.lee.ca@gmail.com>
Link: https://patch.msgid.link/20250715230904.661092-2-moonhee.lee.ca@gmail.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent df51cc1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment