]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
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)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 6 Dec 2016 16:51:54 +0000 (16:51 +0000)
commit5b8a39fff7ebf713310c0a88fd508da160e94124
tree09dc1d896877a8920f0b096e872b18317a6ebb12
parent29ecacde2642935bcb034fb4cdb9b9f8d728decd
mac80211: discard multicast and 4-addr A-MSDUs

BugLink: http://bugs.launchpad.net/bugs/1642572
commit ea720935cf6686f72def9d322298bf7e9bd53377 upstream.

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.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
net/mac80211/rx.c