Bug 88537 - CAN-2003-0211 xinetd leaks memory
CAN-2003-0211 xinetd leaks memory
Product: Red Hat Linux
Classification: Retired
Component: xinetd (Show other bugs)
athlon Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Fenlason
Brock Organ
: Security
Depends On:
  Show dependency treegraph
Reported: 2003-04-10 14:55 EDT by Steve Grubb
Modified: 2014-08-31 19:24 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-05-13 13:14:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2003:160 normal SHIPPED_LIVE : Updated xinetd packages fix a denial-of-service attack and other bugs 2003-05-13 00:00:00 EDT

  None (edit)
Description Steve Grubb 2003-04-10 14:55:25 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Description of problem:
xinetd leaks 144 bytes of memory for each rejected connection.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Setup chargen with access_times = 5:00-9:00   this is just to make sure the
connection is rejected. Then stop xinetd and run via valgrind:

valgrind --leak-check=yes --leak-resolution=med --num-callers=8 --logfile-fd=9
 /usr/sbin/xinetd -d -pidfile /var/run/xinetd.pid -stayalive  9> out.txt

next, telnet localhost chargen

stop xinetd and open out.txt captured from valgrind.

Actual Results:  ==18939== 144 bytes in 1 blocks are definitely lost in loss
record 36 of 45
==18939==    at 0x40160DB8: malloc (vg_clientfuncs.c:103)
==18939==    by 0x804FE22: (within /usr/sbin/xinetd)
==18939==    by 0x805A496: (within /usr/sbin/xinetd)
==18939==    by 0x8053611: (within /usr/sbin/xinetd)
==18939==    by 0x805340D: (within /usr/sbin/xinetd)
==18939==    by 0x40294A46: __libc_start_main (in /lib/libc-2.3.2.so)
==18939==    by 0x804A310: (within /usr/sbin/xinetd)

Expected Results:  No leaks.

Additional info:

The 144 byte loss is cumulative. Xinetd in cvs at xinetd.org has the memory
leaks fixed and will be releasing 2.3.11 rsn to address this.
Comment 1 Mark J. Cox 2003-04-18 15:28:10 EDT
Errata in progress
Comment 2 Mark J. Cox 2003-05-13 13:14:04 EDT
An errata 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.


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