summaryrefslogtreecommitdiff
path: root/meta/recipes-support/gnutls/gnutls/eliminated-double-free-CVE-2015-3308.patch
diff options
context:
space:
mode:
authorSona Sarmadi <sona.sarmadi@enea.com>2015-09-03 13:53:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-19 11:52:50 +0100
commit75b25e7d463ed1af0fd9b3dd56e407e6e72b0f6a (patch)
treefc04f7fc0107e39cb3d29ac8d741f57c1b61d2c8 /meta/recipes-support/gnutls/gnutls/eliminated-double-free-CVE-2015-3308.patch
parentb708151b798013119cbc651cd11a534c0cb816af (diff)
downloadopenembedded-core-75b25e7d463ed1af0fd9b3dd56e407e6e72b0f6a.tar.gz
openembedded-core-75b25e7d463ed1af0fd9b3dd56e407e6e72b0f6a.tar.bz2
openembedded-core-75b25e7d463ed1af0fd9b3dd56e407e6e72b0f6a.zip
gnutls: CVE-2015-3308
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta/recipes-support/gnutls/gnutls/eliminated-double-free-CVE-2015-3308.patch')
-rw-r--r--meta/recipes-support/gnutls/gnutls/eliminated-double-free-CVE-2015-3308.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-support/gnutls/gnutls/eliminated-double-free-CVE-2015-3308.patch b/meta/recipes-support/gnutls/gnutls/eliminated-double-free-CVE-2015-3308.patch
new file mode 100644
index 0000000000..d759b61297
--- /dev/null
+++ b/meta/recipes-support/gnutls/gnutls/eliminated-double-free-CVE-2015-3308.patch
@@ -0,0 +1,33 @@
+From d6972be33264ecc49a86cd0958209cd7363af1e9 Mon Sep 17 00:00:00 2001
+From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
+Date: Mon, 23 Mar 2015 22:55:29 +0100
+Subject: [PATCH] eliminated double-free in the parsing of dist points
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Reported by Robert ?wi?cki.
+
+Fixes CVE-2015-3308
+Upstream-Status: Backport
+
+Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
+---
+ lib/x509/x509_ext.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/lib/x509/x509_ext.c b/lib/x509/x509_ext.c
+index c8d5867..6f09438 100644
+--- a/lib/x509/x509_ext.c
++++ b/lib/x509/x509_ext.c
+@@ -2360,7 +2360,6 @@ int gnutls_x509_ext_import_crl_dist_points(const gnutls_datum_t * ext,
+
+ if (ret < 0 && ret != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) {
+ gnutls_assert();
+- gnutls_free(san.data);
+ goto cleanup;
+ }
+
+--
+1.9.1
+