Bug 1232284 (CVE-2015-3221)

Summary: CVE-2015-3221 openstack-neutron: L2 agent DoS through incorrect allowed address pairs
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abaron, aortega, apevec, ayoung, chrisw, dallan, gkotton, gmollett, lhh, lpeer, markmc, nyechiel, rbryant, sclewis, security-response-team, slong, tdecacqu, yeylon
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A Denial-of-Service flaw was found in the OpenStack Networking (neutron) L2 agent when using the iptables firewall driver. By submitting an address pair that is rejected as invalid by the ipset tool (with zero prefix size), an authenticated attacker can cause the L2 agent to crash.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-26 04:43:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1233450, 1234263, 1240145, 1240146    
Bug Blocks: 1232286    
Attachments:
Description Flags
cve-2015-3221-master-liberty.patch
none
cve-2015-3221-stable-juno.patch
none
cve-2015-3221-stable-kilo.patch none

Description Vasyl Kaigorodov 2015-06-16 12:27:30 UTC
Title: Neutron L2 agent DoS through incorrect allowed address pairs
Reporter: Darragh O'Reilly (HP)
Products: Neutron
Affects: 2014.2 versions through 2014.2.3 and 2015.1.0 version

Description:
Darragh O'Reilly from HP reported a vulnerability in Neutron. By adding
an address pair which is rejected as invalid by the ipset tool, an
authenticated user may crash the Neutron L2 agent resulting in a denial
of service attack. Neutron setups using the IPTables firewall driver are
affected.

Acknowledgements:

Red Hat would like to thank the OpenStack upstream for reporting this issue. Upstream acknowledges Darragh O'Reilly (HP) as the original reporter.

Comment 1 Vasyl Kaigorodov 2015-06-18 15:41:59 UTC
Created attachment 1040537 [details]
cve-2015-3221-master-liberty.patch

Comment 2 Vasyl Kaigorodov 2015-06-18 15:42:03 UTC
Created attachment 1040538 [details]
cve-2015-3221-stable-juno.patch

Comment 3 Vasyl Kaigorodov 2015-06-18 15:42:06 UTC
Created attachment 1040539 [details]
cve-2015-3221-stable-kilo.patch

Comment 6 Tristan Cacqueray 2015-06-19 20:10:57 UTC
Some more notes, the kilo and liberty patch are self healing, if a zero prefixed address pair have already been assigned, then it will be fixed when the service restarts.

Juno patch on the other hand will block attempt to use zero prefixed address pair and if a zero prefixed address pair have already been assigned, then the script included in the patch needs to be run in order to fix it.

Comment 8 Garth Mollett 2015-07-06 05:19:27 UTC
Created openstack-neutron tracking bugs for this issue:

Affects: fedora-all [bug 1240145]
Affects: openstack-rdo [bug 1240146]

Comment 10 errata-xmlrpc 2015-08-24 20:15:43 UTC
This issue has been addressed in the following products:

  OpenStack 6 for RHEL 7

Via RHSA-2015:1680 https://rhn.redhat.com/errata/RHSA-2015-1680.html