]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:53 +0000 (07:20 -0500)
commit881d839cfac1cfbcfe130f4f284545681da5e5f4
tree72c5441a27602d7f1b457f388d68111b61c91cf5
parentff1cfa62226d592a7b0707fc3c8f60db63e7975c
wifi: cfg80211: wext: fix IGTK key ID off-by-one

[ Upstream commit c8d7f21ead727485ebf965e2b4d42d4a4f0840f6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/wext-compat.c