]> 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)
commit6df83ae510d10911a9e1f221f1d3733adc8f897c
tree090b93abb8ec16bcc299e0db8fe7b912460ade61
parent74996373b380ba750d1a4025581613efc4516875
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: 00553929ae45 "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