]> git.baikalelectronics.ru Git - kernel.git/commit
net: rtnl: info leak in rtnl_fill_vfinfo()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Oct 2016 08:45:28 +0000 (11:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 16:12:04 +0000 (12:12 -0400)
commit4f66d8432955d2ebaf3b81f3c7d6edb1dd18e4cb
tree8d0a411f4161bef506a355fa8605afdcc60bc8f4
parent6fb49550e536446aba3da076bf6f962cbb6a1c4c
net: rtnl: info leak in rtnl_fill_vfinfo()

The "vf_vlan_info" struct ends with a 2 byte struct hole so we have to
memset it to ensure that no stack information is revealed to user space.

Fixes: 20235b2144e0 ('net: Update API for VF vlan protocol 802.1ad support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c