wifi: mac80211: check EHT/TTLM action frame length
authorJohannes Berg <johannes.berg@intel.com>
Tue, 26 Mar 2024 20:38:58 +0000 (21:38 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 8 Apr 2024 18:11:21 +0000 (20:11 +0200)
commit7c1c73bf84c50b641449f9811e2196cdc3ca4a1b
treebce0832fde605abfdf36981c4302bb67a0e30bf2
parent50108c352db70405b3d71d8099d0b3adc3b3352c
wifi: mac80211: check EHT/TTLM action frame length

Check the EHT action frame length before accessing
the action code, if it's not present then the frame
cannot be valid.

Reported-by: syzbot+75af45a00cf13243ba39@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/r/0000000000006c06870614886611@google.com/
Fixes: 8f500fbc6c65 ("wifi: mac80211: process and save negotiated TID to Link mapping request")
Link: https://msgid.link/20240326213858.19c84f34349f.I71b439f016b28f65284bb7646fe36343b74cbc9a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c