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: 5023b14c ("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>
Loading
-
mentioned in commit 7eb63dc3
-
mentioned in commit 6c543641
-
mentioned in commit 35838118
-
mentioned in commit 27112b02
-
mentioned in commit 5fa492b7
-
mentioned in commit 2adb4cff
-
mentioned in commit 23e35915
-
mentioned in commit 09be19c1
-
mentioned in commit 55f581c2
-
mentioned in commit c97077f5
-
mentioned in commit 8f827a97
-
mentioned in commit ae1cbaa6
-
mentioned in commit 60573ea4
-
mentioned in commit b4d56d27
-
mentioned in commit 6d045947
-
mentioned in commit 37c9f035
-
mentioned in commit 96a7f6fe
Please sign in to comment