[OE-core] [PATCH] OpenSSL: session tickets memory leak, CVE-2014-3567
Sona Sarmadi
sona.sarmadi at enea.com
Thu Oct 16 11:12:42 UTC 2014
References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-3567
https://www.openssl.org/news/secadv_20141015.txt
Signed-off-by: Sona Sarmadi <sona.sarmadi at enea.com>
---
.../openssl/openssl/openssl-CVE-2014-3567.patch | 34 ++++++++++++++++++++++
.../recipes-connectivity/openssl/openssl_1.0.1g.bb | 1 +
2 files changed, 35 insertions(+)
create mode 100644 meta/recipes-connectivity/openssl/openssl/openssl-CVE-2014-3567.patch
diff --git a/meta/recipes-connectivity/openssl/openssl/openssl-CVE-2014-3567.patch b/meta/recipes-connectivity/openssl/openssl/openssl-CVE-2014-3567.patch
new file mode 100644
index 0000000..7cbabe7
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/openssl/openssl-CVE-2014-3567.patch
@@ -0,0 +1,34 @@
+From 748270554824d2a51d1718f52a8d3ab34116bbfb Mon Sep 17 00:00:00 2001
+From: "Dr. Stephen Henson" <steve at openssl.org>
+Date: Wed, 15 Oct 2014 01:53:55 +0100
+Subject: [PATCH] Fix for session tickets memory leak.
+
+CVE-2014-3567
+
+Upstream-Status: Backport
+
+Reviewed-by: Rich Salz <rsalz at openssl.org>
+Reviewed-by: Matt Caswell <matt at openssl.org>
+Signed-off-by: Sona Sarmadi <sona.sarmadi at enea.com>
+---
+ ssl/t1_lib.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
+index 879467c..77fe232 100644
+--- a/ssl/t1_lib.c
++++ b/ssl/t1_lib.c
+@@ -3380,7 +3380,10 @@ static int tls_decrypt_ticket(SSL *s, const unsigned char *etick, int eticklen,
+ HMAC_Final(&hctx, tick_hmac, NULL);
+ HMAC_CTX_cleanup(&hctx);
+ if (CRYPTO_memcmp(tick_hmac, etick + eticklen, mlen))
++ {
++ EVP_CIPHER_CTX_cleanup(&ctx);
+ return 2;
++ }
+ /* Attempt to decrypt session data */
+ /* Move p after IV to start of encrypted ticket, update length */
+ p = etick + 16 + EVP_CIPHER_CTX_iv_length(&ctx);
+--
+1.9.1
+
diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.1g.bb b/meta/recipes-connectivity/openssl/openssl_1.0.1g.bb
index cc16875..1cbee92 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.0.1g.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.0.1g.bb
@@ -42,6 +42,7 @@ SRC_URI += "file://configure-targets.patch \
file://openssl-CVE-2010-5298.patch \
file://openssl-CVE-2014-3566.patch \
file://openssl-CVE-2014-3513.patch \
+ file://openssl-CVE-2014-3567.patch \
"
SRC_URI[md5sum] = "de62b43dfcd858e66a74bee1c834e959"
--
1.9.1
More information about the Openembedded-core
mailing list