vxlan: fix incorrect nlattr access in MTU check
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 27 Jun 2017 12:42:43 +0000 (14:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jun 2017 18:40:35 +0000 (14:40 -0400)
commit019b13ae85260cfab9d7ccb6ca58f094d18a24fd
tree090b93abb8ec16bcc299e0db8fe7b912460ade61
parentc017ce0a9ad753e3835d7f8f5fca89960380e816
vxlan: fix incorrect nlattr access in MTU check

The access to the wrong variable could lead to a NULL dereference and
possibly other invalid memory reads in vxlan newlink/changelink requests
with a IFLA_MTU attribute.

Fixes: a985343ba906 "vxlan: refactor verification and application of configuration"
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c