linux/drivers/net/wireless
Emmanuel Grumbach b7198383ef wifi: iwlwifi: mvm: fix a crash when we run out of stations
A DoS tool that injects loads of authentication frames made our AP
crash. The iwl_mvm_is_dup() function couldn't find the per-queue
dup_data which was not allocated.

The root cause for that is that we ran out of stations in the firmware
and we didn't really add the station to the firmware, yet we didn't
return an error to mac80211.
Mac80211 was thinking that we have the station and because of that,
sta_info::uploaded was set to 1. This allowed
ieee80211_find_sta_by_ifaddr() to return a valid station object, but
that ieee80211_sta didn't have any iwl_mvm_sta object initialized and
that caused the crash mentioned earlier when we got Rx on that station.

Cc: stable@vger.kernel.org
Fixes: 57974a55d9 ("wifi: iwlwifi: mvm: refactor iwl_mvm_mac_sta_state_common()")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240206175739.1f76c44b2486.I6a00955e2842f15f0a089db2f834adb9d10fbe35@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2024-02-08 14:55:39 +01:00
..
admtek
ath wifi: fill in MODULE_DESCRIPTION()s for wcn36xx 2024-01-31 18:32:32 +02:00
atmel wifi: atmel: remove wext style at76c50x drivers 2023-10-30 19:27:49 +02:00
broadcom wifi: brcmfmac: Adjust n_channels usage for __counted_by 2024-02-02 18:40:28 +02:00
intel wifi: iwlwifi: mvm: fix a crash when we run out of stations 2024-02-08 14:55:39 +01:00
intersil wifi: fill in MODULE_DESCRIPTION()s for p54spi 2024-01-31 18:32:32 +02:00
marvell USB / Thunderbolt changes for 6.8-rc1 2024-01-18 11:43:55 -08:00
mediatek wifi: mt76: mt7996: fix fortify warning 2024-02-05 20:00:45 +02:00
microchip wifi: fill in MODULE_DESCRIPTION()s for wilc1000 2024-01-31 18:32:33 +02:00
purelifi wifi: plfxlc: check for allocation failure in plfxlc_usb_wreq_async() 2023-11-08 20:04:53 +02:00
quantenna wifi: cfg80211: split struct cfg80211_ap_settings 2023-09-25 09:00:39 +02:00
ralink wifi: rt2x00: remove useless code in rt2x00queue_create_tx_descriptor() 2023-12-15 15:40:26 +02:00
realtek wifi: rtlwifi: rtl8723{be,ae}: using calculate_bit_shift() 2023-12-21 16:40:18 +02:00
rsi wifi: rsi: rsi_91x_usb_ops: Remove unnecessary (void*) conversions 2023-08-23 14:07:16 +03:00
silabs wifi: wfx: fix possible NULL pointer dereference in wfx_set_mfp_ap() 2023-12-12 17:33:49 +02:00
st wifi: mac80211: rename ieee80211_tx_status() to ieee80211_tx_status_skb() 2023-10-23 12:26:51 +02:00
ti wifi: fill in MODULE_DESCRIPTION()s for wl18xx 2024-01-31 18:32:33 +02:00
virtual wifi: mac80211_hwsim: Add custom reg for DFS concurrent 2023-12-21 20:35:14 +01:00
zydas wifi: remove orphaned zd1201 driver 2023-10-30 19:29:52 +02:00
Kconfig wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00
Makefile wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00