]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitefac8781d01a4a6832cc7130e3419688849e8beb
tree090b93abb8ec16bcc299e0db8fe7b912460ade61
parent25facea35d348ecb252fdabb201d1622e1e5622f
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: 916d73f46387 "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