<?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>2008-01-23T07:18:10</oval:timestamp>
  </generator>

  <definitions>
    <definition id="oval:com.redhat.rhsa:def:20040402" version="302" class="patch">
      <metadata>
        <title>RHSA-2004:402: libpng security update
        (Critical)
	</title>
  	<affected family="unix">
        <platform>Red Hat Enterprise Linux 3</platform>
        </affected>
        <reference source="RHSA" ref_id="RHSA-2004:402-02" ref_url="https://rhn.redhat.com/errata/RHSA-2004-402.html"/>
	<description>The libpng package contains a library of functions for creating and
manipulating PNG (Portable Network Graphics) image format files.

During a source code audit, Chris Evans discovered several buffer overflows
in libpng.  An attacker could create a carefully crafted PNG file in such a
way that it would cause an application linked with libpng to execute
arbitrary code when the file was opened by a victim.  The Common
Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name
CAN-2004-0597 to these issues.  

In addition, this audit discovered a potential NULL pointer dereference in
libpng (CAN-2004-0598) and several integer overflow issues (CAN-2004-0599).
An attacker could create a carefully crafted PNG file in such a way that
it would cause an application linked with libpng to crash when the file was
opened by the victim.

Red Hat would like to thank Chris Evans for discovering these issues.

For users of Red Hat Enterprise Linux 2.1 these patches also include a more
complete fix for the out of bounds memory access flaw (CAN-2002-1363). 

All users are advised to update to the updated libpng packages which
contain backported security patches and are not vulnerable to these issues.</description>

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

<advisory from="secalert@redhat.com">
        <severity>Critical</severity>
        <rights>Copyright 2004 Red Hat, Inc.</rights>
        <issued date="2004-08-04"/>
        <updated date="2004-08-04"/>
        <cve href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-1363">CVE-2002-1363</cve>
        <cve href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-0597">CVE-2004-0597</cve>
        <cve href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-0598">CVE-2004-0598</cve>
        <cve href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-0599">CVE-2004-0599</cve>
  	<affected_cpe_list>
        <cpe>cpe://redhat:enterprise_linux:3</cpe>
        </affected_cpe_list>
</advisory>
      </metadata>  <criteria operator="AND">
    <criterion test_ref="oval:com.redhat.rhsa:tst:20040402001" comment="Red Hat Enterprise Linux 3 is installed"/>
    <criteria operator="OR">
            <criteria operator="AND">

            <criterion test_ref="oval:com.redhat.rhsa:tst:20040402002" comment="libpng is earlier than 2:1.2.2-25"/>
            <criterion test_ref="oval:com.redhat.rhsa:tst:20040402003" comment="libpng is signed with Red Hat security key"/>
            </criteria>
            <criteria operator="AND">

            <criterion test_ref="oval:com.redhat.rhsa:tst:20040402004" comment="libpng10 is earlier than 0:1.0.13-15"/>
            <criterion test_ref="oval:com.redhat.rhsa:tst:20040402005" comment="libpng10 is signed with Red Hat security key"/>
            </criteria>
            <criteria operator="AND">

            <criterion test_ref="oval:com.redhat.rhsa:tst:20040402006" comment="libpng-devel is earlier than 2:1.2.2-25"/>
            <criterion test_ref="oval:com.redhat.rhsa:tst:20040402007" comment="libpng-devel is signed with Red Hat security key"/>
            </criteria>
            <criteria operator="AND">

            <criterion test_ref="oval:com.redhat.rhsa:tst:20040402008" comment="libpng10-devel is earlier than 0:1.0.13-15"/>
            <criterion test_ref="oval:com.redhat.rhsa:tst:20040402009" comment="libpng10-devel is signed with Red Hat security key"/>
            </criteria>
    </criteria>
  </criteria>

    </definition>
  </definitions>
  <tests>
    <!-- ~~~~~~~~~~~~~~~~~~~~~   rpminfo tests   ~~~~~~~~~~~~~~~~~~~~~ --><rpminfo_test id="oval:com.redhat.rhsa:tst:20040402001" version="302" comment="redhat-release is version 3" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040402001"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040402001"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040402002" version="302" comment="libpng is earlier than 2:1.2.2-25" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040402002"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040402002"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040402003" version="302" comment="libpng is signed with Red Hat security key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040402002"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040402003"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040402004" version="302" comment="libpng10 is earlier than 0:1.0.13-15" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040402003"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040402004"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040402005" version="302" comment="libpng10 is signed with Red Hat security key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040402003"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040402003"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040402006" version="302" comment="libpng-devel is earlier than 2:1.2.2-25" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040402004"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040402002"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040402007" version="302" comment="libpng-devel is signed with Red Hat security key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040402004"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040402003"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040402008" version="302" comment="libpng10-devel is earlier than 0:1.0.13-15" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040402005"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040402004"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040402009" version="302" comment="libpng10-devel is signed with Red Hat security key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040402005"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040402003"/>
</rpminfo_test>

  </tests>
  <objects>
    <!-- ~~~~~~~~~~~~~~~~~~~~   rpminfo objects   ~~~~~~~~~~~~~~~~~~~~ --><rpminfo_object id="oval:com.redhat.rhsa:obj:20040402001" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>redhat-release</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20040402002" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>libpng</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20040402003" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>libpng10</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20040402004" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>libpng-devel</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20040402005" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>libpng10-devel</name>
</rpminfo_object>

  </objects>
  <states>
    <!-- ~~~~~~~~~~~~~~~~~~~~   rpminfo states   ~~~~~~~~~~~~~~~~~~~~~ --><rpminfo_state id="oval:com.redhat.rhsa:ste:20040402001" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <version operation="pattern match">^3[^[:digit:]]</version>
</rpminfo_state>
<rpminfo_state id="oval:com.redhat.rhsa:ste:20040402002" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <evr datatype="evr_string" operation="less than">2:1.2.2-25</evr>
</rpminfo_state>
<rpminfo_state id="oval:com.redhat.rhsa:ste:20040402003" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <signature_keyid operation="equals">219180cddb42a60e</signature_keyid>
</rpminfo_state>
<rpminfo_state id="oval:com.redhat.rhsa:ste:20040402004" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <evr datatype="evr_string" operation="less than">0:1.0.13-15</evr>
</rpminfo_state>

  </states>
</oval_definitions>