mac80211: discard multicast and 4-addr A-MSDUs
authorJohannes Berg <johannes.berg@intel.com>
Wed, 5 Oct 2016 08:14:42 +0000 (10:14 +0200)
committerSasha Levin <alexander.levin@verizon.com>
Thu, 24 Nov 2016 03:56:41 +0000 (22:56 -0500)
commitfa3fcdd3d3564cc0d5b65e55ebc3f874fed370c0
tree2f1e777f5ed2ca48774a43fe942cbf2bf5fbf384
parent7d9ad295527ff08a9f44aa71e2d77a84f57efcd1
mac80211: discard multicast and 4-addr A-MSDUs

[ Upstream commit ea720935cf6686f72def9d322298bf7e9bd53377 ]

In mac80211, multicast A-MSDUs are accepted in many cases that
they shouldn't be accepted in:
 * drop A-MSDUs with a multicast A1 (RA), as required by the
   spec in 9.11 (802.11-2012 version)
 * drop A-MSDUs with a 4-addr header, since the fourth address
   can't actually be useful for them; unless 4-address frame
   format is actually requested, even though the fourth address
   is still not useful in this case, but ignored

Accepting the first case, in particular, is very problematic
since it allows anyone else with possession of a GTK to send
unicast frames encapsulated in a multicast A-MSDU, even when
the AP has client isolation enabled.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
net/mac80211/rx.c