]> git.ipfire.org Git - thirdparty/hostap.git/commit
RSN: Stop connection attempt on apparent PMK mismatch
authorJouni Malinen <j@w1.fi>
Wed, 8 Jul 2015 17:48:18 +0000 (20:48 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 8 Jul 2015 17:55:17 +0000 (20:55 +0300)
commitbddc51e8e422463dc96c263666b6fc4c26375cb6
tree5ac75122b0f2365f2f940ca3bc8801c57492fe3c
parent6c4b5da46db21c5413a8670ba89435e520f9b146
RSN: Stop connection attempt on apparent PMK mismatch

If WPA2-Enterprise connection with full EAP authentication (i.e., no
PMKSA caching used) results in a PMKID that does not match the one the
AP/Authenticator indicates in EAPOL-Key msg 1/4, there is not much point
in trying to trigger full EAP authentication by sending EAPOL-Start
since this sequence was immediately after such full authentication
attempt.

There are known examples of authentication servers with incorrect MSK
derivation when TLS v1.2 is used (e.g., FreeRADIUS 2.2.6 or 3.0.7 when
built with OpenSSL 1.0.2). Write a clear debug log entry and also send
it to control interface monitors when it looks likely that this case has
been hit. After doing that, stop the connection attempt by
disassociating instead of trying to send out EAPOL-Start to trigger new
EAP authentication round (such another try can be tried with a new
association).

Signed-off-by: Jouni Malinen <j@w1.fi>
src/rsn_supp/wpa.c