diff options
author | Armin Kuster <akuster@mvista.com> | 2015-12-07 16:57:07 -0800 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2016-01-13 22:21:20 -0800 |
commit | ce9f78296101772655809036e21009acec78da24 (patch) | |
tree | c2298d44c5194c4e6f3d6836216993d165d31ca2 /meta/recipes-connectivity | |
parent | 4d9006b1217ee7e97108f36db19aebd93e1d9850 (diff) | |
download | openembedded-core-ce9f78296101772655809036e21009acec78da24.tar.gz openembedded-core-ce9f78296101772655809036e21009acec78da24.tar.bz2 openembedded-core-ce9f78296101772655809036e21009acec78da24.zip |
openssl: fix for CVE-2015-3194
Signed-off-by: Armin Kuster <akuster@mvista.com>
Diffstat (limited to 'meta/recipes-connectivity')
3 files changed, 113 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl/0001-Add-test-for-CVE-2015-3194.patch b/meta/recipes-connectivity/openssl/openssl/0001-Add-test-for-CVE-2015-3194.patch new file mode 100644 index 0000000000..39a2e5a94d --- /dev/null +++ b/meta/recipes-connectivity/openssl/openssl/0001-Add-test-for-CVE-2015-3194.patch @@ -0,0 +1,66 @@ +From 00456fded43eadd4bb94bf675ae4ea5d158a764f Mon Sep 17 00:00:00 2001 +From: "Dr. Stephen Henson" <steve@openssl.org> +Date: Wed, 4 Nov 2015 13:30:03 +0000 +Subject: [PATCH] Add test for CVE-2015-3194 + +Reviewed-by: Richard Levitte <levitte@openssl.org> + +Upstream-Status: Backport + +This patch was imported from +https://git.openssl.org/?p=openssl.git;a=commit;h=00456fded43eadd4bb94bf675ae4ea5d158a764f +Signed-off-by: Armin Kuster <akuster@mvista.com> + +--- + test/certs/pss1.pem | 21 +++++++++++++++++++++ + test/tx509 | 7 +++++++ + 2 files changed, 28 insertions(+) + create mode 100644 test/certs/pss1.pem + +diff --git a/test/certs/pss1.pem b/test/certs/pss1.pem +new file mode 100644 +index 0000000..29da71d +--- /dev/null ++++ b/test/certs/pss1.pem +@@ -0,0 +1,21 @@ ++-----BEGI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++DzBddC/66YTa3r7KkVUfW7yqRQfELiGKdcm+bjlTEMsvS+EhHup9CzbpoCx2Fx9p ++NPtFY3yEObQhmL1JyoCRWqBE75GzFPbRaiux5UpEkns+i3trkGssZzsOuVqHNTNZ ++lC9+9hPHIoc9UMmAQNo1vGIW3NWVoeGbaJ8= ++-----END CERTIFICATE----- +diff --git a/test/tx509 b/test/tx509 +index 0ce3b52..77f5cac 100644 +--- a/test/tx509 ++++ b/test/tx509 +@@ -74,5 +74,12 @@ if [ $? != 0 ]; then exit 1; fi + cmp x509-f.p x509-ff.p3 + if [ $? != 0 ]; then exit 1; fi + ++echo "Parsing test certificates" ++ ++$cmd -in certs/pss1.pem -text -noout >/dev/null ++if [ $? != 0 ]; then exit 1; fi ++ ++echo OK ++ + /bin/rm -f x509-f.* x509-ff.* x509-fff.* + exit 0 +-- +2.3.5 + diff --git a/meta/recipes-connectivity/openssl/openssl/CVE-2015-3194-1-Add-PSS-parameter-check.patch b/meta/recipes-connectivity/openssl/openssl/CVE-2015-3194-1-Add-PSS-parameter-check.patch new file mode 100644 index 0000000000..13d48913b3 --- /dev/null +++ b/meta/recipes-connectivity/openssl/openssl/CVE-2015-3194-1-Add-PSS-parameter-check.patch @@ -0,0 +1,45 @@ +From c394a488942387246653833359a5c94b5832674e Mon Sep 17 00:00:00 2001 +From: "Dr. Stephen Henson" <steve@openssl.org> +Date: Fri, 2 Oct 2015 12:35:19 +0100 +Subject: [PATCH] Add PSS parameter check. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Avoid seg fault by checking mgf1 parameter is not NULL. This can be +triggered during certificate verification so could be a DoS attack +against a client or a server enabling client authentication. + +Thanks to Loïc Jonas Etienne (Qnective AG) for discovering this bug. + +CVE-2015-3194 + +Reviewed-by: Richard Levitte <levitte@openssl.org> + +Upstream-Status: Backport + +This patch was imported from +https://git.openssl.org/?p=openssl.git;a=commit;h=c394a488942387246653833359a5c94b5832674e + +Signed-off-by: Armin Kuster <akuster@mvista.com> + +--- + crypto/rsa/rsa_ameth.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/crypto/rsa/rsa_ameth.c b/crypto/rsa/rsa_ameth.c +index ca3922e..4e06218 100644 +--- a/crypto/rsa/rsa_ameth.c ++++ b/crypto/rsa/rsa_ameth.c +@@ -268,7 +268,7 @@ static X509_ALGOR *rsa_mgf1_decode(X509_ALGOR *alg) + { + const unsigned char *p; + int plen; +- if (alg == NULL) ++ if (alg == NULL || alg->parameter == NULL) + return NULL; + if (OBJ_obj2nid(alg->algorithm) != NID_mgf1) + return NULL; +-- +2.3.5 + diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.2d.bb b/meta/recipes-connectivity/openssl/openssl_1.0.2d.bb index b5ec133016..317de8d1b8 100644 --- a/meta/recipes-connectivity/openssl/openssl_1.0.2d.bb +++ b/meta/recipes-connectivity/openssl/openssl_1.0.2d.bb @@ -38,6 +38,8 @@ SRC_URI += "file://configure-targets.patch \ file://openssl-1.0.2a-x32-asm.patch \ file://ptest_makefile_deps.patch \ file://CVE-2015-3193-bn-asm-x86_64-mont5.pl-fix-carry-propagating-bug-CVE.patch \ + file://CVE-2015-3194-1-Add-PSS-parameter-check.patch \ + file://0001-Add-test-for-CVE-2015-3194.patch \ " SRC_URI[md5sum] = "38dd619b2e77cbac69b99f52a053d25a" |