Bug 449351 - When an invalid port number that exceeds 0x10000(65536) is specified by the snmpd and snmptrapd command, an improper port number is generated.
Summary: When an invalid port number that exceeds 0x10000(65536) is specified by the ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: net-snmp
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Safranek
QA Contact:
URL:
Whiteboard:
Depends On: 205154
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-02 11:08 UTC by Jan Safranek
Modified: 2009-01-20 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 22:07:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0230 0 normal SHIPPED_LIVE net-snmp enhancement and bug fix update 2009-01-20 16:06:32 UTC

Description Jan Safranek 2008-06-02 11:08:06 UTC
+++ This bug was initially created as a clone of Bug #205154 +++

Description of problem:

  When an invalid port number that exceeds 0x10000(65536) is specified by the
  snmpd and snmptrapd command, an improper port number is generated.  
  
  ** port number definition: unsigned short
  
  ex.) specified number: 65537(0x10001)
   ** generated port number : 1 → 65537(0x10001) - 65536(0x10000)
  
[root@RHEL4U4]# snmpd UDP:65537,udp6:65537

[root@RHEL4U4]# lsof -i
COMMAND     PID USER   FD   TYPE DEVICE SIZE NODE NAME
......................................................................... ......
snmpd    24866 root    9u  IPv4  74697       TCP *:smux (LISTEN)
snmpd    24866 root   11u  IPv4  74699       UDP *:tcpmux
snmpd    24866 root   12u  IPv6  74700       UDP *:tcpmux

[root@RHEL4U4]# less /etc/services | grep tcpmux
tcpmux          1/tcp                           # TCP port service multiplexer
tcpmux          1/udp                           # TCP port service multiplexer

[root@RHEL4U4]# less /etc/services | grep smux
# (due to a bug in inetd the 3com-tsmux line is disabled)
#3com-tsmux     106/tcp         poppassd
#3com-tsmux     106/udp         poppassd
smux            199/tcp                         # SNMP Unix Multiplexer
smux            199/udp

[root@RHEL4U4]# snmptrapd TCP:65537,udp6:65537
[root@RHEL4U4]# lsof -i
COMMAND     PID USER   FD   TYPE DEVICE SIZE NODE NAME
......................................................................... ......
snmptrapd 24736 root    8u  IPv4  71515       TCP *:tcpmux (LISTEN)
snmptrapd 24736 root    9u  IPv6  71516       UDP *:tcpmux

[root@RHEL4U4]# less /etc/services | grep tcpmux
tcpmux          1/tcp                           # TCP port service multiplexer
tcpmux          1/udp                           # TCP port service multiplexer


Version-Release number of selected component (if applicable):
net-snmp-5.1.2-11.EL4.7

How reproducible:
Always.

Steps to Reproduce:
  
Actual results:
port 1 returned.

Expected results:
Default ports to be returned if the ports are > 65536.
[root@RHEL4U4]# snmpd UDP:65537,udp6:65537
[root@RHEL4U4]# lsof -i
COMMAND     PID USER   FD   TYPE DEVICE SIZE NODE NAME
......................................................................... ......
snmpd    24829 root    9u  IPv4  73300       TCP *:smux (LISTEN)
snmpd    24829 root   11u  IPv4  73302       UDP *:snmp
snmpd    24829 root   12u  IPv6  73303       UDP *:snmp


root@RHEL4U4]# snmptrapd UDP:65537,udp6:65537
[root@RHEL4U4]# lsof -i
COMMAND     PID USER   FD   TYPE DEVICE SIZE NODE NAME
......................................................................... ......
snmptrapd 24808 root    8u  IPv4  73197       UDP *:snmptrap
snmptrapd 24808 root    9u  IPv6  73198       UDP *:snmptrap

Comment 1 RHEL Program Management 2008-06-02 19:56:10 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 6 errata-xmlrpc 2009-01-20 22:07:18 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0230.html


Note You need to log in before you can comment on or make changes to this bug.