fragattacks/src
Helmut Schaa ded22b5390 hostapd: Fix segfault after ACS when flushing STAs
When hostapd receives an auth frame during ACS the transmission of
the according auth response will always fail:

ACS: Automatic channel selection started, this may take a bit
[..]
send_auth_reply: send: Resource temporarily unavailable
[..]

However, a station info entry was created. Once ACS is finished
it will flush all stations even though hapd was not yet fully
initialized. This results in a segfault when trying to access
hapd->radius:

0  0x0042c1c0 in radius_client_flush_auth ()
1  0x00416a94 in ap_free_sta ()
2  0x00416cc0 in hostapd_free_stas ()
3  0x0040bce8 in hostapd_flush_old_stations ()
4  0x0040c790 in hostapd_setup_interface_complete ()
5  0x0046347c in acs_scan_complete ()
6  0x0040f834 in hostapd_wpa_event ()
7  0x0043af08 in send_scan_event.part.46 ()
8  0x00443a64 in send_scan_event ()
9  0x00443c24 in do_process_drv_event ()
10 0x004449e8 in process_global_event ()
11 0x7767d7d0 in ?? ()

Fix this by not presuming anything about the initialization state of
hapd and checking ->radius before accessing.

Signed-off-hostapd: Helmut Schaa <helmut.schaa@googlemail.com>
2013-10-14 20:44:31 +03:00
..
ap hostapd: Fix segfault after ACS when flushing STAs 2013-10-14 20:44:31 +03:00
common P2P: Add event messages for possible PSK failures on P2P groups 2013-09-01 21:35:10 +03:00
crypto OpenSSL: Split OCSP peer_cert/peer_issuer debug output into parts 2013-09-25 14:43:58 +03:00
drivers Add driver status information to control interface 2013-09-28 17:19:30 +03:00
eap_common EAP-EKE: Add peer implementation 2013-07-07 20:30:10 +03:00
eap_peer Fix MNC length for Swisscom SIM cards 2013-08-31 10:58:23 +03:00
eap_server EAP-AKA server: Fix AUTS processing 2013-09-29 18:39:14 +03:00
eapol_auth Add server identity configuration for EAP server 2013-07-07 20:30:10 +03:00
eapol_supp Drop EAP packet with code 10 before EAPOL state machine processing 2013-09-15 22:42:33 -07:00
l2_packet Update license notification in files initially contributed by Sam 2012-06-30 19:36:04 +03:00
p2p P2P: Increase Invitation Request timeouts 2013-10-05 18:14:33 -07:00
radius Add server identity configuration for EAP server 2013-07-07 20:30:10 +03:00
rsn_supp TDLS: Do not start concurrent TDLS setup 2013-09-30 17:38:41 +03:00
tls Add dup_binstr() to help common binary string tasks 2013-04-27 23:44:59 +03:00
utils Fix wpa_config_parse_string() to null terminate printf decoded values 2013-09-25 14:43:24 +03:00
wps WPS: Ignore PBC-to-PIN change from M1 to M2 as a workaround 2013-09-14 12:02:33 -07:00
lib.rules Add rules for building src/crypto as a library 2009-12-05 22:03:46 +02:00
Makefile P2P: Add initial version of P2P Module 2010-09-09 07:17:17 -07:00