]> git.ipfire.org Git - thirdparty/hostap.git/commit
Do not start SA Query procedure without keys
authorRohan <drohan@codeaurora.org>
Fri, 14 Aug 2020 13:36:15 +0000 (19:06 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 22 Sep 2020 20:11:30 +0000 (23:11 +0300)
commite3ba0c4cd230424de1c05d90b28dca56af1fb953
tree91601aead5c9e4e50cd83e0db2981530f0d59144
parenta92660a00e102df6dd1a6500c758407a730f7b8e
Do not start SA Query procedure without keys

The AP mode condition for initiating the SA Query procedure when
receiving a new (Re)Association Request frame used only association
state and MFP negotiation result without checking that the key exchange
has been completed. This can give rise to a corner case where the SA
Query procedure may get started after open association but before the
4-way handshake has been completed, resulting in open SA query frames
over the air.

Fix this by adding station authorized check in hostapd_notif_assoc() and
check_assoc_ies().

Signed-off-by: Rohan <drohan@codeaurora.org>
src/ap/drv_callbacks.c
src/ap/ieee802_11.c