]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix LCI request subelement processing
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 3 Jan 2017 13:12:34 +0000 (15:12 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 3 Jan 2017 13:18:29 +0000 (15:18 +0200)
commit6a31440b86b182452fc87bcdb2a81f95242fb0c6
tree597da235fdbf372a36d0b141fc266c3e8eedc582
parentce691a8d962fbcac6651980280fd5d5ff0d85e44
Fix LCI request subelement processing

Commit 4a742011abca8a9c185cc40d17783cfa4c9af757 ('wpa_supplicant: Handle
LCI request') introduced LCI request parsing in a manner that
incremented the request pointer by four within
wpas_rrm_build_lci_report() without decrementing len correspondingly.
This could potentially result in get_ie() reading four octets beyond the
buffer if a corrupted request is received. This would be applicable only
if the LCI reporting was enabled explicitly ("SET LCI ..." control
interface command).

Fix this by updating the len variable to match the request pointer
changes.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/wpa_supplicant.c