hostapd/src
Masashi Honma 973f3e244f Fix hostapd segfault on WPS_CONFIG control interface command to non-WPS AP
Execution of "hostapd_cli wps_config" to non-WPS AP causes segmentation
fault in hostapd.

$ hostapd_cli wps_config test WPA2PSK CCMP 12341234

wlp11s0: interface state UNINITIALIZED->COUNTRY_UPDATE
wlp11s0: interface state COUNTRY_UPDATE->ENABLED
wlp11s0: AP-ENABLED
WPA_TRACE: eloop SIGSEGV - START
[1]: ./git/hostap/hostapd/hostapd(+0x6c196) [0x55b270245196]
     eloop_sigsegv_handler() ../src/utils/eloop.c:123
[2]: /lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7f87574a7210]
[3]: ./git/hostap/hostapd/hostapd(hostapd_wps_config_ap+0x1a9) [0x55b2702ce349]
     hostapd_wps_config_ap() ../src/ap/wps_hostapd.c:1970
[4]: ./git/hostap/hostapd/hostapd(+0x90a9f) [0x55b270269a9f]
     hostapd_ctrl_iface_receive_process() ctrl_iface.c:3606
[5]: ./git/hostap/hostapd/hostapd(+0x94069) [0x55b27026d069]
     hostapd_ctrl_iface_receive() ctrl_iface.c:4093
[6]: ./git/hostap/hostapd/hostapd(+0x6c6d3) [0x55b2702456d3]
     eloop_sock_table_dispatch() ../src/utils/eloop.c:606
[7]: ./git/hostap/hostapd/hostapd(eloop_run+0x251) [0x55b2702461c1]
     eloop_sock_table_dispatch() ../src/utils/eloop.c:597
     eloop_run() ../src/utils/eloop.c:1229
[8]: ./git/hostap/hostapd/hostapd(main+0xd53) [0x55b270205773]
     hostapd_global_run() main.c:447
     main() main.c:892
[9]: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f87574880b3]
[10]: ./git/hostap/hostapd/hostapd(_start+0x2e) [0x55b2702058fe]
     _start() (null):0
WPA_TRACE: eloop SIGSEGV - END
Aborted

Reported-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
2021-10-14 16:37:49 +03:00
..
ap Fix hostapd segfault on WPS_CONFIG control interface command to non-WPS AP 2021-10-14 16:37:49 +03:00
common Add TWT attribute to configure TWT related parameters 2021-10-11 22:46:02 +03:00
crypto Replace "dummy" with "stub" in crypto/random 2021-10-11 20:57:06 +03:00
drivers Replace "dummy" with "stub" in NDIS driver interface 2021-10-11 20:56:56 +03:00
eap_common EAP-SIM/AKA: Fix check for anonymous decorated identity 2021-03-20 16:28:44 +02:00
eap_peer Replace "dummy" with "stub" in EAP-TEAP testing 2021-10-11 20:56:54 +03:00
eap_server Replace "dummy" with "stub" in comments/documentation 2021-10-11 20:52:50 +03:00
eapol_auth build: Make more library things common 2020-10-12 20:20:35 +03:00
eapol_supp build: Make more library things common 2020-10-12 20:20:35 +03:00
fst FST: Convert Boolean to C99 bool 2020-04-24 17:06:50 +03:00
l2_packet Replace "dummy" with "stub" in comments/documentation 2021-10-11 20:52:50 +03:00
p2p Replace "sanity" with "validity" 2021-10-11 20:25:21 +03:00
pae Replace "sanity" with "validity" 2021-10-11 20:25:21 +03:00
radius RADIUS client: Fix void-pointer-to-enum-cast warning 2021-08-19 11:19:37 +03:00
rsn_supp TDLS: Support TDLS operations in HE mode for 6 GHz 2021-07-29 20:07:25 +03:00
tls TLS: Fix highest TLS version disabling with internal TLS client 2021-03-14 13:08:04 +02:00
utils utils: FreeBSD supports fdatasync(2) 2021-08-25 16:20:17 +03:00
wps Replace "dummy" with "stub" in comments/documentation 2021-10-11 20:52:50 +03:00
build.rules build: Rebuild libs all the time 2020-10-12 20:18:02 +03:00
lib.rules build: lib.rules: Add common-clean 2020-10-16 12:51:12 +03:00
Makefile build: Add a common-clean target 2020-10-10 12:48:41 +03:00
objs.mk build: Fix dependency file inclusion 2020-10-12 11:05:16 +03:00