diff options
| author | Kangjie Lu <kangjielu@gmail.com> | 2016-06-02 04:04:56 -0400 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2016-08-22 22:38:28 +0100 |
| commit | 3d4997da790d035dc4cc61f254d4de467a1bbf90 (patch) | |
| tree | 9487909facdf5c977249f10bb9bc78fb61244fc3 /include/linux/string.h | |
| parent | ece77e42acbad777ab982f5c523df25e5e577d17 (diff) | |
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 <kjlu@gatech.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
[carnil: Backported to 3.16 (same as bwh did for 3.2): the unpadded strcpy() is
in tipc_node_get_links() and no nlattr is involved, so use strncpy()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions
