]> git.ipfire.org Git - thirdparty/hostap.git/commit
SAE: Do not drop STA entry on reauthentication in infrastructure BSS
authorJouni Malinen <jouni@codeaurora.org>
Tue, 5 Jun 2018 22:22:01 +0000 (01:22 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 5 Jun 2018 22:22:01 +0000 (01:22 +0300)
commite8d08cf37844f783b389e601ecedd13edd2b9196
treeea86aed77438177fc3741a3d2ed98f67729c147e
parentffcaca68d3ed7402674a37411cdfdd278b574b0b
SAE: Do not drop STA entry on reauthentication in infrastructure BSS

A new SAE Commit message should not be allowed to drop an existing STA
entry since the sender of that Commit message cannot be authenticated
before receiving the Confirm message. This is important in particular
when PMF is used since this would provide a potential new path for
forcing a connection to be dropped.

Fix this by allowing a new SAE Authentication instance to be started
when the old instance is in Accepted state and the new Commit message
does not use the same peer-scalar value (checked in
sae_parse_commit_scalar()). When PMF is used, the AP will use SA Query
procedure when receiving the (Re)Association Request frame. In theory,
that step could be skipped in case of SAE Authentication since the
non-AP STA is demonstrating knowledge of the password. Anyway, there is
no allowance for that exception in the IEEE 802.11 standard, so at least
for now, leave this using SA Query procedure just like any other PMF
case.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/ieee802_11.c