summaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-10-05 21:24:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-10-15 07:59:03 +0200
commit93a3a32554079432b49cf87f326607b2a2fab4f2 (patch)
tree47571a8a24f15b6636955782e83c4afc7b5b5ba5 /net/9p
parentfff244e9171b2ca692469d41c68b36607bd73ab0 (diff)
downloadlinux-stable-93a3a32554079432b49cf87f326607b2a2fab4f2.tar.gz
linux-stable-93a3a32554079432b49cf87f326607b2a2fab4f2.tar.bz2
linux-stable-93a3a32554079432b49cf87f326607b2a2fab4f2.zip
wifi: mac80211: fix crash in beacon protection for P2P-device
commit b2d03cabe2b2e150ff5a381731ea0355459be09f upstream. 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: 9eaf183af741 ("mac80211: Report beacon protection failures to user space") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/9p')
0 files changed, 0 insertions, 0 deletions