]> git.ipfire.org Git - thirdparty/hostap.git/commit
TDLS: Reject TPK-TK reconfiguration
authorJouni Malinen <j@w1.fi>
Fri, 22 Sep 2017 08:03:15 +0000 (11:03 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 15 Oct 2017 23:03:47 +0000 (02:03 +0300)
commitff89af96e5a35c86f50330d2b86c18323318a60c
treef53f2a8a48f5cdfbd67083fa83e1e5e6e20cd064
parent0adc9b28b39d414d5febfff752f6a1576f785c85
TDLS: Reject TPK-TK reconfiguration

Do not try to reconfigure the same TPK-TK to the driver after it has
been successfully configured. This is an explicit check to avoid issues
related to resetting the TX/RX packet number. There was already a check
for this for TPK M2 (retries of that message are ignored completely), so
that behavior does not get modified.

For TPK M3, the TPK-TK could have been reconfigured, but that was
followed by immediate teardown of the link due to an issue in updating
the STA entry. Furthermore, for TDLS with any real security (i.e.,
ignoring open/WEP), the TPK message exchange is protected on the AP path
and simple replay attacks are not feasible.

As an additional corner case, make sure the local nonce gets updated if
the peer uses a very unlikely "random nonce" of all zeros.

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