summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSona Sarmadi <sona.sarmadi@enea.com>2014-11-06 07:14:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-06 11:42:31 +0000
commit10b5ec0ec8df33ec3d48e0a650e596ec39250081 (patch)
tree709bdf0efb46a74fde0d507c270ff687d814b648
parentf4e20ca712587b9b85119f8355ac2b63ed148c81 (diff)
downloadpoky-10b5ec0ec8df33ec3d48e0a650e596ec39250081.tar.gz
openssl: Fix for CVE-2014-3567
Fix for session tickets memory leak. This patch is a backport from OpenSSL_1.0.1j. (From OE-Core rev: 420a8dc7b84b03a9c0a56280132e15b6c9a8b4df) Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/openssl/openssl-1.0.1e/openssl-fix-CVE-2014-3567.patch32
-rw-r--r--meta/recipes-connectivity/openssl/openssl_1.0.1e.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl-1.0.1e/openssl-fix-CVE-2014-3567.patch b/meta/recipes-connectivity/openssl/openssl-1.0.1e/openssl-fix-CVE-2014-3567.patch
new file mode 100644
index 0000000000..61f821b54d
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/openssl-1.0.1e/openssl-fix-CVE-2014-3567.patch
@@ -0,0 +1,32 @@
1From 748270554824d2a51d1718f52a8d3ab34116bbfb Mon Sep 17 00:00:00 2001
2From: "Dr. Stephen Henson" <steve@openssl.org>
3Date: Wed, 15 Oct 2014 01:53:55 +0100
4Subject: [PATCH] Fix for session tickets memory leak.
5
6CVE-2014-3567
7
8Reviewed-by: Rich Salz <rsalz@openssl.org>
9Reviewed-by: Matt Caswell <matt@openssl.org>
10Signed-off-by: Catalin Popeanga <catalin.popeanga@enea.com>
11---
12 ssl/t1_lib.c | 3 +++
13 1 file changed, 3 insertions(+)
14
15diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
16index 879467c..77fe232 100644
17--- a/ssl/t1_lib.c
18+++ b/ssl/t1_lib.c
19@@ -3380,7 +3380,10 @@ static int tls_decrypt_ticket(SSL *s, const unsigned char *etick, int eticklen,
20 HMAC_Final(&hctx, tick_hmac, NULL);
21 HMAC_CTX_cleanup(&hctx);
22 if (CRYPTO_memcmp(tick_hmac, etick + eticklen, mlen))
23+ {
24+ EVP_CIPHER_CTX_cleanup(&ctx);
25 return 2;
26+ }
27 /* Attempt to decrypt session data */
28 /* Move p after IV to start of encrypted ticket, update length */
29 p = etick + 16 + EVP_CIPHER_CTX_iv_length(&ctx);
30--
311.7.9.5
32
diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb b/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb
index 82828226fa..6af4ee9503 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb
@@ -46,6 +46,7 @@ SRC_URI += "file://configure-targets.patch \
46 file://openssl-CVE-2010-5298.patch \ 46 file://openssl-CVE-2010-5298.patch \
47 file://openssl-fix-CVE-2014-3566.patch \ 47 file://openssl-fix-CVE-2014-3566.patch \
48 file://openssl-fix-CVE-2014-3513.patch \ 48 file://openssl-fix-CVE-2014-3513.patch \
49 file://openssl-fix-CVE-2014-3567.patch \
49 " 50 "
50 51
51SRC_URI[md5sum] = "66bf6f10f060d561929de96f9dfe5b8c" 52SRC_URI[md5sum] = "66bf6f10f060d561929de96f9dfe5b8c"