First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 196493
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 184962
Assigned To: Gentoo Linux bug wranglers <bug-wranglers@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stewart Gebbie <sggentoo@gethos.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 196493 depends on: Show dependency tree
Bug 196493 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-20 07:58 0000
When running chkrootkit, chkutmp produces a seg fault which can be seen in the
output as:

Checking `chkutmp'... /root/chkrootkit/chkrootkit: line 181:  1541 Segmentation
fault      ${CHKUTMP}

After some investigation it seems to be related to buffer overruns in chkutmp
that occur when the command line is longer than expected.

Note, however, that the seg fault is dependent on compiler flags. On my system
I do not get the problem if compiled with no optimisations. However with -O2
the seg fault occurs

Reproducible: Always

Steps to Reproduce:
1. ensure that you have a program running with a very long command line > 1024
2. run chkrootkit
3. note failure at chkutmp
Actual Results:  
Checking `chkutmp'... /root/chkrootkit/chkrootkit: line 181:  1541 Segmentation
fault      ${CHKUTMP}

Expected Results:  
probably a blank line

I have debugged chkutmp.c and found some problems. I have posted the
modifications to the chkrootkit maintainers. However, it would be good if these
could be included as a patch in the gentoo portage tree until a new version of
chkrootkit is realeased.

The modified code can be fetched from:

   http://www.gethos.net/~stewart/gentoo/chkutmp.c

------- Comment #1 From Jakub Moc (RETIRED) 2007-10-20 08:01:16 0000 -------

*** This bug has been marked as a duplicate of bug 184962 ***

First Last Prev Next    No search results available      Search page      Enter new bug