diff options
author | Johannes Berg <johannes.berg@intel.com> | 2019-09-20 21:54:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-11 18:18:49 +0200 |
commit | 01ec813e457954d8eeaf768d57d625752d245bc9 (patch) | |
tree | 22d17626be18c462161b10ad7197d9d871300b5d /fs/hfs | |
parent | cd813e524abcf7dc89231930858f1ac3af372af9 (diff) | |
download | linux-stable-01ec813e457954d8eeaf768d57d625752d245bc9.tar.gz linux-stable-01ec813e457954d8eeaf768d57d625752d245bc9.tar.bz2 linux-stable-01ec813e457954d8eeaf768d57d625752d245bc9.zip |
nl80211: validate beacon head
commit f88eb7c0d002a67ef31aeb7850b42ff69abc46dc upstream.
We currently don't validate the beacon head, i.e. the header,
fixed part and elements that are to go in front of the TIM
element. This means that the variable elements there can be
malformed, e.g. have a length exceeding the buffer size, but
most downstream code from this assumes that this has already
been checked.
Add the necessary checks to the netlink policy.
Cc: stable@vger.kernel.org
Fixes: ed1b6cc7f80f ("cfg80211/nl80211: add beacon settings")
Link: https://lore.kernel.org/r/1569009255-I7ac7fbe9436e9d8733439eab8acbbd35e55c74ef@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions