Skip to content

Commit 0e879ef

Browse files
jmberg-intelgregkh
authored andcommitted
mac80211: drop robust management frames from unknown TA
commit 588f7d3 upstream. When receiving a robust management frame, drop it if we don't have rx->sta since then we don't have a security association and thus couldn't possibly validate the frame. Cc: stable@vger.kernel.org Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 17d941d commit 0e879ef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

net/mac80211/rx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3752,6 +3752,8 @@ static bool ieee80211_accept_frame(struct ieee80211_rx_data *rx)
37523752
case NL80211_IFTYPE_STATION:
37533753
if (!bssid && !sdata->u.mgd.use_4addr)
37543754
return false;
3755+
if (ieee80211_is_robust_mgmt_frame(skb) && !rx->sta)
3756+
return false;
37553757
if (multicast)
37563758
return true;
37573759
return ether_addr_equal(sdata->vif.addr, hdr->addr1);

0 commit comments

Comments
 (0)