diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-02-04 13:31:17 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-11 04:27:35 -0500 |
commit | 12b74dfadb5a7a23baf4db941dc9fd9d371f249a (patch) | |
tree | 40009e4d2e0eb925967d1ffde4f0c3b415f47ee3 /net/ipv4/devinet.c | |
parent | ccad0993567812e88617f105c01b04f1528538b6 (diff) | |
download | linux-12b74dfadb5a7a23baf4db941dc9fd9d371f249a.tar.gz linux-12b74dfadb5a7a23baf4db941dc9fd9d371f249a.tar.bz2 linux-12b74dfadb5a7a23baf4db941dc9fd9d371f249a.zip |
ipv4: add option to drop unicast encapsulated in L2 multicast
In order to solve a problem with 802.11, the so-called hole-196 attack,
add an option (sysctl) called "drop_unicast_in_l2_multicast" which, if
enabled, causes the stack to drop IPv4 unicast packets encapsulated in
link-layer multi- or broadcast frames. Such frames can (as an attack)
be created by any member of the same wireless network and transmitted
as valid encrypted frames since the symmetric key for broadcast frames
is shared between all stations.
Additionally, enabling this option provides compliance with a SHOULD
clause of RFC 1122.
Reviewed-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/devinet.c')
-rw-r--r-- | net/ipv4/devinet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index cebd9d31e65a..dbbab28a52a4 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c @@ -2192,6 +2192,8 @@ static struct devinet_sysctl_table { "promote_secondaries"), DEVINET_SYSCTL_FLUSHING_ENTRY(ROUTE_LOCALNET, "route_localnet"), + DEVINET_SYSCTL_FLUSHING_ENTRY(DROP_UNICAST_IN_L2_MULTICAST, + "drop_unicast_in_l2_multicast"), }, }; |