Bug 165167 - RHEL4: buffer overflow detected in fuser
Summary: RHEL4: buffer overflow detected in fuser
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: psmisc
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Karel Zak
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 176344
TreeView+ depends on / blocked
 
Reported: 2005-08-04 20:09 UTC by Ulrich Drepper
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-05 20:03:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch to fix a few sprintf problems. (1.01 KB, patch)
2005-08-04 20:09 UTC, Ulrich Drepper
no flags Details | Diff

Description Ulrich Drepper 2005-08-04 20:09:57 UTC
Description of problem:
I saw a message about a buffer overflow while my system was shutting down.  I
couldn't collect the message so I had to look at the sources.  There were no
_chk variants of the string functions used so it must have been the sprintf
call.  Low and behold, there are a couple of problems.  In kill_item (the
probably place of the message I saw) the buffer is too small for even a 5 digits
PID.  We nowadays can have 7 digits or more.  I looked through the code and
fixed a few more places which can cause problems.  Patch is attached.

Version-Release number of selected component (if applicable):
psmisc-21.5-4.

How reproducible:
Didn't try

Steps to Reproduce:
1.Don't know.  Shut down system with many of the system processes (I guess it
was NFS/autofs related) having high >= 10000 PIDs.
2.
3.
  
Actual results:
buffer overflow

Expected results:
no buffer overflow

Additional info:

Comment 1 Ulrich Drepper 2005-08-04 20:09:57 UTC
Created attachment 117480 [details]
Patch to fix a few sprintf problems.

Comment 2 Karel Zak 2005-09-08 12:13:00 UTC
Fixed in FC4 and FC5. 

Comment 11 RHEL Program Management 2006-09-05 19:50:26 UTC
The component this request has been filed against is not planned for inclusion
in the next update. The decision is based on weighting the priority and number
of requests for a component as well as the impact on the Red Hat Enterprise
Linux user-base: other components are considered having higher priority and the
number of changes we intend to include in update cycles is limited.

Comment 12 RHEL Program Management 2006-09-05 20:03:14 UTC
Product Management has reviewed and declined this request.  You may appeal this
decision by reopening this request. 


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