<?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: libguestfs security, bug fix, and enhancement 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-2012:0774</ID></Identification>
    <Status>Final</Status>
    <Version>4</Version>
    <RevisionHistory>
       <Revision>
         <Number>4</Number>
         <Date>2012-06-20T08:18:00Z</Date>
         <Description>Current version</Description>
       </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2012-06-20T08:18:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2012-06-20T08:18:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>Red Hat rhsa-to-cvrf 1.0.1484</Engine>
      <Date>2012-06-20T09:00:33Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">
Updated libguestfs packages that fix one security issue, several bugs, and
add various enhancements are now available for Red Hat Enterprise Linux 6.

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">
libguestfs is a library for accessing and modifying guest disk images.

It was found that editing files with virt-edit left said files in a
world-readable state (and did not preserve the file owner or
Security-Enhanced Linux context). If an administrator on the host used
virt-edit to edit a file inside a guest, the file would be left with
world-readable permissions. This could lead to unprivileged guest users
accessing files they would otherwise be unable to. (CVE-2012-2690)

These updated libguestfs packages include numerous bug fixes and
enhancements. Space precludes documenting all of these changes in this
advisory. Users are directed to the Red Hat Enterprise Linux 6.3 Technical
Notes for information on the most significant of these changes.

Users of libguestfs are advised to upgrade to these updated packages, which
fix these issues and add these enhancements.    </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 © 2012 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-2012-0774.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2012-0774.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://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/6.3_Technical_Notes/libguestfs.html#RHSA-2012-0774</URL>
       <Description>https://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/6.3_Technical_Notes/libguestfs.html#RHSA-2012-0774</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=647174</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=647174</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=679737</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=679737</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=719879</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=719879</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=729076</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=729076</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=731742</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=731742</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=741183</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=741183</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=760221</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=760221</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=769359</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=769359</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=785305</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=785305</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=785668</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=785668</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=789960</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=789960</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=790958</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=790958</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=795322</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=795322</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=796520</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=796520</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=797760</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=797760</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=798197</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=798197</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=798980</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=798980</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=799695</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=799695</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=799798</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=799798</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=801273</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=801273</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=801788</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=801788</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=803699</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=803699</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=807557</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=807557</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=807905</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=807905</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=809401</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=809401</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=811112</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=811112</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=811117</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=811117</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=811673</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=811673</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=812092</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=812092</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=813329</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=813329</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="Red Hat Enterprise Linux Desktop Optional (v. 6)">
        <FullProductName ProductID="6Client-optional">Red Hat Enterprise Linux Desktop Optional (v. 6)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux HPC Node Optional (v. 6)">
        <FullProductName ProductID="6ComputeNode-optional">Red Hat Enterprise Linux HPC Node Optional (v. 6)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux Workstation Optional (v. 6)">
        <FullProductName ProductID="6Workstation-optional">Red Hat Enterprise Linux Workstation Optional (v. 6)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux Workstation (v. 6)">
        <FullProductName ProductID="6Workstation">Red Hat Enterprise Linux Workstation (v. 6)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux HPC Node (v. 6)">
        <FullProductName ProductID="6ComputeNode">Red Hat Enterprise Linux HPC Node (v. 6)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux Server Optional (v. 6)">
        <FullProductName ProductID="6Server-optional">Red Hat Enterprise Linux Server Optional (v. 6)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux Desktop (v. 6)">
        <FullProductName ProductID="6Client">Red Hat Enterprise Linux Desktop (v. 6)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux Server (v. 6)">
        <FullProductName ProductID="6Server">Red Hat Enterprise Linux Server (v. 6)</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="libguestfs-1.16.19-1.el6">
      <FullProductName ProductID="libguestfs-1.16.19-1.el6">libguestfs-1.16.19-1.el6.src.rpm</FullProductName>
    </Branch>
    <Relationship ProductReference="libguestfs-1.16.19-1.el6" RelationType="Default Component Of" RelatesToProductReference="6Client-optional">
      <FullProductName ProductID="6Client-optional:libguestfs-1.16.19-1.el6">libguestfs-1.16.19-1.el6 as a component of Red Hat Enterprise Linux Desktop Optional (v. 6)</FullProductName>
    </Relationship>
    <Relationship ProductReference="libguestfs-1.16.19-1.el6" RelationType="Default Component Of" RelatesToProductReference="6ComputeNode-optional">
      <FullProductName ProductID="6ComputeNode-optional:libguestfs-1.16.19-1.el6">libguestfs-1.16.19-1.el6 as a component of Red Hat Enterprise Linux HPC Node Optional (v. 6)</FullProductName>
    </Relationship>
    <Relationship ProductReference="libguestfs-1.16.19-1.el6" RelationType="Default Component Of" RelatesToProductReference="6Workstation-optional">
      <FullProductName ProductID="6Workstation-optional:libguestfs-1.16.19-1.el6">libguestfs-1.16.19-1.el6 as a component of Red Hat Enterprise Linux Workstation Optional (v. 6)</FullProductName>
    </Relationship>
    <Relationship ProductReference="libguestfs-1.16.19-1.el6" RelationType="Default Component Of" RelatesToProductReference="6Workstation">
      <FullProductName ProductID="6Workstation:libguestfs-1.16.19-1.el6">libguestfs-1.16.19-1.el6 as a component of Red Hat Enterprise Linux Workstation (v. 6)</FullProductName>
    </Relationship>
    <Relationship ProductReference="libguestfs-1.16.19-1.el6" RelationType="Default Component Of" RelatesToProductReference="6ComputeNode">
      <FullProductName ProductID="6ComputeNode:libguestfs-1.16.19-1.el6">libguestfs-1.16.19-1.el6 as a component of Red Hat Enterprise Linux HPC Node (v. 6)</FullProductName>
    </Relationship>
    <Relationship ProductReference="libguestfs-1.16.19-1.el6" RelationType="Default Component Of" RelatesToProductReference="6Server-optional">
      <FullProductName ProductID="6Server-optional:libguestfs-1.16.19-1.el6">libguestfs-1.16.19-1.el6 as a component of Red Hat Enterprise Linux Server Optional (v. 6)</FullProductName>
    </Relationship>
    <Relationship ProductReference="libguestfs-1.16.19-1.el6" RelationType="Default Component Of" RelatesToProductReference="6Client">
      <FullProductName ProductID="6Client:libguestfs-1.16.19-1.el6">libguestfs-1.16.19-1.el6 as a component of Red Hat Enterprise Linux Desktop (v. 6)</FullProductName>
    </Relationship>
    <Relationship ProductReference="libguestfs-1.16.19-1.el6" RelationType="Default Component Of" RelatesToProductReference="6Server">
      <FullProductName ProductID="6Server:libguestfs-1.16.19-1.el6">libguestfs-1.16.19-1.el6 as a component of Red Hat Enterprise Linux Server (v. 6)</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">It was found that editing files with virt-edit left said files in a world-readable state (and did not preserve the file owner or Security-Enhanced Linux context). If an administrator on the host used virt-edit to edit a file inside a guest, the file would be left with world-readable permissions. This could lead to unprivileged guest users accessing files they would otherwise be unable to. </Note></Notes>
    <DiscoveryDate>2012-06-11T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-02-08T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-2690</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>6Client-optional:libguestfs-1.16.19-1.el6</ProductID>
      <ProductID>6Client:libguestfs-1.16.19-1.el6</ProductID>
      <ProductID>6ComputeNode-optional:libguestfs-1.16.19-1.el6</ProductID>
      <ProductID>6ComputeNode:libguestfs-1.16.19-1.el6</ProductID>
      <ProductID>6Server-optional:libguestfs-1.16.19-1.el6</ProductID>
      <ProductID>6Server:libguestfs-1.16.19-1.el6</ProductID>
      <ProductID>6Workstation-optional:libguestfs-1.16.19-1.el6</ProductID>
      <ProductID>6Workstation:libguestfs-1.16.19-1.el6</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Low</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>4.0</BaseScore>
      <Vector>AV:L/AC:H/Au:N/C:C/I:N/A:N</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-2012-0774.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-2690.html</URL>
        <Description>CVE-2012-2690</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=831117</URL>
        <Description>bz#831117: CVE-2012-2690 libguestfs: virt-edit creates a new file, when it is used leading to loss of file attributes (permissions, owner, SELinux context etc.)</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
