diff options
author | Eric Dumazet <edumazet@google.com> | 2018-04-07 23:42:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-16 11:10:23 +0300 |
commit | 1b6d0db7ed22902dee6cdbf253eed1fe46294abc (patch) | |
tree | 63a0347da02cd46d4c996a2740779793d69d89ad /crypto/pcbc.c | |
parent | 19042316b9e12c93bf334a04d4dd7a4e846c7311 (diff) | |
download | linux-1b6d0db7ed22902dee6cdbf253eed1fe46294abc.tar.xz |
crypto: af_alg - fix possible uninit-value in alg_bind()
commit a466856e0b7ab269cdf9461886d007e88ff575b0 upstream.
syzbot reported :
BUG: KMSAN: uninit-value in alg_bind+0xe3/0xd90 crypto/af_alg.c:162
We need to check addr_len before dereferencing sa (or uaddr)
Fixes: bb30b8848c85 ("crypto: af_alg - whitelist mask and type")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Cc: Stephan Mueller <smueller@chronox.de>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/pcbc.c')
0 files changed, 0 insertions, 0 deletions