]> 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)
commit1baa4c9b8c6adb23add94ecd00b66386327e9c6d
treeabd6690fafd3c802850031dc07041ff7c1daa2b4
parent0188eec6d41f2e67d6cd2885b98551460a7da55a
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