OSDN Git Service

cfg80211: nl80211_update_ft_ies() to validate NL80211_ATTR_IE
authorArunk Khandavalli <akhandav@codeaurora.org>
Wed, 29 Aug 2018 21:40:16 +0000 (00:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:55:54 +0000 (08:55 +0200)
commit6f01b1a3c4ad4b9048d676b6cd2a8df9b6b49c0b
tree57d22b518790e550a0f2189012834066a55b69cd
parentaadc5d1ee02dccdf5ff4f0d73cacda4c8cc475b3
cfg80211: nl80211_update_ft_ies() to validate NL80211_ATTR_IE

[ Upstream commit 4f0223bfe9c3e62d8f45a85f1ef1b18a8a263ef9 ]

nl80211_update_ft_ies() tried to validate NL80211_ATTR_IE with
is_valid_ie_attr() before dereferencing it, but that helper function
returns true in case of NULL pointer (i.e., attribute not included).
This can result to dereferencing a NULL pointer. Fix that by explicitly
checking that NL80211_ATTR_IE is included.

Fixes: 355199e02b83 ("cfg80211: Extend support for IEEE 802.11r Fast BSS Transition")
Signed-off-by: Arunk Khandavalli <akhandav@codeaurora.org>
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/nl80211.c