]> git.ipfire.org Git - thirdparty/hostap.git/commit
WNM: Fix BSS Termination Duration subelement length validation
authorJouni Malinen <jouni@codeaurora.org>
Fri, 24 May 2019 13:59:25 +0000 (16:59 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 May 2019 22:19:33 +0000 (01:19 +0300)
commite8ebef87cb4bb57a9d4b1ca3bc1ee2979ff8c297
tree76457b8fc41947475429d3c7385a10dc2e4256bb
parent2dfe2ad6cb6d81f2ccf3a227029fa2b0e2e841d2
WNM: Fix BSS Termination Duration subelement length validation

The length check for the BSS Termination Duration subelement was
accidentally removed and this could result in reading up to 10 bytes
beyond the end of a received frame. The actual read bytes would be
stored locally, but they were not used for anything, so other than
reading beyond the end of an allocated heap memory buffer, this did not
result in any behavior difference or exposure of the bytes.

Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14922
Fixes: 093226783dc7 ("WNM: Simplify how candidate subelements are stored")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/wnm_sta.c