summaryrefslogtreecommitdiffstats
path: root/crypto/crypto_user_stat.c
diff options
context:
space:
mode:
authorEric Biggers2018-11-03 22:56:00 +0100
committerHerbert Xu2018-11-09 10:35:43 +0100
commitf43f39958beb206b53292801e216d9b8a660f087 (patch)
tree55c72a4428c1e7cb5e38e85e8912e1540be2e65b /crypto/crypto_user_stat.c
parentcrypto: simd - correctly take reqsize of wrapped skcipher into account (diff)
downloadkernel-qcow2-linux-f43f39958beb206b53292801e216d9b8a660f087.tar.gz
kernel-qcow2-linux-f43f39958beb206b53292801e216d9b8a660f087.tar.xz
kernel-qcow2-linux-f43f39958beb206b53292801e216d9b8a660f087.zip
crypto: user - fix leaking uninitialized memory to userspace
All bytes of the NETLINK_CRYPTO report structures must be initialized, since they are copied to userspace. The change from strncpy() to strlcpy() broke this. As a minimal fix, change it back. Fixes: 4473710df1f8 ("crypto: user - Prepare for CRYPTO_MAX_ALG_NAME expansion") Cc: <stable@vger.kernel.org> # v4.12+ Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/crypto_user_stat.c')
0 files changed, 0 insertions, 0 deletions