]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/wireless/nl80211.c
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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:52:00 +0000 (19:52 -0600)
commit3f6d3db5a507e3e2ecefbdfb31991fd91a208a70
tree6e8e5549c071a5fd608d4118a5361b36ea5bab51
parent2efa9e0b4caa6caeec649982f3626a6a73259d02
cfg80211: nl80211_update_ft_ies() to validate NL80211_ATTR_IE

BugLink: https://bugs.launchpad.net/bugs/1836426
[ 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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/wireless/nl80211.c