Bug Fix Advisory net-snmp bug fix update

Advisory: RHBA-2009:0984-1
Type: Bug Fix Advisory
Severity: N/A
Issued on: 2009-05-18
Last updated on: 2009-05-18
Affected Products: Red Hat Desktop (v. 4)
Red Hat Enterprise Linux AS (v. 4)
Red Hat Enterprise Linux ES (v. 4)
Red Hat Enterprise Linux WS (v. 4)
OVAL: N/A

Details

Updated net-snmp packages that resolve several issues are now available.

The Simple Network Management Protocol (SNMP) is a protocol used for
network management. The net-snmp packages include various SNMP tools: an
extensible agent, an SNMP library, tools for requesting or setting
information from SNMP agents, tools for generating and handling SNMP traps,
a version of the netstat command which uses SNMP, and a Tk/Perl MIB browser.

These updated net-snmp packages provide fixes for the following bugs:

* snmpd expects the "type" field of snmp_set_var_value() to be filled
before the function is called. However SMUX, as previously implemented,
expected these events in the reverse order. As a result, trap forwarding
from SMUX peers would not work. SMUX now expect events to take place in the
same order as snmpd, thereby enabling trap forwarding from SMUX peers.

* snmpd now supports two new options for snmpd.conf files:
"dontLogTCPWrappersConnects" (this suppresses logging of connection
attempts), and "v1trapaddress" (this allows an agent's IP address to be set
inside outgoing SNMP traps).

* a patch previously applied to the net-snmp packages failed to allow the
snmpd and snmptrapd daemons to process hostnames in transport address
specifiers. Attempts to use a hostname as the listening address for
snmptrap would therefore fail. The previous patch has been replaced by a
new version which allows for hostnames in transport address specifiers.

* the method previously used by snmpd to process UDP did not work well in
clustered environments. Queries against an IP configured as a resource of a
cluster service would time out and fail unless first performed against a
non-cluster resource IP. Net-snmp for Red Hat Enterprise Linux 4 now
includes improved UDP handling. This allows snmpd queries to work reliably
in a clustered environment.

* -LF, -LS, and -LO are deprecated options for starting the snmp daemon.
After they were deprecated, any attempt to start the daemon with one of
these options would cause a segmentation fault. Snmpd now provides the user
with a warning about incorrect syntax instead.

* end-users may want to turn off the snmp daemon's default logging ('snmpd
-l /dev/null'). Previously, this would generate warnings about '-l' being
deprecated. The manual page of the snmpd daemon now describes default
logging behaviour and how to turn it off. In addition, snmpd started with
'-l' command line option no longer outputs a deprecation warning.

* the snmpd daemon reported IP address values with an incorrect length of 8
bytes on 64-bit architectures. This has been corrected by asserting within
the snmp_client that an IP address has a length of 4 bytes.

* the net-snmp-perl and net-snmp-devel subpackages only required matching
versions of net-snmp and net-snmp-lib, not matching releases. This meant
that an update of either subpackage would not result in updates to the
current releases of net-snmp (to get correct MIB files) or net-snmp-libs
(to get correct libraries). These subpackages now require the same release
for net-snmp-perl and net-snmp-devel, ensuring that the MIB files and
libraries are brought up to date.

The snmpd daemon now contains fixes for following OIDs:

* UCD-SNMP-MIB::ssCpu* statistics were calculated on the basis of averages
since the agent started. Similarly, HOST-RESOURCES-MIB::hrProcessorLoad was
calculated as an average of load since the last query. Neither of these
presented a current or useful report of system status. These values are now
calculated on the basis of activity over the last 60 seconds, and are
updated every 5 seconds.
Note: it takes 60 seconds from the daemon's initial startup to calculate
the OID values.

* UCD-SNMP-MIB::dskPercent was based on statfs, which would fail when used
on devices larger than 32 terabytes. Net-snmp is now built with support for
64-bit file offsets, and can therefore use statfs64 to calculate disk usage
correctly for large devices.

