Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2d44a033 authored by Johannes Berg's avatar Johannes Berg Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: cfg80211: validate SSID/MBSSID element ordering assumption

The code copying the data assumes that the SSID element is
before the MBSSID element, but since the data is untrusted
from the AP, this cannot be guaranteed.

Validate that this is indeed the case and ignore the MBSSID
otherwise, to avoid having to deal with both cases for the
copy of data that should be between them.

Cc: stable@vger.kernel.org
Fixes: 0b8fb8235be8 ("cfg80211: Parsing of Multiple BSSID information in scanning")
Link: https://lore.kernel.org/r/1569009255-I1673911f5eae02964e21bdc11b2bf58e5e207e59@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
(cherry picked from commit 242b0931c1918c56cd1dc5563fd250a3c39b996d)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: I14b367dd9a100ec688dd1d718d1f6429f83e2a6c
parent 650d5657
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment