Tianjia Zhang
21155620fb
crypto: sm2 - Fix crash caused by uninitialized context
...
In sm2_compute_z_digest() function, the newly allocated structure
mpi_ec_ctx is used, but forget to initialize it, which will cause
a crash when performing subsequent operations.
Fixes: e5221fa6a355 ("KEYS: asymmetric: Move sm2 code into x509_public_key")
Cc: stable@vger.kernel.org # v6.5
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-09-20 13:10:10 +08:00
..
2023-08-29 11:23:29 -07:00
2023-03-24 18:22:28 +08:00
2019-05-30 11:26:37 -07:00
2023-05-02 18:22:24 +08:00
2023-02-13 18:35:14 +08:00
2023-05-02 18:22:24 +08:00
2021-03-19 21:59:45 +11:00
2023-05-24 18:12:33 +08:00
2023-05-24 18:12:33 +08:00
2023-05-24 18:12:33 +08:00
2021-03-19 21:59:45 +11:00
2022-12-02 18:12:40 +08:00
2022-12-02 18:12:40 +08:00
2023-08-29 11:23:29 -07:00
2023-05-12 18:48:01 +08:00
2023-06-27 17:59:52 +08:00
2023-08-11 19:19:27 +08:00
2022-11-25 17:39:18 +08:00
2023-06-24 15:50:13 -07:00
2023-07-08 22:48:42 +10:00
2023-06-24 15:50:13 -07:00
2023-06-24 15:50:13 -07:00
2021-01-03 08:41:35 +11:00
2022-12-02 18:12:40 +08:00
2023-06-23 16:15:36 +08:00
2020-09-11 14:39:16 +10:00
2023-01-06 17:15:47 +08:00
2023-02-13 18:35:14 +08:00
2023-02-13 18:35:14 +08:00
2021-01-03 08:41:39 +11:00
2022-12-02 18:12:40 +08:00
2022-12-02 18:12:40 +08:00
2022-12-02 18:12:40 +08:00
2022-12-02 18:12:40 +08:00
2022-12-02 18:12:40 +08:00
2019-05-24 17:27:12 +02:00
2021-01-03 08:41:35 +11:00
2023-02-13 18:35:14 +08:00
2022-03-03 10:49:20 +12:00
2023-02-13 18:35:14 +08:00
2019-11-22 18:48:39 +08:00
2023-06-23 16:15:36 +08:00
2023-05-24 18:12:33 +08:00
2019-12-11 16:37:01 +08:00
2023-03-14 17:06:42 +08:00
2021-04-16 21:24:27 +10:00
2020-08-21 14:45:25 +10:00
2022-03-07 12:48:35 -07:00
2013-09-12 15:31:34 +10:00
2020-08-21 14:45:25 +10:00
2023-04-20 18:20:04 +08:00
2023-08-18 17:01:11 +08:00
2019-07-08 20:57:08 -07:00
2019-12-20 14:58:35 +08:00
2023-03-14 17:06:42 +08:00
2021-01-03 08:41:35 +11:00
2023-02-13 18:35:14 +08:00
2022-09-24 16:14:43 +08:00
2020-08-07 11:33:22 -07:00
2022-12-02 18:12:40 +08:00
2022-03-03 10:47:50 +12:00
2023-02-13 18:35:14 +08:00
2023-04-06 16:18:53 +08:00
2021-01-03 08:41:35 +11:00
2021-03-26 19:55:55 +11:00
2023-02-14 13:39:33 +08:00
2021-03-13 00:04:03 +11:00
2022-09-24 16:14:43 +08:00
2022-09-24 16:14:43 +08:00
2021-03-26 19:41:58 +11:00
2020-07-16 21:49:07 +10:00
2021-10-29 21:04:03 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:02 +08:00
2022-04-29 13:44:58 +08:00
2023-02-13 18:35:14 +08:00
2022-12-02 18:12:40 +08:00
2023-03-17 11:16:44 +08:00
2023-02-13 18:35:14 +08:00
2020-07-16 21:49:08 +10:00
2020-01-09 11:30:53 +08:00
2020-02-18 07:35:49 -05:00
2023-04-20 18:20:04 +08:00
2023-02-13 18:35:14 +08:00
2023-06-16 20:30:35 +08:00
2023-06-27 15:40:24 +08:00
2023-05-12 18:48:01 +08:00
2023-05-12 18:48:01 +08:00
2023-08-11 19:19:52 +08:00
2023-05-12 18:48:01 +08:00
2023-06-23 16:15:36 +08:00
2022-11-25 17:39:18 +08:00
2021-04-02 18:28:13 +11:00
2022-12-02 18:12:40 +08:00
2023-05-02 18:22:24 +08:00
2023-07-14 18:23:14 +10:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2023-06-23 16:15:36 +08:00
2019-06-13 14:31:39 +08:00
2020-02-28 08:43:21 +08:00
2021-02-10 17:55:55 +11:00
2020-01-16 15:18:12 +08:00
2021-01-03 08:41:35 +11:00
2021-01-03 08:41:35 +11:00
2023-02-13 18:35:14 +08:00
2020-01-16 15:18:12 +08:00
2022-06-10 16:40:17 +08:00
2023-02-14 13:39:33 +08:00
2021-01-29 16:07:04 +11:00
2019-07-08 20:57:08 -07:00
2023-05-02 18:22:24 +08:00
2019-05-30 11:26:32 -07:00
2023-02-13 18:35:14 +08:00
2023-06-23 16:15:36 +08:00
2016-07-05 23:05:26 +08:00
2015-10-14 22:23:16 +08:00
2019-05-30 11:26:32 -07:00
2023-05-02 18:22:24 +08:00
2022-12-02 18:12:40 +08:00
2023-02-13 18:35:14 +08:00
2022-12-02 18:12:40 +08:00
2020-11-20 14:45:33 +11:00
2020-07-23 17:34:20 +10:00
2021-12-31 18:10:54 +11:00
2021-08-27 16:30:19 +08:00
2023-05-24 18:12:33 +08:00
2023-07-20 22:15:12 +12:00
2020-07-16 21:49:08 +10:00
2023-05-02 18:22:24 +08:00
2023-09-20 13:10:10 +08:00
2020-09-25 17:48:54 +10:00
2022-01-28 16:51:11 +11:00
2022-04-08 16:11:48 +08:00
2022-12-02 18:12:40 +08:00
2022-04-08 16:12:46 +08:00
2019-08-15 21:52:14 +10:00
2023-04-14 18:59:34 +08:00
2023-01-20 18:29:31 +08:00
2022-12-02 18:12:40 +08:00
2023-04-20 18:20:04 +08:00
2023-04-20 18:20:04 +08:00
2022-12-02 18:12:40 +08:00
2022-12-02 18:12:40 +08:00
2021-01-03 08:41:35 +11:00
2022-12-30 22:56:27 +08:00
2021-01-03 08:41:35 +11:00
2022-06-10 16:40:16 +08:00
2021-02-21 17:23:56 -08:00
2023-07-14 18:23:14 +10:00
2020-01-09 11:30:53 +08:00
2021-11-08 16:55:21 -08:00