--- zzzz-none-000/linux-5.4.213/net/mac80211/util.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/net/mac80211/util.c 2024-08-14 09:02:13.000000000 +0000 @@ -1289,6 +1289,8 @@ for_each_element_id(elem, WLAN_EID_MULTIPLE_BSSID, start, len) { if (elem->datalen < 2) continue; + if (elem->data[0] < 1 || elem->data[0] > 8) + continue; for_each_element(sub, elem->data + 1, elem->datalen - 1) { u8 new_bssid[ETH_ALEN];