]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit99a6ce3aaefabe518aa0d02b828361511b763781
tree92ea43345e093ad57f1068a52577428be4b45e9f
parent7123f06724b351aa9178a8efc51256badb3123b7
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: cfa8a4bd ("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