Page MenuHomeFreeBSD

net80211: don't dereference a NULL HTINFO IE if it's presented
ClosedPublic

Authored by adrian on Jun 11 2025, 6:19 PM.
Referenced Files
Unknown Object (File)
Fri, Feb 20, 3:24 AM
Unknown Object (File)
Thu, Feb 19, 8:55 AM
Unknown Object (File)
Wed, Feb 18, 8:35 AM
Unknown Object (File)
Sun, Feb 15, 2:50 PM
Unknown Object (File)
Jan 24 2026, 4:12 AM
Unknown Object (File)
Jan 23 2026, 9:54 AM
Unknown Object (File)
Jan 20 2026, 2:10 AM
Unknown Object (File)
Jan 19 2026, 4:00 AM

Details

Summary

ieee80211_vht_get_vhtflags() is checking the htinfo IE for the
20/40MHz flag as part of deciding valid channel widths.

However, in the hostapd path, the ASSOC_REQ/REASSOC_REQ path
will parse the IEs, do some HT/VHT setup, then call
ieee80211_ht_updatehtcap_final(). In a HT ASSOC/REASSOC request
there won't be a HTINFO IE, however ieee80211_vht_get_vhtflags()
still checks for it, leading to a panic.

Instead, treat it as if we don't yet know if it's HT40 or not.
I'm not sure if we should do that or have it just do
_RETURN_CHAN_BITS(0).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable