Modify

Opened 7 years ago

Closed 4 years ago

#9466 closed defect (fixed)

Hostapd WPA-Enterprise crashes when the radius server is not reachable.

Reported by: michael@… Owned by: developers
Priority: response-needed Milestone: Backfire 10.03.1
Component: packages Version: Trunk
Keywords: hostapd Cc:

Description

Hi,

Using the following configuration of hostapd, I experienced a segmentation fault when a client connected but when the configured RADIUS server was not reachable. The problem does not occur when there are no clients trying to connect.

I seem to have it tracked down radius_client_retransmit in radius_client.c meant to retransmit a message. This function eventually calls a function called radius_client_flush which removes the aforementioned message.

The problem still remains in the hostapd git.

The config file:

interface=wlan0
bridge=br0
driver=nl80211
auth_algs=3
debug=0
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
beacon_int=100
max_num_sta=255
hw_mode=g
channel=11
rts_threshold=2347
fragm_threshold=2346
ssid=radiustest
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ieee8021x=1
eap_server=0
eapol_key_index_workaround=1
wpa=1
wpa_passphrase=passphrase
wpa_key_mgmt=WPA-EAP
wpa_pairwise=TKIP
own_ip_addr=192.168.1.253
auth_server_addr=143.129.76.1
auth_server_port=1812
auth_server_shared_secret=radius_secret
acct_server_addr=143.129.76.1
acct_server_port=1813
acct_server_shared_secret=radius_secret
ignore_broadcast_ssid=0

here is the output of hostapd:

[ node-234 ] hostapd /etc/hostapd/hostapd.conf 
Configuration file: /etc/hostapd/hostapd.conf
Using interface wlan0 with hwaddr 00:0c:42:67:87:f8 and ssid 'radiustest'
socket[PF_INET6,SOCK_DGRAM]: Address family not supported by protocol
wlan0: RADIUS Authentication server 143.129.76.1:1812
connect[radius]: Network is unreachable
wlan0: STA 00:1e:c2:bc:f4:a5 IEEE 802.11: authenticated
wlan0: STA 00:1e:c2:bc:f4:a5 IEEE 802.11: associated (aid 1)
wlan0: CTRL-EVENT-EAP-STARTED 00:1e:c2:bc:f4:a5
wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1
send[RADIUS]: Bad file descriptor
wlan0: RADIUS Send failed - maybe interface status changed - try to connect again
socket[PF_INET6,SOCK_DGRAM]: Address family not supported by protocol
wlan0: RADIUS Authentication server 143.129.76.1:1812
connect[radius]: Network is unreachable
send[RADIUS]: Bad file descriptor
wlan0: RADIUS Send failed - maybe interface status changed - try to connect again
socket[PF_INET6,SOCK_DGRAM]: Address family not supported by protocol
wlan0: RADIUS Authentication server 143.129.76.1:1812
Segmentation fault

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by jow

  • Priority changed from normal to response-needed

Please test r27021

comment:2 Changed 7 years ago by michael@…

I can confirm that the hostapd in r27021 fixes this issue for me. When the radius server is reachable, hostapd no longer crashes. And when hostapd can reach the radius server, I was able to authenticate without any problems.

Are there any plans to merge this into the backfire branch?

comment:3 Changed 7 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

merged to backfire in r27031

comment:4 Changed 4 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:5 Changed 4 years ago by nbd

  • Resolution set to fixed
  • Status changed from reopened to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.