summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZhao Li <enderaoelyther@gmail.com>2026-06-12 00:19:45 +0800
committerJohannes Berg <johannes.berg@intel.com>2026-07-06 14:11:09 +0200
commit57d503ce32eccfa7650065ca4c560f7e29a2e676 (patch)
tree36c084de6bbe1167f5cb5bafe21b479b273acee6 /include
parent07a95ec2b54774201fdf4ef7ffb0ca2ab19ed29c (diff)
wifi: mac80211: validate extension-frame layout before RX
Extension frames only have the extension header at the regular 802.11 header offset. The generic RX path can still reach helpers and interface dispatch code that read regular header address fields before unsupported extension subtypes are dropped. mac80211 currently only handles S1G beacon extension frames. Drop other extension subtypes before they can reach regular-header RX processing. For S1G beacons, linearize the SKB with the management-frame path and require the fixed S1G beacon header, including optional fixed fields indicated by frame control, before generic RX dispatch. Route S1G beacons through the station/default-link RX path without regular-header station lookup. Avoid regular-header address reads in the mac80211 RX paths that process S1G extension beacons, including accept-frame, duplicate-detection, address-copy, and MLO address-translation paths. Also make ieee80211_get_bssid() length-safe before returning the S1G source-address pointer. Fixes: 09a740ce352e ("mac80211: receive and process S1G beacons") Cc: stable@vger.kernel.org Signed-off-by: Zhao Li <enderaoelyther@gmail.com> Link: https://patch.msgid.link/20260611161943.91069-5-enderaoelyther@gmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions