Message ID | 20190806100633.26677-2-jesse.sung@canonical.com |
---|---|
State | New |
Headers | show |
Series | Fix for CVE-2019-0136 | expand |
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 9e19ddbcb06e..ec34cab43642 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -3586,6 +3586,8 @@ static bool ieee80211_accept_frame(struct ieee80211_rx_data *rx) case NL80211_IFTYPE_STATION: if (!bssid && !sdata->u.mgd.use_4addr) return false; + if (ieee80211_is_robust_mgmt_frame(skb) && !rx->sta) + return false; if (multicast) return true; return ether_addr_equal(sdata->vif.addr, hdr->addr1);