<?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: net-snmp 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:0124</ID></Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
       <Revision>
         <Number>1</Number>
         <Date>2013-01-08T04:14:00Z</Date>
         <Description>Current version</Description>
       </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2013-01-08T04:14:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2013-01-08T04:14:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>Red Hat rhsa-to-cvrf 1.0.1484</Engine>
      <Date>2013-01-08T05:02:02Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">
Updated net-snmp packages that fix one security issue and multiple bugs are
now available for Red Hat Enterprise Linux 5.

The Red Hat Security Response Team has rated this update as having moderate
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">
These packages provide various libraries and tools for the Simple Network
Management Protocol (SNMP).

An out-of-bounds buffer read flaw was found in the net-snmp agent. A remote
attacker with read privileges to a Management Information Base (MIB)
subtree handled by the &quot;extend&quot; directive (in &quot;/etc/snmp/snmpd.conf&quot;) could
use this flaw to crash snmpd via a crafted SNMP GET request.
(CVE-2012-2141)

Bug fixes:

* Devices that used certain file systems were not reported in the
&quot;HOST-RESOURCES-MIB::hrStorageTable&quot; table. As a result, the snmpd daemon
did not recognize devices using tmpfs, ReiserFS, and Oracle Cluster File
System (OCFS2) file systems. This update recognizes these devices and
reports them in the &quot;HOST-RESOURCES-MIB::hrStorageTable&quot; table.
(BZ#754652, BZ#755958, BZ#822061)

* The snmptrapd (8) man page did not correctly describe how to load
multiple configuration files using the &quot;-c&quot; option. This update describes
correctly that multiple configuration files must be separated by a comma.
(BZ#760001)

* Integers truncated from 64 to 32-bit were not correctly evaluated. As a
consequence, the snmpd daemon could enter an endless loop when encoding the
truncated integers to network format. This update modifies the underlying
code so that snmpd correctly checks truncated 64-bit integers. Now, snmpd
avoids an endless loop. (BZ#783892)

* snmpd did not correctly check for interrupted system calls when
enumerating existing IPv6 network prefixes during startup. As a
consequence, snmpd could prematurely exit when receiving a signal during
this enumeration. This update checks the network prefix enumeration code
for interrupted system calls. Now, snmpd no longer terminates when a signal
is received. (BZ#799699)

* snmpd used the wrong length of COUNTER64 values in the AgentX protocol.
As a consequence, snmpd could not decode two consecutive COUNTER64 values
in one AgentX packet. This update uses the correct COUNTER64 size and can
process two or mode COUNTER64 values in AgentX communication. (BZ#803585)

* snmpd ignored the &quot;-e&quot; parameter of the &quot;trapsess&quot; option in the snmpd
configuration file. As a result, outgoing traps were incorrectly sent with
the default EngineID of snmpd when configuring &quot;trapsess&quot; with an explicit
EngineID. This update modifies the underlying code to send outgoing traps
using the EngineID as specified in the &quot;trapsess -e&quot; parameter in the
configuration file. (BZ#805689)

* snmpd did not correctly encode negative Request-IDs in outgoing requests,
for example during trap operations. As a consequence, a 32-bit value could
be encoded in 5 bytes instead of 4, and the outgoing requests were refused
by certain implementations of the SNMP protocol as invalid. With this
update, a Request-ID can no longer become negative and is always encoded in
4 bytes. (BZ#818259)

* snmpd ignored the port number of the &quot;clientaddr&quot; option when specifying
the source address of outgoing SNMP requests. As a consequence, the system
assigned a random address. This update allows to specify both the port
number and the source IP address in the &quot;clientaddr&quot; option. Now,
administrators can increase security with firewall rules and
Security-Enhanced Linux (SELinux) policies by configuring a specific source
port of outgoing traps and other requests. (BZ#828691)

* snmpd did not correctly process responses to internal queries when
initializing monitoring enabled by the &quot;monitor&quot; option in the
&quot;/etc/snmp/snmpd.conf&quot; configuration file. As a consequence, snmpd was not
fully initialized and the error message &quot;failed to run mteTrigger query&quot;
appeared in the system log 30 seconds after the snmpd startup. This update
explicitly checks for responses to internal monitoring queries. (BZ#830042)

Users of net-snmp should upgrade to these updated packages, which contain
backported patches to correct these issues. After installing the update,
the snmpd and snmptrapd daemons 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/">Moderate</AggregateSeverity>
  <DocumentReferences>
    <Reference Type="Self">
       <URL>https://rhn.redhat.com/errata/RHSA-2013-0124.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2013-0124.html</Description>
    </Reference>
    <Reference>
       <URL>https://access.redhat.com/security/updates/classification/#moderate</URL>
       <Description>https://access.redhat.com/security/updates/classification/#moderate</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=755958</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=755958</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=803585</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=803585</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=840861</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=840861</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 (v. 5 client)">
        <FullProductName ProductID="5Client">Red Hat Enterprise Linux Desktop (v. 5 client)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="RHEL Desktop Workstation (v. 5 client)">
        <FullProductName ProductID="5Client-Workstation">RHEL Desktop Workstation (v. 5 client)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux (v. 5 server)">
        <FullProductName ProductID="5Server">Red Hat Enterprise Linux (v. 5 server)</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="net-snmp-5.3.2.2-20.el5">
      <FullProductName ProductID="net-snmp-5.3.2.2-20.el5">net-snmp-5.3.2.2-20.el5.src.rpm</FullProductName>
    </Branch>
    <Relationship ProductReference="net-snmp-5.3.2.2-20.el5" RelationType="Default Component Of" RelatesToProductReference="5Client">
      <FullProductName ProductID="5Client:net-snmp-5.3.2.2-20.el5">net-snmp-5.3.2.2-20.el5 as a component of Red Hat Enterprise Linux Desktop (v. 5 client)</FullProductName>
    </Relationship>
    <Relationship ProductReference="net-snmp-5.3.2.2-20.el5" RelationType="Default Component Of" RelatesToProductReference="5Client-Workstation">
      <FullProductName ProductID="5Client-Workstation:net-snmp-5.3.2.2-20.el5">net-snmp-5.3.2.2-20.el5 as a component of RHEL Desktop Workstation (v. 5 client)</FullProductName>
    </Relationship>
    <Relationship ProductReference="net-snmp-5.3.2.2-20.el5" RelationType="Default Component Of" RelatesToProductReference="5Server">
      <FullProductName ProductID="5Server:net-snmp-5.3.2.2-20.el5">net-snmp-5.3.2.2-20.el5 as a component of Red Hat Enterprise Linux (v. 5 server)</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">An out-of-bounds buffer read flaw was found in the net-snmp agent. A remote attacker with read privileges to a Management Information Base (MIB) subtree handled by the &quot;extend&quot; directive (in &quot;/etc/snmp/snmpd.conf&quot;) could use this flaw to crash snmpd via a crafted SNMP GET request. </Note></Notes>
    <DiscoveryDate>2012-04-26T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-04-24T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-2141</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Client-Workstation:net-snmp-5.3.2.2-20.el5</ProductID>
      <ProductID>5Client:net-snmp-5.3.2.2-20.el5</ProductID>
      <ProductID>5Server:net-snmp-5.3.2.2-20.el5</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Moderate</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>4.3</BaseScore>
      <Vector>AV:N/AC:M/Au:N/C:N/I:N/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-0124.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-2141.html</URL>
        <Description>CVE-2012-2141</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=815813</URL>
        <Description>bz#815813: CVE-2012-2141 net-snmp: Array index error, leading to out-of heap-based buffer read (snmpd crash)</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
