Bug 205145 - rpc.rquotad -p allows ports > 65535, generating wrong ports in return.
Summary: rpc.rquotad -p allows ports > 65535, generating wrong ports in return.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: quota
Version: 4.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Steve Dickson
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-04 20:28 UTC by Jose Plans
Modified: 2018-10-19 19:12 UTC (History)
2 users (show)

Fixed In Version: RHBA-2007-0289
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-05-08 00:17:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch fixing the problem (464 bytes, patch)
2006-09-04 20:28 UTC, Jose Plans
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0289 0 normal SHIPPED_LIVE quota bug fix update 2007-04-28 19:02:58 UTC

Description Jose Plans 2006-09-04 20:28:42 UTC
Description of problem:

  When an invalid port number that exceeds 0x10000(65536) is specified by the
  rpc.rquotad 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]# rpc.rquotad -p 65537
[root@RHEL4U4]#
[root@RHEL4U4]# lsof -i
COMMAND     PID USER   FD   TYPE DEVICE SIZE NODE NAME
......................................................................... ......
rpc.rquot 23483 root    3u  IPv4  59367       UDP *:tcpmux
rpc.rquot 23483 root    4u  IPv4  59372       TCP *:tcpmux (LISTEN)
[root@RHEL4U4]#
[root@RHEL4U4]# less /etc/services | grep tcpmux
tcpmux          1/tcp                           # TCP port service multiplexer
tcpmux          1/udp                           # TCP port service multiplexer
[root@RHEL4U4]#
[root@RHEL4U4]# rpc.rquotad -p 0
rpc.rquotad: Illegal port number: 0
Version-Release number of selected component (if applicable):


How reproducible:
Always.

Steps to Reproduce:
1.  rpc.rquotad -p 65537
2.
3.
  
Actual results:
Wrong port numbers.

Expected results:
A limit on the allowed port range.

Comment 1 Jose Plans 2006-09-04 20:28:42 UTC
Created attachment 135511 [details]
Patch fixing the problem

Comment 3 Steve Dickson 2006-11-02 02:08:52 UTC
fixed in quota-3.12-6.el4
fixed in quota-3.13-1.2.3.2.el5
fixed in quota-3.13-1.2.3.2.fc6
fixed in quota-3.13-1.2.3.1.fc7

Comment 9 Red Hat Bugzilla 2007-05-08 00:17:58 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 the 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-2007-0289.html


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