summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYue Tao <Yue.Tao@windriver.com>2014-04-08 19:37:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-09 09:00:47 +0100
commitb27dba2efdfd8ab1506b6f29b800035a48395102 (patch)
treedd3b85daa9f976b5927607ad5ec12bf89c8d0701
parent54c4e10a41ac2b637f46a4d05a6f7c5e4542b3a8 (diff)
downloadpoky-b27dba2efdfd8ab1506b6f29b800035a48395102.tar.gz
Security Advisory - openssl - CVE-2013-6449
The ssl_get_algorithm2 function in ssl/s3_lib.c in OpenSSL before 1.0.2 obtains a certain version number from an incorrect data structure, which allows remote attackers to cause a denial of service (daemon crash) via crafted traffic from a TLS 1.2 client. (From OE-Core master rev: 3e0ac7357a962e3ef6595d21ec4843b078a764dd) (From OE-Core rev: 0d3d2d7062a181e878435487c06e26c6547e492f) Signed-off-by: Yue Tao <Yue.Tao@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/openssl/openssl-1.0.1e/0001-Use-version-in-SSL_METHOD-not-SSL-structure.patch33
-rw-r--r--meta/recipes-connectivity/openssl/openssl_1.0.1e.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl-1.0.1e/0001-Use-version-in-SSL_METHOD-not-SSL-structure.patch b/meta/recipes-connectivity/openssl/openssl-1.0.1e/0001-Use-version-in-SSL_METHOD-not-SSL-structure.patch
new file mode 100644
index 0000000000..e5a8ade936
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/openssl-1.0.1e/0001-Use-version-in-SSL_METHOD-not-SSL-structure.patch
@@ -0,0 +1,33 @@
1From ca989269a2876bae79393bd54c3e72d49975fc75 Mon Sep 17 00:00:00 2001
2From: "Dr. Stephen Henson" <steve@openssl.org>
3Date: Thu, 19 Dec 2013 14:37:39 +0000
4Subject: [PATCH] Use version in SSL_METHOD not SSL structure.
5
6Upstream-Status: Backport
7commit ca989269a2876bae79393bd54c3e72d49975fc75 upstream
8
9When deciding whether to use TLS 1.2 PRF and record hash algorithms
10use the version number in the corresponding SSL_METHOD structure
11instead of the SSL structure. The SSL structure version is sometimes
12inaccurate. Note: OpenSSL 1.0.2 and later effectively do this already.
13(CVE-2013-6449)
14---
15 ssl/s3_lib.c | 2 +-
16 1 files changed, 1 insertions(+), 1 deletions(-)
17
18diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
19index bf832bb..c4ef273 100644
20--- a/ssl/s3_lib.c
21+++ b/ssl/s3_lib.c
22@@ -4286,7 +4286,7 @@ need to go to SSL_ST_ACCEPT.
23 long ssl_get_algorithm2(SSL *s)
24 {
25 long alg2 = s->s3->tmp.new_cipher->algorithm2;
26- if (TLS1_get_version(s) >= TLS1_2_VERSION &&
27+ if (s->method->version == TLS1_2_VERSION &&
28 alg2 == (SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF))
29 return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_SHA256;
30 return alg2;
31--
321.7.5.4
33
diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb b/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb
index ec3846df2d..fa0a648cb1 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb
@@ -34,6 +34,7 @@ SRC_URI += "file://configure-targets.patch \
34 file://find.pl \ 34 file://find.pl \
35 file://0001-Fix-for-TLS-record-tampering-bug-CVE-2013-4353.patch \ 35 file://0001-Fix-for-TLS-record-tampering-bug-CVE-2013-4353.patch \
36 file://0001-Fix-DTLS-retransmission-from-previous-session.patch \ 36 file://0001-Fix-DTLS-retransmission-from-previous-session.patch \
37 file://0001-Use-version-in-SSL_METHOD-not-SSL-structure.patch \
37 " 38 "
38 39
39SRC_URI[md5sum] = "66bf6f10f060d561929de96f9dfe5b8c" 40SRC_URI[md5sum] = "66bf6f10f060d561929de96f9dfe5b8c"