diff options
author | Kai Kang <kai.kang@windriver.com> | 2018-11-02 16:02:13 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-07 23:08:54 +0000 |
commit | d5fe5c654b7d36dcbea03231320cb6edbb6788c0 (patch) | |
tree | aa8253e0c986fbcb91618d14b0b29056720b61e6 /meta/recipes-connectivity/openssl/openssl10 | |
parent | 05c548c5f41cb7aa74984a0697b8ee8e0dceeb20 (diff) | |
download | poky-d5fe5c654b7d36dcbea03231320cb6edbb6788c0.tar.gz |
openssl: fix CVE-2018-0734 for both 1.0.2p and 1.1.1
Backport patches to fix CVE-2018-0734 for both openssl 1.0.2p and 1.1.1
versions.
(From OE-Core rev: 9d5c6a87eb72a8b8b8d417126a831565982ca9a6)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl10')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl10/0001-fix-CVE-2018-0734.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl10/0001-fix-CVE-2018-0734.patch b/meta/recipes-connectivity/openssl/openssl10/0001-fix-CVE-2018-0734.patch new file mode 100644 index 0000000000..b9865a69b5 --- /dev/null +++ b/meta/recipes-connectivity/openssl/openssl10/0001-fix-CVE-2018-0734.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | CVE: CVE-2018-0734 | ||
2 | |||
3 | Upstream-Status: Backport | ||
4 | |||
5 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
6 | |||
7 | From 43e6a58d4991a451daf4891ff05a48735df871ac Mon Sep 17 00:00:00 2001 | ||
8 | From: Pauli <paul.dale@oracle.com> | ||
9 | Date: Mon, 29 Oct 2018 08:24:22 +1000 | ||
10 | Subject: [PATCH] Merge DSA reallocation timing fix CVE-2018-0734. | ||
11 | |||
12 | Reviewed-by: Richard Levitte <levitte@openssl.org> | ||
13 | (Merged from https://github.com/openssl/openssl/pull/7513) | ||
14 | --- | ||
15 | crypto/dsa/dsa_ossl.c | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/crypto/dsa/dsa_ossl.c b/crypto/dsa/dsa_ossl.c | ||
19 | index 2dcfedeeee..100e269268 100644 | ||
20 | --- a/crypto/dsa/dsa_ossl.c | ||
21 | +++ b/crypto/dsa/dsa_ossl.c | ||
22 | @@ -279,7 +279,7 @@ static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, | ||
23 | goto err; | ||
24 | |||
25 | /* Preallocate space */ | ||
26 | - q_bits = BN_num_bits(dsa->q); | ||
27 | + q_bits = BN_num_bits(dsa->q) + sizeof(dsa->q->d[0]) * 16; | ||
28 | if (!BN_set_bit(&k, q_bits) | ||
29 | || !BN_set_bit(&l, q_bits) | ||
30 | || !BN_set_bit(&m, q_bits)) | ||
31 | -- | ||
32 | 2.17.0 | ||
33 | |||