]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bridge: fix mdb info leaks
authorMathias Krause <minipli@googlemail.com>
Sat, 9 Mar 2013 05:52:19 +0000 (05:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 20:10:58 +0000 (13:10 -0700)
commit0cc912b2067fa8c8b8a628775282ebfdabb2a666
tree796943edac26c53f526980687b191027b66c9341
parent7ffeaad32ddcbf8ad98807c94ed8c686bbdbcb31
bridge: fix mdb info leaks

[ Upstream commit c085c49920b2f900ba716b4ca1c1a55ece9872cc ]

The bridging code discloses heap and stack bytes via the RTM_GETMDB
netlink interface and via the notify messages send to group RTNLGRP_MDB
afer a successful add/del.

Fix both cases by initializing all unset members/padding bytes with
memset(0).

Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bridge/br_mdb.c