]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: Fix busy loop regression in ieee80211_ie_split_ric()
authorJouni Malinen <jouni@codeaurora.org>
Wed, 5 Dec 2018 10:55:54 +0000 (12:55 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 5 Dec 2018 11:51:29 +0000 (12:51 +0100)
commite56d55b7ccdbfdaab319d1a5d50aae82dda98628
tree4e5f65fd4521b239e3179233c26c944b6639e323
parent7c149318e5ee1d7cec1f3a7b798c96c61d475750
cfg80211: Fix busy loop regression in ieee80211_ie_split_ric()

This function was modified to support the information element extension
case (WLAN_EID_EXTENSION) in a manner that would result in an infinite
loop when going through set of IEs that include WLAN_EID_RIC_DATA and
contain an IE that is in the after_ric array. The only place where this
can currently happen is in mac80211 ieee80211_send_assoc() where
ieee80211_ie_split_ric() is called with after_ric[].

This can be triggered by valid data from user space nl80211
association/connect request (i.e., requiring GENL_UNS_ADMIN_PERM). The
only known application having an option to include WLAN_EID_RIC_DATA in
these requests is wpa_supplicant and it had a bug that prevented this
specific contents from being used (and because of that, not triggering
this kernel bug in an automated test case ap_ft_ric) and now that this
bug is fixed, it has a workaround to avoid this kernel issue.
WLAN_EID_RIC_DATA is currently used only for testing purposes, so this
does not cause significant harm for production use cases.

Fixes: 65f403eff196 ("mac80211: extend ieee80211_ie_split to support EXTENSION")
Cc: stable@vger.kernel.org
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/util.c