]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
net: Zeroing the structure ethtool_wolinfo in ethtool_get_wol()
authorAvijit Kanti Das <avijitnsec@codeaurora.org>
Thu, 8 Jun 2017 13:41:00 +0000 (15:41 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 28 Jun 2017 14:24:00 +0000 (11:24 -0300)
commit11caa567f2f76ecac7a3473495bc46316c16d6de
tree1a632387346126d2a2fa8a66bf606d167c873310
parent5eb3b1bc1aa368d5cd922137c626317506a62c2e
net: Zeroing the structure ethtool_wolinfo in ethtool_get_wol()

CVE-2014-9900

memset() the structure ethtool_wolinfo that has padded bytes
but the padded bytes have not been zeroed out.

Change-Id: If3fd2d872a1b1ab9521d937b86a29fc468a8bbfe
Signed-off-by: Avijit Kanti Das <avijitnsec@codeaurora.org>
(cherry-picked from commit 63c317dbee97983004dffdd9f742a20d17150071
 https://source.codeaurora.org/quic/la/kernel/msm-3.10)
Signed-off-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/core/ethtool.c