]> git.ipfire.org Git - thirdparty/hostap.git/commit
UBSan: Fix RRM beacon processing attempt without scan_info
authorJouni Malinen <j@w1.fi>
Sat, 23 Feb 2019 10:59:10 +0000 (12:59 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 25 Feb 2019 17:43:11 +0000 (19:43 +0200)
commite3b5bd81bdb666e13322248d18307317714bf461
treef7e9e97c7d1f779954118580f099270e5f2d4a0c
parent01d01a311c52d56709eaadc5ffbbe7a7d773b041
UBSan: Fix RRM beacon processing attempt without scan_info

Some driver interfaces (e.g., wext) might not include the
data->scan_info information and data could be NULL here. Do not try to
call the RRM handler in this case since that would dereference the NULL
pointer when determining where scan_info is located and could
potentially result in trying to read from unexpected location if RRM is
enabled with a driver interface that does not support it.

events.c:1907:59: runtime error: member access within null pointer of type 'union wpa_event_data'

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/events.c