diff options
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 | |||