Skip to content

Commit 9f0f5ff

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: [email protected] Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e4f1861 commit 9f0f5ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/mac80211/rx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3568,6 +3568,8 @@ static bool ieee80211_accept_frame(struct ieee80211_rx_data *rx)
35683568
case NL80211_IFTYPE_STATION:
35693569
if (!bssid && !sdata->u.mgd.use_4addr)
35703570
return false;
3571+
if (ieee80211_is_robust_mgmt_frame(skb) && !rx->sta)
3572+
return false;
35713573
if (multicast)
35723574
return true;
35733575
return ether_addr_equal(sdata->vif.addr, hdr->addr1);

0 commit comments

Comments
 (0)