Browse Source

Fix CVE-2014-3587

Christoph Biedl 11 years ago
parent
commit
b95c2c0fbf
2 changed files with 25 additions and 0 deletions
  1. 24 0
      debian/patches/CVE-2014-3587.patch
  2. 1 0
      debian/patches/series

+ 24 - 0
debian/patches/CVE-2014-3587.patch

@@ -0,0 +1,24 @@
+Subject: Integer overflow in the cdf_read_property_info function allows remote attackers to cause a denial of service
+ID: CVE-2014-3587
+Author: Christos Zoulas <christos@zoulas.com>
+Date: Thu Aug 7 09:38:35 2014 +0000
+Origin:
+    commit 0641e56be1af003aa02c7c6b0184466540637233
+Debian-Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Last-Update: 2014-09-07
+
+    Prevent wrap around (Remi Collet at redhat)
+
+--- a/src/cdf.c
++++ b/src/cdf.c
+@@ -810,6 +810,10 @@
+ 		q = (const uint8_t *)(const void *)
+ 		    ((const char *)(const void *)p + ofs
+ 		    - 2 * sizeof(uint32_t));
++		if (q < p) {
++			DPRINTF(("Wrapped around %p < %p\n", q, p));
++			goto out;
++		}
+ 		if (q > e) {
+ 			DPRINTF(("Ran of the end %p > %p\n", q, e));
+ 			goto out;

+ 1 - 0
debian/patches/series

@@ -13,3 +13,4 @@ CVE-2014-3479.patch
 CVE-2014-3480.patch
 CVE-2014-3487.patch
 CVE-2014-3538.patch
+CVE-2014-3587.patch