All users of net-snmp are advised to upgrade to these updated packages,
which resolve these issues.


Solution

Before applying this update, make sure that all previously-released
errata relevant to your system have been applied.

This update is available via Red Hat Network. Details on how to use
the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/docs/DOC-11259

Updated packages

Red Hat Desktop (v. 4)

SRPMS:
net-snmp-5.1.2-18.el4.src.rpm     188207af0d717c16095c5387fb50c1b1
 
IA-32:
net-snmp-5.1.2-18.el4.i386.rpm     f027d51963c881c69fcddc843785333f
net-snmp-devel-5.1.2-18.el4.i386.rpm     45cf7dd29de153672cc83f4dce478fe7
net-snmp-libs-5.1.2-18.el4.i386.rpm     8e2bc8617ac5f7166b450cf09a20c7b7
net-snmp-perl-5.1.2-18.el4.i386.rpm     64fc9e50d1f4d9b005847e17d52ce010
net-snmp-utils-5.1.2-18.el4.i386.rpm     72b9322e5c42640020cf95a2d4127297
 
x86_64:
net-snmp-5.1.2-18.el4.x86_64.rpm     4d3ecd13dcd2d1683166a8d39aceded9
net-snmp-devel-5.1.2-18.el4.x86_64.rpm     c478ef3f640aee051d0bae79f8497403
net-snmp-libs-5.1.2-18.el4.i386.rpm     8e2bc8617ac5f7166b450cf09a20c7b7
net-snmp-libs-5.1.2-18.el4.x86_64.rpm     4261cbe6639310495f49cad1eeb7517a
net-snmp-perl-5.1.2-18.el4.x86_64.rpm     c3582d2b09661e46c0ed9ea5a47f04d7
net-snmp-utils-5.1.2-18.el4.x86_64.rpm     ae2524296f5fe05d0dbe284a79a4bf75
 
Red Hat Enterprise Linux AS (v. 4)

SRPMS:
net-snmp-5.1.2-18.el4.src.rpm     188207af0d717c16095c5387fb50c1b1
 
IA-32:
net-snmp-5.1.2-18.el4.i386.rpm     f027d51963c881c69fcddc843785333f
net-snmp-devel-5.1.2-18.el4.i386.rpm     45cf7dd29de153672cc83f4dce478fe7
net-snmp-libs-5.1.2-18.el4.i386.rpm     8e2bc8617ac5f7166b450cf09a20c7b7
net-snmp-perl-5.1.2-18.el4.i386.rpm     64fc9e50d1f4d9b005847e17d52ce010
net-snmp-utils-5.1.2-18.el4.i386.rpm     72b9322e5c42640020cf95a2d4127297
 
IA-64:
net-snmp-5.1.2-18.el4.ia64.rpm     e94478d80e3d55bd00cca4836406107b
net-snmp-devel-5.1.2-18.el4.ia64.rpm     4e67490c4442ae66c183d3539ac79680
net-snmp-libs-5.1.2-18.el4.i386.rpm     8e2bc8617ac5f7166b450cf09a20c7b7
net-snmp-libs-5.1.2-18.el4.ia64.rpm     e2e74754d445979d6eaa47b26c98e28e
net-snmp-perl-5.1.2-18.el4.ia64.rpm     00a893e00e0c9848e880731448d4edfb
net-snmp-utils-5.1.2-18.el4.ia64.rpm     ec320fc1c8e5f94864e32495229a0fb1
 
PPC:
net-snmp-5.1.2-18.el4.ppc.rpm     b051e867f8d1c9902ce1010a4339a566
net-snmp-devel-5.1.2-18.el4.ppc.rpm     67cb36aca41b81446241df3a478ce51a
net-snmp-libs-5.1.2-18.el4.ppc.rpm     3593ec7413e6e22a5c9292562cc8069f
net-snmp-libs-5.1.2-18.el4.ppc64.rpm     6cc2e8b4399051f9547380419cf269a9
net-snmp-perl-5.1.2-18.el4.ppc.rpm     1d90a223880d3c7d0a4b6a2148ef4c54
net-snmp-utils-5.1.2-18.el4.ppc.rpm     a50a0f1b1ea3ba8354c6ac097e99275e
 
