]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
updated queue-5.19/wifi-mac80211-fix-mbssid-parsing-use-after-free.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Oct 2022 18:01:14 +0000 (20:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Oct 2022 18:01:14 +0000 (20:01 +0200)
queue-5.19/wifi-mac80211-fix-mbssid-parsing-use-after-free.patch

index 1a0c1c4927e97ca0c547ec744befa75d979f3ada..8c7e6018921038137b787c433a068015d298d20f 100644 (file)
@@ -29,8 +29,8 @@ Signed-off-by: Johannes Berg <johannes.berg@intel.com>
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 ---
  net/mac80211/ieee80211_i.h |    8 ++++++++
- net/mac80211/util.c        |   31 ++++++++++++++++---------------
- 2 files changed, 24 insertions(+), 15 deletions(-)
+ net/mac80211/util.c        |   3+++++++++++++++---------------
+ 2 files changed, 23 insertions(+), 15 deletions(-)
 
 --- a/net/mac80211/ieee80211_i.h
 +++ b/net/mac80211/ieee80211_i.h
@@ -51,7 +51,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  static inline struct ieee80211_local *hw_to_local(
 --- a/net/mac80211/util.c
 +++ b/net/mac80211/util.c
-@@ -1503,25 +1503,28 @@ struct ieee802_11_elems *ieee802_11_pars
+@@ -1503,25 +1503,27 @@ struct ieee802_11_elems *ieee802_11_pars
        const struct element *non_inherit = NULL;
        u8 *nontransmitted_profile;
        int nontransmitted_profile_len = 0;
@@ -86,14 +86,13 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 +                                            nontransmitted_profile);
 +      elems->scratch_pos += nontransmitted_profile_len;
 +      elems->scratch_len -= nontransmitted_profile_len;
-+      non_inherit =
-+              cfg80211_find_ext_elem(WLAN_EID_EXT_NON_INHERITANCE,
-+                                     nontransmitted_profile,
-+                                     nontransmitted_profile_len);
++      non_inherit = cfg80211_find_ext_elem(WLAN_EID_EXT_NON_INHERITANCE,
++                                           nontransmitted_profile,
++                                           nontransmitted_profile_len);
  
        crc = _ieee802_11_parse_elems_crc(start, len, action, elems, filter,
                                          crc, non_inherit);
-@@ -1550,8 +1553,6 @@ struct ieee802_11_elems *ieee802_11_pars
+@@ -1550,8 +1552,6 @@ struct ieee802_11_elems *ieee802_11_pars
            offsetofend(struct ieee80211_bssid_index, dtim_count))
                elems->dtim_count = elems->bssid_index->dtim_count;