diff options
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl/CVE-2015-3194-Add-PSS-parameter-check.patch')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl/CVE-2015-3194-Add-PSS-parameter-check.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl/CVE-2015-3194-Add-PSS-parameter-check.patch b/meta/recipes-connectivity/openssl/openssl/CVE-2015-3194-Add-PSS-parameter-check.patch new file mode 100644 index 0000000000..a6697caa88 --- /dev/null +++ b/meta/recipes-connectivity/openssl/openssl/CVE-2015-3194-Add-PSS-parameter-check.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From d8541d7e9e63bf5f343af24644046c8d96498c17 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Dr. Stephen Henson" <steve@openssl.org> | ||
3 | Date: Fri, 2 Oct 2015 13:10:29 +0100 | ||
4 | Subject:Add PSS parameter check. | ||
5 | |||
6 | Avoid seg fault by checking mgf1 parameter is not NULL. This can be | ||
7 | triggered during certificate verification so could be a DoS attack | ||
8 | against a client or a server enabling client authentication. | ||
9 | |||
10 | Thanks to Loïc Jonas Etienne (Qnective AG) for discovering this bug. | ||
11 | |||
12 | CVE-2015-3194 | ||
13 | |||
14 | Upstream-Status: Backport | ||
15 | |||
16 | Reviewed-by: Matt Caswell <matt@openssl.org> | ||
17 | Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com> | ||
18 | --- | ||
19 | crypto/rsa/rsa_ameth.c | 2 +- | ||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/crypto/rsa/rsa_ameth.c b/crypto/rsa/rsa_ameth.c | ||
23 | index 93e071d..c7f1148 100644 | ||
24 | --- a/crypto/rsa/rsa_ameth.c | ||
25 | +++ b/crypto/rsa/rsa_ameth.c | ||
26 | @@ -279,7 +279,7 @@ static RSA_PSS_PARAMS *rsa_pss_decode(const X509_ALGOR *alg, | ||
27 | if (pss->maskGenAlgorithm) { | ||
28 | ASN1_TYPE *param = pss->maskGenAlgorithm->parameter; | ||
29 | if (OBJ_obj2nid(pss->maskGenAlgorithm->algorithm) == NID_mgf1 | ||
30 | - && param->type == V_ASN1_SEQUENCE) { | ||
31 | + && param && param->type == V_ASN1_SEQUENCE) { | ||
32 | p = param->value.sequence->data; | ||
33 | plen = param->value.sequence->length; | ||
34 | *pmaskHash = d2i_X509_ALGOR(NULL, &p, plen); | ||
35 | -- | ||
36 | 1.9.1 | ||
37 | |||