]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: wext: fix IGTK key ID off-by-one
authorJohannes Berg <johannes.berg@intel.com>
Mon, 9 Feb 2026 18:12:20 +0000 (19:12 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Feb 2026 08:18:59 +0000 (09:18 +0100)
commitc8d7f21ead727485ebf965e2b4d42d4a4f0840f6
treec2af25dc9b1a4757383ce44f000ae2db1308b00b
parent8bf22c33e7a172fbc72464f4cc484d23a6b412ba
wifi: cfg80211: wext: fix IGTK key ID off-by-one

The IGTK key ID must be 4 or 5, but the code checks against
key ID + 1, so must check against 5/6 rather than 4/5. Fix
that.

Reported-by: Jouni Malinen <j@w1.fi>
Fixes: 08645126dd24 ("cfg80211: implement wext key handling")
Link: https://patch.msgid.link/20260209181220.362205-2-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/wext-compat.c