]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 14 Dec 2021 10:20:27 +0000 (11:20 +0100)
commit9b071450df44dbf9849fdfda80a10d9b43544217
treefffe8564116501e6fcabf175c8cf4b04b64cf127
parentfc4daf7733576faf66d451cf3be4f156653023ff
mac80211: validate extended element ID is present

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

Fixes: 8888ba3bbf42 ("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>
net/mac80211/util.c