aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2017-10-05 09:50:07 +0000
committerPablo Neira Ayuso <[email protected]>2017-10-06 13:04:05 +0000
commite466af75c074e76107ae1cd5a2823e9c61894ffb (patch)
treed89583ebd5b7d23418dbc0d44472f60eecd66ccd /net/unix/af_unix.c
parentnetfilter: nf_tables: do not dump chain counters if not enabled (diff)
downloadkernel-e466af75c074e76107ae1cd5a2823e9c61894ffb.tar.gz
kernel-e466af75c074e76107ae1cd5a2823e9c61894ffb.zip
netfilter: x_tables: avoid stack-out-of-bounds read in xt_copy_counters_from_user
syzkaller reports an out of bound read in strlcpy(), triggered by xt_copy_counters_from_user() Fix this by using memcpy(), then forcing a zero byte at the last position of the destination, as Florian did for the non COMPAT code. Fixes: d7591f0c41ce ("netfilter: x_tables: introduce and use xt_copy_counters_from_user") Signed-off-by: Eric Dumazet <[email protected]> Cc: Willem de Bruijn <[email protected]> Acked-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions