linux/net/mac80211/key.c
Johannes Berg bdefcd8f54 wifi: mac80211: reject WEP or pairwise keys with key ID > 3
[ Upstream commit 92ea8df110 ]

We don't really care too much right now since our data
structures are set up to not have a problem with this,
but clearly it's wrong to accept WEP and pairwise keys
with key ID > 3.

However, with MLD we need to split into per-link (GTK,
IGTK, BIGTK) and per interface/MLD (including WEP) keys
so make sure this is not a problem.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 15:14:45 +02:00

1367 lines
38 KiB