]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix an infoleak in tipc_nl_compat_link_dump
authorKangjie Lu <kangjielu@gmail.com>
Thu, 2 Jun 2016 08:04:56 +0000 (04:04 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jun 2016 04:32:37 +0000 (21:32 -0700)
commite9af0062a0354f499240041892aedd5e02f5b150
treeabd6690fafd3c802850031dc07041ff7c1daa2b4
parent54cde31c502dde2f2e19808d3dd6d7671c51ae95
tipc: fix an infoleak in tipc_nl_compat_link_dump

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>
net/tipc/netlink_compat.c