]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: validate extended element ID is present
authorJohannes Berg <johannes.berg@intel.com>
Sat, 11 Dec 2021 19:10:24 +0000 (20:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Dec 2021 08:19:03 +0000 (09:19 +0100)
commit03029bb044ccee60adbc93e70713f3ae58abc3a1
tree00ca430ae53ca06e69e82dd70a1f25ec06aee993
parent595a684fa6f23b21958379a18cfa83862c73c2e1
mac80211: validate extended element ID is present

commit 768c0b19b50665e337c96858aa2b7928d6dcf756 upstream.

Before attempting to parse an extended element, verify that
the extended element ID is present.

Fixes: 41cbb0f5a295 ("mac80211: add support for HE")
Reported-by: syzbot+59bdff68edce82e393b6@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20211211201023.f30a1b128c07.I5cacc176da94ba316877c6e10fe3ceec8b4dbd7d@changeid
Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/util.c