wifi: mac80211: fix crash in beacon protection for P2P-device
If beacon protection is active but the beacon cannot be decrypted or is otherwise malformed, we call the cfg80211 API to report this to userspace, but that uses a netdev pointer, which isn't present for P2P-Device. Fix this to call it only conditionally to ensure cfg80211 won't crash in the case of P2P-Device. This fixes CVE-2022-42722. Reported-by:Sönke Huster <shuster@seemoo.tu-darmstadt.de> Fixes: 9eaf183a ("mac80211: Report beacon protection failures to user space") Signed-off-by:
Johannes Berg <johannes.berg@intel.com>
Loading
-
mentioned in commit a36f11d8
-
mentioned in commit 4bff4599
-
mentioned in commit 632972e6
-
mentioned in commit f6f021f7
-
mentioned in commit 4604f59f
-
mentioned in commit b2b024d0
-
mentioned in commit 1c70feb0
-
mentioned in commit faa03d69
-
mentioned in commit 79651ab7
-
mentioned in commit 7f209b61
-
mentioned in commit 1591ba53
-
mentioned in commit 337c2ff5
-
mentioned in commit 31ae4030
-
mentioned in commit 490bfec3
-
mentioned in commit 59343e12
-
mentioned in commit b73bfeb7
-
mentioned in commit f2bd3337
Please sign in to comment