hostapd: fix a use-after-free bug when interfaces are removed during a scan
authorFelix Fietkau <[email protected]>
Tue, 21 Oct 2025 08:23:30 +0000 (08:23 +0000)
committerFelix Fietkau <[email protected]>
Tue, 21 Oct 2025 08:24:16 +0000 (10:24 +0200)
commitd924a0cff8e2f5f0f01217352ac711de768b1eaf
tree557dac1b9af39744e1f196abd8a220dc51023316
parent4c50648f72f738ba77948ba0eb75c090dd839c4e
hostapd: fix a use-after-free bug when interfaces are removed during a scan

Whenever the first bss is removed, any pending scan still keeps a reference
to it. Cancel it in order to prevent use-after-free bugs.

Reported-by: Chad Monroe <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
package/network/services/hostapd/patches/192-nl80211-cancel-scans-whenever-the-first-bss-is-remov.patch [new file with mode: 0644]
package/network/services/hostapd/patches/463-add-mcast_rate-to-11s.patch
package/network/services/hostapd/patches/601-ucode_support.patch
package/network/services/hostapd/patches/740-snoop_iface.patch