From: Thomas Goirand Date: Fri, 21 Nov 2014 08:42:14 +0000 (+0800) Subject: * CVE-2014-7821: DoS through invalid DNS configuration. Applied upstream X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=30f32e33d8f7f139297fcd6903d099a5eab3b38c;p=openstack-build%2Fneutron-build.git * CVE-2014-7821: DoS through invalid DNS configuration. Applied upstream patch: Fix hostname regex pattern (Closes: #770431). Rewritten-From: 5df6a8f5ed4548b80cb92a040f4f823c3809f8ee --- diff --git a/trusty/debian/changelog b/trusty/debian/changelog index 552471fff..f8c2bffc3 100644 --- a/trusty/debian/changelog +++ b/trusty/debian/changelog @@ -1,3 +1,10 @@ +neutron (2014.2-4) experimental; urgency=medium + + * CVE-2014-7821: DoS through invalid DNS configuration. Applied upstream + patch: Fix hostname regex pattern (Closes: #770431). + + -- Thomas Goirand Fri, 21 Nov 2014 16:39:03 +0800 + neutron (2014.2-3) experimental; urgency=medium * Patches the ml2 plugin ini file to be like the install-guide by default. diff --git a/trusty/debian/patches/cve-2014-7821_DoS_through_invalid_DNS_configuration_juno.patch b/trusty/debian/patches/cve-2014-7821_DoS_through_invalid_DNS_configuration_juno.patch new file mode 100644 index 000000000..1c1dc75fa --- /dev/null +++ b/trusty/debian/patches/cve-2014-7821_DoS_through_invalid_DNS_configuration_juno.patch @@ -0,0 +1,40 @@ +Description: CVE-2014-7821: Fix hostname regex pattern + Current hostname_pattern regex complexity grows exponentially when given a + string of just digits, which can be exploited to cause neutron-server to + freeze. +Author: John Perkins +Origin: https://review.openstack.org/#/c/135623/ +X-Git-Url: https://review.openstack.org/gitweb?p=openstack%2Fneutron.git;a=commitdiff_plain;h=ad6fefcb4d4068b46b69284e277df6ab2ee30105 +Date: Mon, 6 Oct 2014 21:24:57 +0000 (-0500) +Change-Id: I886c6d883a9cb0acd9908495eec50bf0411d8ba8 +Bug-Ubuntu:: https://launchpad.net/bugs/1378450 +Bug-Debian: https://bugs.debian.org/770431 +Last-Update: 2014-11-21 + +diff --git a/neutron/api/v2/attributes.py b/neutron/api/v2/attributes.py +index 83471f9..21486db 100644 +--- a/neutron/api/v2/attributes.py ++++ b/neutron/api/v2/attributes.py +@@ -540,8 +540,8 @@ def convert_to_list(data): + return [data] + + +-HOSTNAME_PATTERN = ("(?=^.{1,254}$)(^(?:(?!\d+\.|-)[a-zA-Z0-9_\-]" +- "{1,63}(?