]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: fix infoleak in rtnetlink
authorKangjie Lu <kangjielu@gmail.com>
Tue, 3 May 2016 20:46:24 +0000 (16:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2016 00:04:01 +0000 (17:04 -0700)
commitc1e797692b97ec480bc0e940cc022823e3cc40c9
treea1c1b9cab6cf31085b2ea90630ff4dbfb2510cb8
parentf3a0b05e04b862ffc549b5635339a5cee00da34d
net: fix infoleak in rtnetlink

[ Upstream commit 5f8e44741f9f216e33736ea4ec65ca9ac03036e6 ]

The stack object “map” has a total size of 32 bytes. Its last 4
bytes are padding generated by compiler. These padding bytes are
not initialized and sent out via “nla_put”.

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/rtnetlink.c