Bug 438844
Summary: | buffer overflow in audit_log_user_command | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Steve Grubb <sgrubb> |
Component: | audit | Assignee: | Steve Grubb <sgrubb> |
Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 5.2 | CC: | ebenes |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHEA-2008-0358 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-05-21 14:32:54 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 440275 |
Description
Steve Grubb
2008-03-25 16:02:21 UTC
A problem was reported with the fix on this bug. The fix for this bug is incomplete. It does not overflow anymore, but its not right. As it currently is, if there are no spaces in the command, meaning no arguments given, then it records the cwd rather than the command. I have a patch that corrects this. Confirming issue mentioned in comment #10. Running the command without arguments, sets tu cwd to cmd. And this is not good, the command is lost. # rpm -q audit sudo audit-1.6.5-8.el5.x86_64 sudo-1.6.8p12-12.el5.x86_64 # sudo ls ... # sudo ls -l ... # ausearch --start recent -m USER_CMD -i ---- type=USER_CMD msg=audit(04/18/2008 06:59:41.953:18958) : user pid=18081 uid=root auid=root subj=root:system_r:unconfined_t:s0-s0:c0.c1023 msg='cwd=/mnt/qa/scratch/x86-64-5s-1-m1/2008:8029/tps cmd=/mnt/qa/scratch/x86-64-5s-1-m1/2008:8029/tps (terminal=pts/13 res=success)' ---- type=USER_CMD msg=audit(04/18/2008 07:00:07.471:18974) : user pid=18093 uid=root auid=root subj=root:system_r:unconfined_t:s0-s0:c0.c1023 msg='cwd=/mnt/qa/scratch/x86-64-5s-1-m1/2008:8029/tps cmd=/bin/ls -l (terminal=pts/13 res=success)' audit-1.6.5-9.el5 was built to re-address this problem. 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/RHEA-2008-0358.html |