]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP MLD: Check SAE message length without depending on pointer arithemetic
authorJouni Malinen <quic_jouni@quicinc.com>
Sun, 1 Sep 2024 10:24:29 +0000 (13:24 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 1 Sep 2024 10:24:29 +0000 (13:24 +0300)
commitc3ee46bcbe51cde235f8a412c7b963fbed209d2b
tree11111ec3265421f469d72f17a9e5258bcb7cbb67
parent63df62c6c0b86221493588f7b9e583a4e45dd75a
AP MLD: Check SAE message length without depending on pointer arithemetic

The way this was checked previously used pointer arithmetic could result
in undefined behavior due to the pointer ending up pointing more than
one byte beyond the end of the buffer. Avoid this by checking the buffer
length before incrementing the pointer.

Fixes: bcbe80a66a9b ("AP: MLO: Handle Multi-Link element during authentication")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/ieee802_11_eht.c