<?xml version="1.0" encoding="UTF-8"?>

<oval_definitions xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:red-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd">
  <generator>
    <oval:product_name>Red Hat Errata System</oval:product_name>
    <oval:schema_version>5.3</oval:schema_version>
    <oval:timestamp>2012-02-20T21:55:41</oval:timestamp>
  </generator>

  <definitions>
    <definition id="oval:com.redhat.rhsa:def:20120302" version="504" class="patch">
      <metadata>
        <title>RHSA-2012:0302: cups security and bug fix update (Low)</title>
    <affected family="unix">
      <platform>Red Hat Enterprise Linux 5</platform>
    </affected>
    <reference source="RHSA" ref_id="RHSA-2012:0302-03" ref_url="https://rhn.redhat.com/errata/RHSA-2012-0302.html"/>
      <reference source="CVE" ref_id="CVE-2011-2896" ref_url="https://www.redhat.com/security/data/cve/CVE-2011-2896.html"/>
    <description>The Common UNIX Printing System (CUPS) provides a portable printing layer
for Linux, UNIX, and similar operating systems.

A heap-based buffer overflow flaw was found in the Lempel-Ziv-Welch (LZW)
decompression algorithm implementation used by the CUPS GIF image format
reader. An attacker could create a malicious GIF image file that, when
printed, could possibly cause CUPS to crash or, potentially, execute
arbitrary code with the privileges of the &quot;lp&quot; user. (CVE-2011-2896)

This update also fixes the following bugs:

