Code

patches: Added CVE-2010-4336.dpatch: Fix DoS in RRD file creation. collectd-4.10.1-2.1
authorSteffen Joeris <steffen.joeris@skolelinux.de>
Wed, 8 Dec 2010 07:38:15 +0000 (18:38 +1100)
committerSebastian Harl <sh@tokkee.org>
Thu, 5 Jan 2012 13:21:38 +0000 (14:21 +0100)
debian/changelog
debian/patches/00list
debian/patches/CVE-2010-4336.dpatch [new file with mode: 0644]

index b2ec1c27c97f3b761fb95d63c94ada9bd3f725d4..aa2feb497d072f14d7244a38cdff62521b20c107 100644 (file)
@@ -1,3 +1,12 @@
+collectd (4.10.1-2.1) unstable; urgency=high
+
+  * Non-maintainer upload by the security team
+  * Fix DoS in RRD file creation (Closes: #605092)
+    Fixes: CVE-2010-4336
+    Thanks to Florian Forster
+
+ -- Steffen Joeris <white@debian.org>  Wed, 08 Dec 2010 17:45:50 +1100
+
 collectd (4.10.1-2) unstable; urgency=medium
 
   * debian/rules:
index e7a35f8a0317ce3ff8d21dc05589b55f93c0bed5..87049dde8c13edce81ec8f55f737396e638915d1 100644 (file)
@@ -4,4 +4,4 @@ bts559801_plugin_find_fix.dpatch
 bts595756-notify_email-segfault.dpatch
 bts592623-curl_json-file.dpatch
 bts596128-reheap-fix.dpatch
-
+CVE-2010-4336.dpatch
diff --git a/debian/patches/CVE-2010-4336.dpatch b/debian/patches/CVE-2010-4336.dpatch
new file mode 100644 (file)
index 0000000..a40bdfd
--- /dev/null
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+##
+
+@DPATCH@
+--- ../old/collectd-4.10.1/src/utils_rrdcreate.c       2010-07-09 20:01:59.000000000 +1000
++++ collectd-4.10.1/src/utils_rrdcreate.c      2010-12-08 17:41:34.000000000 +1100
+@@ -398,10 +398,9 @@
+   memcpy (argv + ds_num, rra_def, rra_num * sizeof (char *));
+   argv[ds_num + rra_num] = NULL;
+-  assert (vl->time > 10);
+   status = srrd_create (filename,
+       (cfg->stepsize > 0) ? cfg->stepsize : vl->interval,
+-      vl->time - 10,
++      (vl->time > 10) ? (vl->time - 10) : vl->time,
+       argc, (const char **) argv);
+   free (argv);