diff options
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl/0001-Fix-CVE-2014-3470.patch')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl/0001-Fix-CVE-2014-3470.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl/0001-Fix-CVE-2014-3470.patch b/meta/recipes-connectivity/openssl/openssl/0001-Fix-CVE-2014-3470.patch new file mode 100644 index 0000000000..7764658292 --- /dev/null +++ b/meta/recipes-connectivity/openssl/openssl/0001-Fix-CVE-2014-3470.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 8011cd56e39a433b1837465259a9bd24a38727fb Mon Sep 17 00:00:00 2001 | ||
2 | From: "Dr. Stephen Henson" <steve@openssl.org> | ||
3 | Date: Thu, 29 May 2014 15:00:05 +0100 | ||
4 | Subject: [PATCH] Fix CVE-2014-3470 | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | |||
8 | Check session_cert is not NULL before dereferencing it. | ||
9 | |||
10 | Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com> | ||
11 | --- | ||
12 | ssl/s3_clnt.c | 7 +++++++ | ||
13 | 1 file changed, 7 insertions(+) | ||
14 | |||
15 | diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c | ||
16 | index c99a4c4..0457af8 100644 | ||
17 | --- a/ssl/s3_clnt.c | ||
18 | +++ b/ssl/s3_clnt.c | ||
19 | @@ -2512,6 +2512,13 @@ int ssl3_send_client_key_exchange(SSL *s) | ||
20 | int ecdh_clnt_cert = 0; | ||
21 | int field_size = 0; | ||
22 | |||
23 | + if (s->session->sess_cert == NULL) | ||
24 | + { | ||
25 | + ssl3_send_alert(s,SSL3_AL_FATAL,SSL_AD_UNEXPECTED_MESSAGE); | ||
26 | + SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,SSL_R_UNEXPECTED_MESSAGE); | ||
27 | + goto err; | ||
28 | + } | ||
29 | + | ||
30 | /* Did we send out the client's | ||
31 | * ECDH share for use in premaster | ||
32 | * computation as part of client certificate? | ||
33 | -- | ||
34 | 1.7.10.4 | ||
35 | |||