Johannes Berg 03029bb044 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>
2021-12-22 09:19:03 +01:00
..
2018-06-18 22:40:32 +02:00
2018-06-12 16:19:22 -07:00
2018-06-18 22:40:32 +02:00
2021-03-30 14:37:03 +02:00
2018-06-18 22:40:32 +02:00
2018-06-30 21:08:12 +09:00
2019-05-16 19:41:20 +02:00
2018-06-18 22:40:32 +02:00