Crash of libvirtd by unprivileged user in virConnectListAllInterfaces
Crash of libvirtd by unprivileged user in virConnectListAllInterfaces

On Thu, Jun 27, 2013 at 03:56:42PM +0100, Daniel P. Berrange wrote:
> Hi Security Team,
>
> I've discovered a way for an unprivileged user with a readonly connection
> to libvirtd, to crash the daemon.

Ok, the final patch for this is issue will be the simpler variant that
Eric suggested

The embargo can be considered to be lifted on Monday July 1st, at
0900 UTC

The following is the GIT change that DV or myself will apply to libvirt
GIT master immediately before the 1.1.0 release:

>From 177b4165c531a4b3ba7f6ab6aa41dca9ceb0b8cf Mon Sep 17 00:00:00 2001
From: "Daniel P. Berrange" <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>
Date: Fri, 28 Jun 2013 10:48:37 +0100
Subject: [PATCH] CVE-2013-2218: Fix crash listing network interfaces with
 filters

The virConnectListAllInterfaces method has a double-free of the
'struct netcf_if' object when any of the filtering flags cause
an interface to be skipped over. For example when running the
command 'virsh iface-list --inactive'

This is a regression introduced in release 1.0.6 by

  commit 7ac2c4fe624f30f2c8270116513fa2ddab07631f
  Author: Guannan Ren <gren@redhat.com>
  Date:   Tue May 21 21:29:38 2013 +0800

    interface: list all interfaces with flags == 0

Signed-off-by: Daniel P. Berrange <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

andreabolognani/libvirt,eskultety/libvirt,jardasgit/libvirt,eskultety/libvirt,libvirt/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,libvirt/libvirt,nertpinx/libvirt,datto/libvirt,cbosdo/libvirt,zippy2/libvirt,elmarco/libvirt,shugaoye/libvirt,zhlcindy/libvirt-1.1.4-maintain,zhlcindy/libvirt-1.1.4-maintain,eskultety/libvirt,elmarco/libvirt,nertpinx/libvirt,agx/libvirt,nertpinx/libvirt,eskultety/libvirt,taget/libvirt,taget/libvirt,cbosdo/libvirt,agx/libvirt,rlaager/libvirt,taget/libvirt,fabianfreyer/libvirt,olafhering/libvirt,agx/libvirt,VenkatDatta/libvirt,olafhering/libvirt,cbosdo/libvirt,agx/libvirt,elmarco/libvirt,fabianfreyer/libvirt,datto/libvirt,jardasgit/libvirt,andreabolognani/libvirt,jfehlig/libvirt,cbosdo/libvirt,nertpinx/libvirt,olafhering/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,elmarco/libvirt,andreabolognani/libvirt,datto/libvirt,datto/libvirt,nertpinx/libvirt,rlaager/libvirt,datto/libvirt,taget/libvirt,elmarco/libvirt,VenkatDatta/libvirt,eskultety/libvirt,zhlcindy/libvirt-1.1.4-maintain,fabianfreyer/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,crobinso/libvirt,zippy2/libvirt,jardasgit/libvirt,agx/libvirt,shugaoye/libvirt,crobinso/libvirt,taget/libvirt,zhlcindy/libvirt-1.1.4-maintain,shugaoye/libvirt,shugaoye/libvirt,crobinso/libvirt,jardasgit/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,libvirt/libvirt,zippy2/libvirt,zhlcindy/libvirt-1.1.4-maintain,rlaager/libvirt,rlaager/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,rlaager/libvirt,cbosdo/libvirt,crobinso/libvirt,libvirt/libvirt,olafhering/libvirt,zippy2/libvirt,shugaoye/libvirt