<?xml version="1.0" encoding="utf-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Red Hat Security Advisory: libvirt security and bug fix update</DocumentTitle>
  <DocumentType>Security Advisory</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>secalert@redhat.com</ContactDetails>
    <IssuingAuthority>Red Hat Security Response Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification><ID>RHSA-2013:0127</ID></Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
       <Revision>
         <Number>1</Number>
         <Date>2013-01-08T04:19:00Z</Date>
         <Description>Current version</Description>
       </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2013-01-08T04:19:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2013-01-08T04:19:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>Red Hat rhsa-to-cvrf 1.0.1484</Engine>
      <Date>2013-01-08T04:56:10Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">
Updated libvirt packages that fix one security issue and several bugs are
now available for Red Hat Enterprise Linux 5.

The Red Hat Security Response Team has rated this update as having low
security impact. A Common Vulnerability Scoring System (CVSS) base score,
which gives a detailed severity rating, is available from the CVE link in
the References section.    </Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">
The libvirt library is a C API for managing and interacting with the
virtualization capabilities of Linux and other operating systems. In
addition, libvirt provides tools for remote management of virtualized
systems.

Bus and device IDs were ignored when attempting to attach multiple USB
devices with identical vendor or product IDs to a guest. This could result
in the wrong device being attached to a guest, giving that guest root
access to the device. (CVE-2012-2693)

This update also fixes the following bugs:

* Previously, the libvirtd library failed to set the autostart flags for
already defined QEMU domains. This bug has been fixed, and the domains can
now be successfully marked as autostarted. (BZ#675319)

* Prior to this update, the virFileAbsPath() function was not taking into
account the slash (&quot;/&quot;) directory separator when allocating memory for
combining the cwd() function and a path. This behavior could lead to a
memory corruption. With this update, a transformation to the virAsprintff()
function has been introduced into virFileAbsPath(). As a result, the
aforementioned behavior no longer occurs. (BZ#680289)

* With this update, a man page of the virsh user interface has been
enhanced with information on the &quot;domxml-from-native&quot; and
&quot;domxml-to-native&quot; commands. A correct notation of the format argument has
been clarified. As a result, confusion is avoided when setting the format
argument in the described commands. (BZ#783001)

All users of libvirt are advised to upgrade to these updated packages,
which contain backported patches to correct these issues. After installing
the updated packages, libvirtd will be restarted automatically.    </Note>
    <Note Title="Terms of Use" Ordinal="3" Type="Legal Disclaimer" xml:lang="en">Please see https://www.redhat.com/footer/terms-of-use.html</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright © 2013 Red Hat, Inc. All rights reserved.</DocumentDistribution>
  <AggregateSeverity Namespace="https://access.redhat.com/security/updates/classification/">Low</AggregateSeverity>
  <DocumentReferences>
    <Reference Type="Self">
       <URL>https://rhn.redhat.com/errata/RHSA-2013-0127.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2013-0127.html</Description>
    </Reference>
    <Reference>
       <URL>https://access.redhat.com/security/updates/classification/#low</URL>
       <Description>https://access.redhat.com/security/updates/classification/#low</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=675319</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=675319</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=680289</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=680289</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=772821</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=772821</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=772848</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=772848</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=783001</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=783001</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="Red Hat Enterprise Linux">
      <Branch Type="Product Name" Name="RHEL Virtualization (v. 5 server)">
        <FullProductName ProductID="5Server-VT">RHEL Virtualization (v. 5 server)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="RHEL Desktop Multi OS (v. 5 client)">
        <FullProductName ProductID="5Client-VT">RHEL Desktop Multi OS (v. 5 client)</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="libvirt-0.8.2-29.el5">
      <FullProductName ProductID="libvirt-0.8.2-29.el5">libvirt-0.8.2-29.el5.src.rpm</FullProductName>
    </Branch>
    <Relationship ProductReference="libvirt-0.8.2-29.el5" RelationType="Default Component Of" RelatesToProductReference="5Server-VT">
      <FullProductName ProductID="5Server-VT:libvirt-0.8.2-29.el5">libvirt-0.8.2-29.el5 as a component of RHEL Virtualization (v. 5 server)</FullProductName>
    </Relationship>
    <Relationship ProductReference="libvirt-0.8.2-29.el5" RelationType="Default Component Of" RelatesToProductReference="5Client-VT">
      <FullProductName ProductID="5Client-VT:libvirt-0.8.2-29.el5">libvirt-0.8.2-29.el5 as a component of RHEL Desktop Multi OS (v. 5 client)</FullProductName>
    </Relationship>
  </ProductTree>

  <Vulnerability Ordinal="1" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Bus and device IDs were ignored when attempting to attach multiple USB devices with identical vendor or product IDs to a guest. This could result in the wrong device being attached to a guest, giving that guest root access to the device. </Note></Notes>
    <DiscoveryDate>2012-04-26T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-04-28T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-2693</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Client-VT:libvirt-0.8.2-29.el5</ProductID>
      <ProductID>5Server-VT:libvirt-0.8.2-29.el5</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Low</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>3.7</BaseScore>
      <Vector>AV:L/AC:H/Au:N/C:P/I:P/A:P</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2013-0127.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-2693.html</URL>
        <Description>CVE-2012-2693</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=831164</URL>
        <Description>bz#831164: CVE-2012-2693 libvirt: address bus= device= when identicle vendor ID/product IDs usb devices attached are ignored</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
