]> Pileus Git - ~andy/linux/commit
bridge: multicast: add sanity check for general query destination
authorLinus Lüssing <linus.luessing@web.de>
Mon, 10 Mar 2014 21:25:24 +0000 (22:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Mar 2014 03:22:10 +0000 (23:22 -0400)
commit9ed973cc40c588abeaa58aea0683ea665132d11d
tree1c3faf15221a588eb099fb7ff2806a6da15c347b
parentc3f9b01849ef3bc69024990092b9f42e20df7797
bridge: multicast: add sanity check for general query destination

General IGMP and MLD queries are supposed to have the multicast
link-local all-nodes address as their destination according to RFC2236
section 9, RFC3376 section 4.1.12/9.1, RFC2710 section 8 and RFC3810
section 5.1.15.

Without this check, such malformed IGMP/MLD queries can result in a
denial of service: The queries are ignored by most IGMP/MLD listeners
therefore they will not respond with an IGMP/MLD report. However,
without this patch these malformed MLD queries would enable the
snooping part in the bridge code, potentially shutting down the
according ports towards these hosts for multicast traffic as the
bridge did not learn about these listeners.

Reported-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c