Bug 980112 (CVE-2013-2218)

Summary: CVE-2013-2218 libvirt: virConnectListAllInterfaces crash
Product: [Other] Security Response Reporter: Petr Matousek <pmatouse>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: acathrow, berrange, bsarathy, clalancette, dyasny, itamar, jforbes, jyang, laine, libvirt-maint, veillard, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-01 13:15:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 980118    
Bug Blocks: 980122    

Description Petr Matousek 2013-07-01 13:05:00 UTC
Daniel P. Berrange reported:

"As non-root, simply run:

  # virsh -c qemu:///system --readonly iface-list --inactive                                                                                                                                                   

The libvirtd daemon will crash with one of a number of different
stack traces, for example:

*** Error in `/home/berrange/src/virt/libvirt/daemon/.libs/lt-libvirtd': invalid fastbin entry (free): 0x00007f03fc02a1b0 ***
======= Backtrace: =========

Looking at the code, we have a double-free of the 'struct netcf_if'
object when any of the filtering flags are set. Hence this only
happens if you pass  '--inactive' to virsh."

Upstream fix:



This issue was discovered by Daniel P. Berrange of Red Hat.

Comment 1 Petr Matousek 2013-07-01 13:08:11 UTC

Not vulnerable.

This issue did not affect the versions of libvirt package as shipped with Red Hat Enterprise Linux 5 and 6.

Comment 2 Petr Matousek 2013-07-01 13:08:58 UTC
Created libvirt tracking bugs for this issue:

Affects: fedora-all [bug 980118]