bridge: Sanitize IFLA_EXT_MASK for AF_BRIDGE:RTM_GETLINK
authorThomas Graf <tgraf@suug.ch>
Wed, 26 Nov 2014 12:42:20 +0000 (13:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2014 20:29:01 +0000 (15:29 -0500)
commitaa68c20ff32f9a6fb3ca7f93ed9beae01899d00d
tree92ea43345e093ad57f1068a52577428be4b45e9f
parent6f705d8cfc0af3607aed890c53d86255e315c6f4
bridge: Sanitize IFLA_EXT_MASK for AF_BRIDGE:RTM_GETLINK

Only search for IFLA_EXT_MASK if the message actually carries a
ifinfomsg header and validate minimal length requirements for
IFLA_EXT_MASK.

Fixes: 6cbdceeb ("bridge: Dump vlan information from a bridge port")
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