diff options
author | Armin Kuster <akuster808@gmail.com> | 2016-10-02 17:11:14 -0700 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2016-12-06 05:19:39 -0800 |
commit | c0a682cfeedfc8976324a3bba863f1d9b0127d76 (patch) | |
tree | b754c97d1e3f52e4096484de274d73161f432a96 /meta/recipes-support/gnutls/gnutls/CVE-2016-7444.patch | |
parent | d39e7ca717b67ad9f2f78b83d90d91e410e52965 (diff) | |
download | openembedded-core-contrib-c0a682cfeedfc8976324a3bba863f1d9b0127d76.tar.gz |
gnutils: Security fix CVE-2016-7444
affects gnutls < 3.3.24
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta/recipes-support/gnutls/gnutls/CVE-2016-7444.patch')
-rw-r--r-- | meta/recipes-support/gnutls/gnutls/CVE-2016-7444.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-support/gnutls/gnutls/CVE-2016-7444.patch b/meta/recipes-support/gnutls/gnutls/CVE-2016-7444.patch new file mode 100644 index 0000000000..2bb0626d99 --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/CVE-2016-7444.patch @@ -0,0 +1,31 @@ +From 964632f37dfdfb914ebc5e49db4fa29af35b1de9 Mon Sep 17 00:00:00 2001 +From: Nikos Mavrogiannopoulos <nmav@gnutls.org> +Date: Sat, 27 Aug 2016 17:00:22 +0200 +Subject: [PATCH] ocsp: corrected the comparison of the serial size in OCSP + response + +Previously the OCSP certificate check wouldn't verify the serial length +and could succeed in cases it shouldn't. + +Reported by Stefan Buehler. + +Upstream-Status: Backport +CVE: CVE-2016-7444 +Signed-off-by: Armin Kuster <akuster@mvista.com> + +--- + lib/x509/ocsp.c | 1 + + 1 file changed, 1 insertion(+) + +Index: gnutls-3.3.17.1/lib/x509/ocsp.c +=================================================================== +--- gnutls-3.3.17.1.orig/lib/x509/ocsp.c ++++ gnutls-3.3.17.1/lib/x509/ocsp.c +@@ -1257,6 +1257,7 @@ gnutls_ocsp_resp_check_crt(gnutls_ocsp_r + gnutls_assert(); + goto cleanup; + } ++ cserial.size = t; + + if (rserial.size != cserial.size + || memcmp(cserial.data, rserial.data, rserial.size) != 0) { |