diff options
author | Sona Sarmadi <sona.sarmadi@enea.com> | 2015-03-06 07:26:43 +0100 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-07-06 20:19:39 +0200 |
commit | 13e4abbce92f9b7630563a0b7f9d8be6db3919c9 (patch) | |
tree | aee692962e07fd1e47006afe385085d4ef5c7679 /meta/recipes-connectivity/openssl/openssl/0007-Follow-on-fix-for-CVE-2014-3571.patch | |
parent | 72bec03e72908b002355a3dba39c9b9caec2b473 (diff) | |
download | poky-13e4abbce92f9b7630563a0b7f9d8be6db3919c9.tar.gz |
openssl: multiple CVEs fixes
This patch addresses following CVEs:
CVE-2014-3569
CVE-2015-0204
CVE-2015-0205
CVE-2014-8275
CVE-2014-3571
CVE-2014-3570
Additional two patches (0004 & 0005) which were needed for CVE-2014-8275
have been backported from 1.0.1 stable (OpenSSL_1_0_1-stable) branch.
Reference
https://www.openssl.org/news/secadv_20150108.txt
Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl/0007-Follow-on-fix-for-CVE-2014-3571.patch')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl/0007-Follow-on-fix-for-CVE-2014-3571.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl/0007-Follow-on-fix-for-CVE-2014-3571.patch b/meta/recipes-connectivity/openssl/openssl/0007-Follow-on-fix-for-CVE-2014-3571.patch new file mode 100644 index 0000000000..5eef0f362c --- /dev/null +++ b/meta/recipes-connectivity/openssl/openssl/0007-Follow-on-fix-for-CVE-2014-3571.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 45fe66b8ba026186aa5d8ef1e0e6010ea74d5c0b Mon Sep 17 00:00:00 2001 | ||
2 | From: Matt Caswell <matt@openssl.org> | ||
3 | Date: Sat, 3 Jan 2015 00:54:35 +0000 | ||
4 | Subject: [PATCH] Follow on from CVE-2014-3571. This fixes the code that was | ||
5 | the original source of the crash due to p being NULL. Steve's fix prevents | ||
6 | this situation from occuring - however this is by no means obvious by looking | ||
7 | at the code for dtls1_get_record. This fix just makes things look a bit more | ||
8 | sane. | ||
9 | |||
10 | Reviewed-by: Dr Steve Henson <steve@openssl.org> | ||
11 | |||
12 | Upstream-Status: Backport | ||
13 | |||
14 | Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com> | ||
15 | --- | ||
16 | ssl/d1_pkt.c | 3 ++- | ||
17 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c | ||
20 | index d717260..73ce488 100644 | ||
21 | --- a/ssl/d1_pkt.c | ||
22 | +++ b/ssl/d1_pkt.c | ||
23 | @@ -676,7 +676,8 @@ again: | ||
24 | * would be dropped unnecessarily. | ||
25 | */ | ||
26 | if (!(s->d1->listen && rr->type == SSL3_RT_HANDSHAKE && | ||
27 | - *p == SSL3_MT_CLIENT_HELLO) && | ||
28 | + s->packet_length > DTLS1_RT_HEADER_LENGTH && | ||
29 | + s->packet[DTLS1_RT_HEADER_LENGTH] == SSL3_MT_CLIENT_HELLO) && | ||
30 | !dtls1_record_replay_check(s, bitmap)) | ||
31 | { | ||
32 | rr->length = 0; | ||
33 | -- | ||
34 | 1.9.1 | ||
35 | |||