mac80211_hwsim: hostapd fails to start with S1G band

Bug #1912609 reported by Paolo Pisati
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wpa (Ubuntu)
Fix Released
High
Sebastien Bacher
Hirsute
Fix Released
High
Sebastien Bacher

Bug Description

Hostapd fails to start on a recent 5.10+ kernel:

$ cat repro.sh
#!/bin/sh

sudo modprobe mac80211_hwsim
sudo ip a flush dev wlan0
sudo ip a add 192.168.5.1/24 dev wlan0

cat << EOF > hostapd.conf
interface=wlan0
driver=nl80211
hw_mode=b
channel=1
ssid=fake net
EOF

sudo hostapd hostapd.conf

ubuntu@hirsute-amd64:~$ ./repro.sh
Configuration file: hostapd.conf
nl80211: kernel reports: expected nested data
Using interface wlan0 with hwaddr 02:00:00:00:00:00 and ssid "fake net"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
^C
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0

this due to the mismanagement of the newly added S1G band, the attached patch fixes it.

Tags: patch

CVE References

Revision history for this message
Paolo Pisati (p-pisati) wrote :
tags: added: patch
Changed in wpa (Ubuntu Hirsute):
assignee: nobody → Sebastien Bacher (seb128)
Changed in wpa (Ubuntu Hirsute):
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the patch Paolo, I uploaded to hirsute now

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wpa - 2:2.9-1ubuntu10

---------------
wpa (2:2.9-1ubuntu10) hirsute; urgency=medium

  * debian/patches/git_dbus_bridge.patch
    - Allow changing an interface bridge via D-Bus (lp: #1893563)

  [ Andrej Shadura ]
  * Security fix: CVE-2020-12695.
    A vulnerability in the UPnP SUBSCRIBE command can trigger the AP to
    initiate a HTTP (TCP/IP) connection to an arbitrary URL or to trigger
    misbehavior in hostapd and cause the process to either get terminated
    or to start using more CPU resources.
    The issue can also be mitigated by building hostapd without UPnP support
    (CONFIG_WPS_UPNP=n) or disabling it at runtime by removing the upnp_iface
    parameter.
    (Closes: #976106)

  [ Paolo Pisati ]
  * debian/patches/nl80211-Unbreak-mode-processing-due-to-presence-of-S.patch:
    - backport upstream fix (commit 52a1b28345123c374fd0127cbce623c41a760730)
      for S1G band (lp: #1912609)

 -- Sebastien Bacher <email address hidden> Thu, 28 Jan 2021 15:10:07 +0100

Changed in wpa (Ubuntu Hirsute):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.