From: Kangjie Lu Date: Thu, 2 Jun 2016 08:04:56 +0000 (-0400) Subject: tipc: fix an infoleak in tipc_nl_compat_link_dump X-Git-Tag: v3.2.82~4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=9fa075340941fc16110bca226c50819b2453fa9b;hp=9fa075340941fc16110bca226c50819b2453fa9b;ds=inline tipc: fix an infoleak in tipc_nl_compat_link_dump commit 5d2be1422e02ccd697ccfcd45c85b4a26e6178e2 upstream. 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 Signed-off-by: David S. Miller [bwh: Backported to 3.2: the unpadded strcpy() is in tipc_node_get_links() and no nlattr is involved, so use strncpy()] Signed-off-by: Ben Hutchings ---