]> 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)
commit5d2be1422e02ccd697ccfcd45c85b4a26e6178e2
treeabd6690fafd3c802850031dc07041ff7c1daa2b4
parentce25d66ad5f8d921bac5fe2d32d62fa30c0f9a70
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