Eric Dumazet
83231e0aae
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>
2018-05-16 10:06:49 +02:00
..
2017-12-16 10:33:48 +01:00
2018-04-13 19:50:06 +02:00
2015-06-25 23:29:24 +08:00
2015-05-11 15:06:43 +08:00
2015-03-31 21:21:04 +08:00
2015-12-09 20:16:22 +08:00
2015-08-17 16:53:53 +08:00
2015-01-13 22:29:11 +11:00
2018-05-16 10:06:49 +02:00
2018-04-08 11:52:00 +02:00
2015-10-20 22:14:01 +08:00
2018-01-17 09:35:30 +01:00
2015-08-17 16:53:41 +08:00
2017-05-20 14:27:00 +02:00
2017-03-30 09:35:20 +02:00
2015-04-22 09:30:21 +08:00
2017-09-27 11:00:14 +02:00
2015-04-22 09:30:18 +08:00
2014-11-24 22:43:57 +08:00
2015-10-20 21:59:25 +08:00
2014-11-24 22:43:57 +08:00
2015-08-17 16:53:53 +08:00
2017-08-06 19:19:39 -07:00
2016-09-30 10:18:34 +02:00
2011-09-22 21:25:25 +10:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2013-08-14 20:42:03 +10:00
2014-11-26 20:06:30 +08:00
2015-08-17 08:12:54 -06:00
2015-07-17 21:20:21 +08:00
2018-01-10 09:27:09 +01:00
2015-06-22 15:49:28 +08:00
2010-02-16 20:31:37 +08:00
2014-11-26 20:06:30 +08:00
2010-02-16 20:31:04 +08:00
2014-11-24 22:43:57 +08:00
2016-02-17 12:31:04 -08:00
2013-09-12 15:31:34 +10:00
2015-01-13 22:29:11 +11:00
2018-02-16 20:09:43 +01:00
2015-05-22 11:25:55 +08:00
2016-07-11 09:31:12 -07:00
2014-03-21 21:54:28 +08:00
2014-11-26 20:06:30 +08:00
2015-01-20 14:44:15 +11:00
2014-11-24 22:43:57 +08:00
2015-01-13 22:29:11 +11:00
2015-06-11 21:55:28 +08:00
2014-11-26 20:06:30 +08:00
2016-09-30 10:18:34 +02:00
2015-06-22 15:49:28 +08:00
2014-11-24 22:43:57 +08:00
2015-04-23 14:18:09 +08:00
2017-06-14 13:16:21 +02:00
2011-07-08 17:21:21 +08:00
2016-10-22 12:26:56 +02:00
2013-10-25 17:14:03 -04:00
2017-12-20 10:04:51 +01:00
2015-04-23 14:18:10 +08:00
2015-10-14 22:23:16 +08:00
2015-06-25 23:18:33 +08:00
2017-11-21 09:21:22 +01:00
2016-04-12 09:08:45 -07:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2017-03-18 19:09:56 +08:00
2018-01-02 20:33:19 +01:00
2014-11-24 22:43:57 +08:00
2015-05-18 12:20:18 +08:00
2013-12-09 20:09:12 +08:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2015-04-21 10:19:55 +08:00
2018-01-10 09:27:09 +01:00
2018-02-16 20:09:43 +01:00
2015-04-23 14:18:09 +08:00
2008-07-10 20:35:12 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2015-06-22 15:49:18 +08:00
2015-10-14 22:23:16 +08:00
2015-10-14 22:23:16 +08:00
2015-10-14 22:23:16 +08:00
2015-10-14 22:23:16 +08:00
2017-12-20 10:04:51 +01:00
2016-08-16 09:30:50 +02:00
2014-11-24 22:43:57 +08:00
2015-08-17 16:53:46 +08:00
2015-01-13 22:29:11 +11:00
2015-04-10 21:39:40 +08:00
2015-04-10 21:39:41 +08:00
2015-04-10 21:39:41 +08:00
2017-12-20 10:04:51 +01:00
2016-02-17 12:31:03 -08:00
2018-02-16 20:09:38 +01:00
2015-07-17 21:20:20 +08:00
2015-01-13 22:29:11 +11:00
2017-05-02 21:19:48 -07:00
2017-03-12 06:37:28 +01:00
2015-01-13 22:29:11 +11:00
2011-11-09 11:53:32 +08:00
2015-01-13 22:29:11 +11:00
2014-11-26 20:06:30 +08:00
2015-01-13 22:29:11 +11:00
2014-11-26 20:06:30 +08:00
2012-10-11 13:42:32 +11:00
2014-11-26 20:06:30 +08:00
2015-05-01 11:16:37 +08:00