s390:
net-snmp-5.1.2-18.el4.s390.rpm     9baf301b954ecb1a8fa9966e0493c084
net-snmp-devel-5.1.2-18.el4.s390.rpm     47340418aca96a13d7b60c12ff062b36
net-snmp-libs-5.1.2-18.el4.s390.rpm     61fa27946445f751fd19cc840a248681
net-snmp-perl-5.1.2-18.el4.s390.rpm     641749730874284ecd8665b8113847a5
net-snmp-utils-5.1.2-18.el4.s390.rpm     8e4cd3b42bf9f1c9d340c0760849d182
 
s390x:
net-snmp-5.1.2-18.el4.s390x.rpm     6746ae1cc68c509a7c8ecee13ac12e06
net-snmp-devel-5.1.2-18.el4.s390x.rpm     9f49c2f54ebf797394edc69ef273f98c
net-snmp-libs-5.1.2-18.el4.s390.rpm     61fa27946445f751fd19cc840a248681
net-snmp-libs-5.1.2-18.el4.s390x.rpm     0511f02ffcdf89614df2096dd812faaa
net-snmp-perl-5.1.2-18.el4.s390x.rpm     d47b2c8a8a66e6114ac1c61aee073f11
net-snmp-utils-5.1.2-18.el4.s390x.rpm     5fbd806cb3458a9e2274d14f3bf9bfef
 
x86_64:
net-snmp-5.1.2-18.el4.x86_64.rpm     4d3ecd13dcd2d1683166a8d39aceded9
net-snmp-devel-5.1.2-18.el4.x86_64.rpm     c478ef3f640aee051d0bae79f8497403
net-snmp-libs-5.1.2-18.el4.i386.rpm     8e2bc8617ac5f7166b450cf09a20c7b7
net-snmp-libs-5.1.2-18.el4.x86_64.rpm     4261cbe6639310495f49cad1eeb7517a
net-snmp-perl-5.1.2-18.el4.x86_64.rpm     c3582d2b09661e46c0ed9ea5a47f04d7
net-snmp-utils-5.1.2-18.el4.x86_64.rpm     ae2524296f5fe05d0dbe284a79a4bf75
 
Red Hat Enterprise Linux ES (v. 4)

SRPMS:
net-snmp-5.1.2-18.el4.src.rpm     188207af0d717c16095c5387fb50c1b1
 
IA-32:
net-snmp-5.1.2-18.el4.i386.rpm     f027d51963c881c69fcddc843785333f
net-snmp-devel-5.1.2-18.el4.i386.rpm     45cf7dd29de153672cc83f4dce478fe7
net-snmp-libs-5.1.2-18.el4.i386.rpm     8e2bc8617ac5f7166b450cf09a20c7b7
net-snmp-perl-5.1.2-18.el4.i386.rpm     64fc9e50d1f4d9b005847e17d52ce010
net-snmp-utils-5.1.2-18.el4.i386.rpm     72b9322e5c42640020cf95a2d4127297
 
IA-64:
net-snmp-5.1.2-18.el4.ia64.rpm     e94478d80e3d55bd00cca4836406107b
net-snmp-devel-5.1.2-18.el4.ia64.rpm     4e67490c4442ae66c183d3539ac79680
net-snmp-libs-5.1.2-18.el4.i386.rpm     8e2bc8617ac5f7166b450cf09a20c7b7
net-snmp-libs-5.1.2-18.el4.ia64.rpm     e2e74754d445979d6eaa47b26c98e28e
net-snmp-perl-5.1.2-18.el4.ia64.rpm     00a893e00e0c9848e880731448d4edfb
net-snmp-utils-5.1.2-18.el4.ia64.rpm     ec320fc1c8e5f94864e32495229a0fb1
 
