<?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>2011-03-22T12:46:40</oval:timestamp>
  </generator>

  <definitions>
    <definition id="oval:com.redhat.rhsa:def:20071177" version="502" class="patch">
      <metadata>
        <title>RHSA-2007:1177: autofs5 security update (Important)</title>
    <affected family="unix">
            <platform>Red Hat Enterprise Linux 4</platform>
         </affected>
    <reference source="RHSA" ref_id="RHSA-2007:1177-01" ref_url="https://rhn.redhat.com/errata/RHSA-2007-1177.html"/>
          <reference source="CVE" ref_id="CVE-2007-6285" ref_url="https://www.redhat.com/security/data/cve/CVE-2007-6285.html"/>
    
    <description>The autofs utility controls the operation of the automount daemon, which
automatically mounts file systems when you use them, and unmounts them when
you are not using them. This can include network file systems and CD-ROMs.
The autofs5 packages were made available as a technology preview in Red Hat
Enterprise Linux 4.6.

There was a security issue with the default configuration of autofs version
5, whereby the entry for the &quot;-hosts&quot; map did not specify the &quot;nodev&quot; mount
option. A local user with control of a remote NFS server could create
special device files on the remote file system, that if mounted using the
default &quot;-hosts&quot; map, could allow the user to access important system
devices. (CVE-2007-6285)

This issue is similar to CVE-2007-5964, which fixed a missing &quot;nosuid&quot;
mount option in autofs. Both the &quot;nodev&quot; and &quot;nosuid&quot; options should be
enabled to prevent a possible compromise of machine integrity.

Due to the fact that autofs always mounted &quot;-hosts&quot; map entries &quot;dev&quot; by
default, autofs has now been altered to always use the &quot;nodev&quot; option when
mounting from the default &quot;-hosts&quot; map. The &quot;dev&quot; option must be explicitly
given in the master map entry to revert to the old behavior. This change
affects only the &quot;-hosts&quot; map which corresponds to the &quot;/net&quot; entry in the
default configuration.

All autofs5 users are advised to upgrade to these updated packages, which
resolve this issue.

Red Hat would like to thank Tim Baum for reporting this issue.</description>

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

<advisory from="secalert@redhat.com">

        <severity>Important</severity>

        <rights>Copyright 2007 Red Hat, Inc.</rights>
        <issued date="2007-12-20"/>
        <updated date="2007-12-20"/>
            <cve href="https://www.redhat.com/security/data/cve/CVE-2007-6285.html">CVE-2007-6285</cve>
                <bugzilla href="http://bugzilla.redhat.com/426218" id="426218">CVE-2007-6285 autofs default doesn't set nodev in /net</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:20071177001" comment="Red Hat Enterprise Linux 4 is installed" /><criterion test_ref="oval:com.redhat.rhsa:tst:20071177002" comment="autofs5 is earlier than 1:5.0.1-0.rc2.55.el4_6.2" /><criterion test_ref="oval:com.redhat.rhsa:tst:20071177003" comment="autofs5 is signed with Red Hat master key" />
 
</criteria>

    </definition>
  </definitions>
  <tests>
    <!-- ~~~~~~~~~~~~~~~~~~~~~   rpminfo tests   ~~~~~~~~~~~~~~~~~~~~~ -->
    <rpminfo_test id="oval:com.redhat.rhsa:tst:20071177001"  version="502" comment="Red Hat Enterprise Linux 4 is installed" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20071177001" />
  <state state_ref="oval:com.redhat.rhsa:ste:20071177002" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20071177002"  version="502" comment="autofs5 is earlier than 1:5.0.1-0.rc2.55.el4_6.2" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20071177002" />
  <state state_ref="oval:com.redhat.rhsa:ste:20071177003" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20071177003"  version="502" comment="autofs5 is signed with Red Hat master key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20071177002" />
  <state state_ref="oval:com.redhat.rhsa:ste:20071177001" />
</rpminfo_test>

  </tests>

  <objects>
    <!-- ~~~~~~~~~~~~~~~~~~~~   rpminfo objects   ~~~~~~~~~~~~~~~~~~~~ -->
    <rpminfo_object id="oval:com.redhat.rhsa:obj:20071177002"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>autofs5</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20071177001"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>redhat-release</name>
</rpminfo_object>

  </objects>
  <states>
    <!-- ~~~~~~~~~~~~~~~~~~~~   rpminfo states   ~~~~~~~~~~~~~~~~~~~~~ -->
    <rpminfo_state id="oval:com.redhat.rhsa:ste:20071177001"  version="502" 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:20071177002"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <version  operation="pattern match">^4[^[:digit:]]</version>
</rpminfo_state>
<rpminfo_state id="oval:com.redhat.rhsa:ste:20071177003"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <evr datatype="evr_string" operation="less than">1:5.0.1-0.rc2.55.el4_6.2</evr>
</rpminfo_state>

  </states>
</oval_definitions>


