diff options
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl-1.0.1e/openssl-fix-CVE-2014-3567.patch')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl-1.0.1e/openssl-fix-CVE-2014-3567.patch | 32 |
1 files changed, 32 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 @@ | |||
1 | From 748270554824d2a51d1718f52a8d3ab34116bbfb Mon Sep 17 00:00:00 2001 | ||
2 | From: "Dr. Stephen Henson" <steve@openssl.org> | ||
3 | Date: Wed, 15 Oct 2014 01:53:55 +0100 | ||
4 | Subject: [PATCH] Fix for session tickets memory leak. | ||
5 | |||
6 | CVE-2014-3567 | ||
7 | |||
8 | Reviewed-by: Rich Salz <rsalz@openssl.org> | ||
9 | Reviewed-by: Matt Caswell <matt@openssl.org> | ||
10 | Signed-off-by: Catalin Popeanga <catalin.popeanga@enea.com> | ||
11 | --- | ||
12 | ssl/t1_lib.c | 3 +++ | ||
13 | 1 file changed, 3 insertions(+) | ||
14 | |||
15 | diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c | ||
16 | index 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 | -- | ||
31 | 1.7.9.5 | ||
32 | |||