mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-20 11:54:05 -05:00
8f8473cebb
Only one peer-commit-scalar value was stored for a specific STA (i.e., one per MAC address) and that value got replaced when the next SAE Authentication exchange was started. This ended up breaking the check against re-use of peer-commit-scalar from an Accepted instance when anti-clogging token was requested. The first SAE commit message (the one without anti-clogging token) ended up overwriting the cached peer-commit-scalar value while leaving that instance in Accepted state. The second SAE commit message (with anti-clogging token) added ended up getting rejected if it used the same value again (and re-use is expected in this particular case where the value was not used in Accepted instance). Fix this by using a separate pointer for storing the peer-commit-scalar value that was used in an Accepted instance. There is no need to allocate memory for two values, i.e., it is sufficient to maintain separate pointers to the value and move the stored value to the special Accepted state pointer when moving to the Accepted state. This fixes issues where a peer STA ends up running back-to-back SAE authentication within couple of seconds, i.e., without hostapd timing out the STA entry for a case where anti-clogging token is required. Signed-off-by: Jouni Malinen <jouni@codeaurora.org> |
||
---|---|---|
.. | ||
cli.c | ||
cli.h | ||
common_module_tests.c | ||
ctrl_iface_common.c | ||
ctrl_iface_common.h | ||
defs.h | ||
dhcp.h | ||
dpp.c | ||
dpp.h | ||
dragonfly.c | ||
dragonfly.h | ||
eapol_common.h | ||
gas_server.c | ||
gas_server.h | ||
gas.c | ||
gas.h | ||
hw_features_common.c | ||
hw_features_common.h | ||
ieee802_1x_defs.h | ||
ieee802_11_common.c | ||
ieee802_11_common.h | ||
ieee802_11_defs.h | ||
linux_bridge.h | ||
linux_vlan.h | ||
Makefile | ||
ocv.c | ||
ocv.h | ||
privsep_commands.h | ||
qca-vendor-attr.h | ||
qca-vendor.h | ||
sae.c | ||
sae.h | ||
tnc.h | ||
version.h | ||
wpa_common.c | ||
wpa_common.h | ||
wpa_ctrl.c | ||
wpa_ctrl.h | ||
wpa_helpers.c | ||
wpa_helpers.h |