UPSTREAM: wifi: cfg80211: ensure length byte is present before access
commit 567e14e3 upstream. When iterating the elements here, ensure the length byte is present before checking it to see if the entire element will fit into the buffer. Longer term, we should rewrite this code using the type-safe element iteration macros that check all of this. Bug: 254180332 Bug: 256770696 Fixes: 0b8fb823 ("cfg80211: Parsing of Multiple BSSID information in scanning") Reported-by:Soenke Huster <shuster@seemoo.tu-darmstadt.de> Signed-off-by:
Johannes Berg <johannes.berg@intel.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Lee Jones <joneslee@google.com> Change-Id: I6ece37c57ca56462566adbcac6def6b35dc5b799 (cherry picked from commit d56839bb)
Loading
Please sign in to comment