lkml.org 
[lkml]   [2019]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.16 108/132] mac80211: drop robust management frames from unknown TA
    3.16.74-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Johannes Berg <johannes.berg@intel.com>

    commit 588f7d39b3592a36fb7702ae3b8bdd9be4621e2f 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.

    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    [bwh: Backported to 3.16: adjust context]
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    net/mac80211/rx.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/net/mac80211/rx.c
    +++ b/net/mac80211/rx.c
    @@ -3084,6 +3084,8 @@ static bool prepare_for_handlers(struct
    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 &&
    !ether_addr_equal(sdata->vif.addr, hdr->addr1)) {
    if (!(sdata->dev->flags & IFF_PROMISC) ||
    \
     
     \ /
      Last update: 2019-09-20 16:36    [W:4.506 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site