]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: cfg80211: reject auth/assoc to AP with our address
authorJohannes Berg <johannes.berg@intel.com>
Tue, 15 Aug 2023 16:09:00 +0000 (18:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Sep 2023 09:11:03 +0000 (11:11 +0200)
commit676a423410131d111a264d29aecbe6aadd57fb22
tree2a2db1d660d36cda95632ceaebe9d56b907cdd65
parent28b07e30bc1465fdc0d71919739310ec311abe42
wifi: cfg80211: reject auth/assoc to AP with our address

[ Upstream commit 5d4e04bf3a0f098bd9033de3a5291810fa14c7a6 ]

If the AP uses our own address as its MLD address or BSSID, then
clearly something's wrong. Reject such connections so we don't
try and fail later.

Reported-by: syzbot+2676771ed06a6df166ad@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/mlme.c