tipc: fix an infoleak in tipc_nl_compat_link_dump
authorKangjie Lu <kangjielu@gmail.com>
Thu, 14 Jul 2016 14:02:06 +0000 (15:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2016 06:27:49 +0000 (08:27 +0200)
commit5fb71611925f734f7fe03a45527e14b296fd5167
tree57022ab16a1835a50ab9186dfce5fbe690035246
parentcfd6e7fe434a378127e4964fc0b7ccf32ae2baed
tipc: fix an infoleak in tipc_nl_compat_link_dump

[ Upstream commit 5d2be1422e02ccd697ccfcd45c85b4a26e6178e2 ]

link_info.str is a char array of size 60. Memory after the NULL
byte is not initialized. Sending the whole object out can cause
a leak.

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/tipc/netlink_compat.c