* Prior to this update, the &quot;Show Completed Jobs,&quot; &quot;Show All Jobs,&quot; and
&quot;Show Active Jobs&quot; buttons returned results globally across all printers
and not the results for the specified printer. With this update, jobs from
only the selected printer are shown. (BZ#625900)

* Prior to this update, the code of the serial backend contained a wrong
condition. As a consequence, print jobs on the raw print queue could not be
canceled. This update modifies the condition in the serial backend code.
Now, the user can cancel these print jobs. (BZ#625955)

* Prior to this update, the textonly filter did not work if used as a pipe,
for example when the command line did not specify the filename and the
number of copies was always 1. This update modifies the condition in the
textonly filter. Now, the data are sent to the printer regardless of the
number of copies specified. (BZ#660518)

* Prior to this update, the file descriptor count increased until it ran
out of resources when the cups daemon was running with enabled
Security-Enhanced Linux (SELinux) features. With this update, all resources
are allocated only once. (BZ#668009)

* Prior to this update, CUPS incorrectly handled the en_US.ASCII value for
the LANG environment variable. As a consequence, the lpadmin, lpstat, and
lpinfo binaries failed to write to standard output if using LANG with the
value. This update fixes the handling of the en_US.ASCII value and the
binaries now write to standard output properly. (BZ#759081)

All users of cups are advised to upgrade to these updated packages, which
contain backported patches to resolve these issues. After installing this
update, the cupsd daemon will be restarted automatically.</description>

<!-- ~~~~~~~~~~~~~~~~~~~~   advisory details   ~~~~~~~~~~~~~~~~~~~ -->

<advisory from="secalert@redhat.com">
        <severity>Low</severity>
        <rights>Copyright 2012 Red Hat, Inc.</rights>
        <issued date="2012-02-21"/>
        <updated date="2012-02-21"/>
        <cve href="https://www.redhat.com/security/data/cve/CVE-2011-2896.html">CVE-2011-2896</cve>
        <bugzilla href="http://bugzilla.redhat.com/625900" id="625900">STR #3436: Jobs buttons not working correctly when viewing a specific printer</bugzilla>
        <bugzilla href="http://bugzilla.redhat.com/625955" id="625955">Serial back end has inverted SIGTERM block</bugzilla>
        <bugzilla href="http://bugzilla.redhat.com/660518" id="660518">textonly filter won't work as a pipe with copies=1</bugzilla>
        <bugzilla href="http://bugzilla.redhat.com/668009" id="668009">avc calls leak file descriptors</bugzilla>
        <bugzilla href="http://bugzilla.redhat.com/727800" id="727800">CVE-2011-2896 David Koblas' GIF decoder LZW decoder buffer overflow</bugzilla>
    <affected_cpe_list>
        <cpe>cpe:/o:redhat:enterprise_linux</cpe>
    </affected_cpe_list>
</advisory>
      </metadata>
      <criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20120302001" comment="Red Hat Enterprise Linux 5 is installed" />
 <criteria operator="OR">
 
 <criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20120302008" comment="cups-lpd is earlier than 1:1.3.7-30.el5" /><criterion test_ref="oval:com.redhat.rhsa:tst:20120302009" comment="cups-lpd is signed with Red Hat redhatrelease key" />
 
</criteria>
<criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20120302004" comment="cups-libs is earlier than 1:1.3.7-30.el5" /><criterion test_ref="oval:com.redhat.rhsa:tst:20120302005" comment="cups-libs is signed with Red Hat redhatrelease key" />
 
</criteria>
<criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20120302006" comment="cups-devel is earlier than 1:1.3.7-30.el5" /><criterion test_ref="oval:com.redhat.rhsa:tst:20120302007" comment="cups-devel is signed with Red Hat redhatrelease key" />
 
</criteria>
<criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20120302002" comment="cups is earlier than 1:1.3.7-30.el5" /><criterion test_ref="oval:com.redhat.rhsa:tst:20120302003" comment="cups is signed with Red Hat redhatrelease key" />
 
</criteria>

</criteria>

</criteria>

    </definition>
  </definitions>
  <tests>
    <!-- ~~~~~~~~~~~~~~~~~~~~~   rpminfo tests   ~~~~~~~~~~~~~~~~~~~~~ -->
    <rpminfo_test id="oval:com.redhat.rhsa:tst:20120302001"  version="504" comment="Red Hat Enterprise Linux 5 is installed" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20120302001" />
  <state state_ref="oval:com.redhat.rhsa:ste:20120302002" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20120302002"  version="504" comment="cups is earlier than 1:1.3.7-30.el5" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20120302002" />
  <state state_ref="oval:com.redhat.rhsa:ste:20120302003" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20120302003"  version="504" comment="cups is signed with Red Hat redhatrelease key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20120302002" />
  <state state_ref="oval:com.redhat.rhsa:ste:20120302001" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20120302004"  version="504" comment="cups-libs is earlier than 1:1.3.7-30.el5" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20120302003" />
  <state state_ref="oval:com.redhat.rhsa:ste:20120302003" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20120302005"  version="504" comment="cups-libs is signed with Red Hat redhatrelease key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20120302003" />
  <state state_ref="oval:com.redhat.rhsa:ste:20120302001" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20120302006"  version="504" comment="cups-devel is earlier than 1:1.3.7-30.el5" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20120302004" />
  <state state_ref="oval:com.redhat.rhsa:ste:20120302003" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20120302007"  version="504" comment="cups-devel is signed with Red Hat redhatrelease key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20120302004" />
  <state state_ref="oval:com.redhat.rhsa:ste:20120302001" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20120302008"  version="504" comment="cups-lpd is earlier than 1:1.3.7-30.el5" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20120302005" />
  <state state_ref="oval:com.redhat.rhsa:ste:20120302003" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20120302009"  version="504" comment="cups-lpd is signed with Red Hat redhatrelease key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20120302005" />
  <state state_ref="oval:com.redhat.rhsa:ste:20120302001" />
</rpminfo_test>

  </tests>

  <objects>
    <!-- ~~~~~~~~~~~~~~~~~~~~   rpminfo objects   ~~~~~~~~~~~~~~~~~~~~ -->
    <rpminfo_object id="oval:com.redhat.rhsa:obj:20120302005"  version="504" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>cups-lpd</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20120302001"  version="504" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>redhat-release</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20120302003"  version="504" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>cups-libs</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20120302004"  version="504" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>cups-devel</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20120302002"  version="504" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>cups</name>
</rpminfo_object>

  </objects>
  <states>
    <!-- ~~~~~~~~~~~~~~~~~~~~   rpminfo states   ~~~~~~~~~~~~~~~~~~~~~ -->
    <rpminfo_state id="oval:com.redhat.rhsa:ste:20120302001"  version="504" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <signature_keyid  operation="equals">5326810137017186</signature_keyid>
</rpminfo_state>
<rpminfo_state id="oval:com.redhat.rhsa:ste:20120302002"  version="504" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <version  operation="pattern match">^5[^[:digit:]]</version>
</rpminfo_state>
<rpminfo_state id="oval:com.redhat.rhsa:ste:20120302003"  version="504" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <evr datatype="evr_string" operation="less than">1:1.3.7-30.el5</evr>
</rpminfo_state>

  </states>
</oval_definitions>

