]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Validate IFLA_BRIDGE_FLAGS attribute length
authorThomas Graf <tgraf@suug.ch>
Wed, 26 Nov 2014 12:42:16 +0000 (13:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2014 20:29:00 +0000 (15:29 -0500)
commit83d81b9f7e81186e0678953e155ddf30f20183d0
tree91b922df0732c107d37e70509684b00bc79ea22e
parent86a9fab1ebe981cd2903aafa2ac63ac8735a5147
bridge: Validate IFLA_BRIDGE_FLAGS attribute length

Payload is currently accessed blindly and may exceed valid message
boundaries.

Fixes: 6d1fee019 ("bridge: Add netlink interface to configure vlans on bridge ports")
Cc: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c