Skip to content
Commit 58fcb1b4 authored by Moon Hee Lee's avatar Moon Hee Lee Committed by Johannes Berg
Browse files

wifi: mac80211: reject VHT opmode for unsupported channel widths



VHT operating mode notifications are not defined for channel widths
below 20 MHz. In particular, 5 MHz and 10 MHz are not valid under the
VHT specification and must be rejected.

Without this check, malformed notifications using these widths may
reach ieee80211_chan_width_to_rx_bw(), leading to a WARN_ON due to
invalid input. This issue was reported by syzbot.

Reject these unsupported widths early in sta_link_apply_parameters()
when opmode_notif is used. The accepted set includes 20, 40, 80, 160,
and 80+80 MHz, which are valid for VHT. While 320 MHz is not defined
for VHT, it is allowed to avoid rejecting HE or EHT clients that may
still send a VHT opmode notification.

Reported-by: default avatar <syzbot+ededba317ddeca8b3f08@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=ededba317ddeca8b3f08


Fixes: 751e7489 ("wifi: mac80211: expose ieee80211_chan_width_to_rx_bw() to drivers")
Tested-by: default avatar <syzbot+ededba317ddeca8b3f08@syzkaller.appspotmail.com>
Signed-off-by: default avatarMoon Hee Lee <moonhee.lee.ca@gmail.com>
Link: https://patch.msgid.link/20250703193756.46622-2-moonhee.lee.ca@gmail.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 3b602ddc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment