summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-09-28 22:07:15 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-10-10 09:50:23 +0200
commitff05d4b45dd89b922578dac497dcabf57cf771c6 (patch)
treeb67ee15aea80b40cc40d2d76058b744deb3b080c /net/wireless
parent8f033d2becc24aa6bfd2a5c104407963560caabc (diff)
downloadlinux-ff05d4b45dd89b922578dac497dcabf57cf771c6.tar.bz2
wifi: mac80211: fix MBSSID parsing use-after-free
When we parse a multi-BSSID element, we might point some element pointers into the allocated nontransmitted_profile. However, we free this before returning, causing UAF when the relevant pointers in the parsed elements are accessed. Fix this by not allocating the scratch buffer separately but as part of the returned structure instead, that way, there are no lifetime issues with it. The scratch buffer introduction as part of the returned data here is taken from MLO feature work done by Ilan. This fixes CVE-2022-42719. Fixes: 5023b14cf4df ("mac80211: support profile split between elements") Co-developed-by: Ilan Peer <ilan.peer@intel.com> Signed-off-by: Ilan Peer <ilan.peer@intel.com> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
0 files changed, 0 insertions, 0 deletions