x86_64:
net-snmp-5.1.2-18.el4.x86_64.rpm     4d3ecd13dcd2d1683166a8d39aceded9
net-snmp-devel-5.1.2-18.el4.x86_64.rpm     c478ef3f640aee051d0bae79f8497403
net-snmp-libs-5.1.2-18.el4.i386.rpm     8e2bc8617ac5f7166b450cf09a20c7b7
net-snmp-libs-5.1.2-18.el4.x86_64.rpm     4261cbe6639310495f49cad1eeb7517a
net-snmp-perl-5.1.2-18.el4.x86_64.rpm     c3582d2b09661e46c0ed9ea5a47f04d7
net-snmp-utils-5.1.2-18.el4.x86_64.rpm     ae2524296f5fe05d0dbe284a79a4bf75
 
Red Hat Enterprise Linux WS (v. 4)

SRPMS:
net-snmp-5.1.2-18.el4.src.rpm     188207af0d717c16095c5387fb50c1b1
 
IA-32:
net-snmp-5.1.2-18.el4.i386.rpm     f027d51963c881c69fcddc843785333f
net-snmp-devel-5.1.2-18.el4.i386.rpm     45cf7dd29de153672cc83f4dce478fe7
net-snmp-libs-5.1.2-18.el4.i386.rpm     8e2bc8617ac5f7166b450cf09a20c7b7
net-snmp-perl-5.1.2-18.el4.i386.rpm     64fc9e50d1f4d9b005847e17d52ce010
net-snmp-utils-5.1.2-18.el4.i386.rpm     72b9322e5c42640020cf95a2d4127297
 
IA-64:
net-snmp-5.1.2-18.el4.ia64.rpm     e94478d80e3d55bd00cca4836406107b
net-snmp-devel-5.1.2-18.el4.ia64.rpm     4e67490c4442ae66c183d3539ac79680
net-snmp-libs-5.1.2-18.el4.i386.rpm     8e2bc8617ac5f7166b450cf09a20c7b7
net-snmp-libs-5.1.2-18.el4.ia64.rpm     e2e74754d445979d6eaa47b26c98e28e
net-snmp-perl-5.1.2-18.el4.ia64.rpm     00a893e00e0c9848e880731448d4edfb
net-snmp-utils-5.1.2-18.el4.ia64.rpm     ec320fc1c8e5f94864e32495229a0fb1
 
x86_64:
net-snmp-5.1.2-18.el4.x86_64.rpm     4d3ecd13dcd2d1683166a8d39aceded9
net-snmp-devel-5.1.2-18.el4.x86_64.rpm     c478ef3f640aee051d0bae79f8497403
net-snmp-libs-5.1.2-18.el4.i386.rpm     8e2bc8617ac5f7166b450cf09a20c7b7
net-snmp-libs-5.1.2-18.el4.x86_64.rpm     4261cbe6639310495f49cad1eeb7517a
net-snmp-perl-5.1.2-18.el4.x86_64.rpm     c3582d2b09661e46c0ed9ea5a47f04d7
net-snmp-utils-5.1.2-18.el4.x86_64.rpm     ae2524296f5fe05d0dbe284a79a4bf75
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

447839 - snmptrapd command line does not accept hostname in transport-address
447947 - SNMPd does not respond on cluster service IP
458996 - HOST-RESOURCES-MIB::hrProcessorLoad returns run queue not processor load
461503 - hrProcessorLoad is not 64bit safe
462016 - Net SNMP doesn't smux dell open manage
464764 - [RHEL4] IP address length is 8 bytes on 64bits
469679 - snmp-perl and net-snmp-devel does not require the right packages.
474161 - net-snmp does not use statfs64 on Red Hat Enterprise Linux 4


Keywords

agentx, net-snmp, snmpd


These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/