RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 869555 - ausearch -i does not interpret execve arguments when aN_len=nbytes is encountered
Summary: ausearch -i does not interpret execve arguments when aN_len=nbytes is encount...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: audit
Version: 6.3
Hardware: Unspecified
OS: Linux
medium
low
Target Milestone: rc
: ---
Assignee: Steve Grubb
QA Contact: Martin Žember
URL:
Whiteboard:
Depends On:
Blocks: 947775 1070830
TreeView+ depends on / blocked
 
Reported: 2012-10-24 08:53 UTC by Burn Alting
Modified: 2015-07-13 04:14 UTC (History)
7 users (show)

Fixed In Version: audit-2.3.7-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-14 07:14:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1515 0 normal SHIPPED_LIVE audit bug fix and enhancement update 2014-10-14 01:22:21 UTC

Description Burn Alting 2012-10-24 08:53:55 UTC
Description of problem:
When arguements to audit execve are too long, they are split up into multiple execve records. The based execve audit record adds a key value pair of aN_len=nbytes where N is the argument number and nbytes is the total number of bytes in the argument that has been split up.

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

How reproducible:
Easily.


Steps to Reproduce:
1. Generate an audit event where multiple execve audit records are generated - perhaps an execution of man
2. Run ausearch -i -if audit.log
3. View the mis-interpretation of the nbytes value of the aN_len=nbytes key value pair.
  
Actual results:
Dependant on nbytes value

Expected results:
aN_len value should be interpreted as an integer rather than a string.

Additional info:
I expect you need to modify the lookup routine that types the key values

Comment 2 Steve Grubb 2012-11-29 14:28:45 UTC
Fixed upstream...Committed revision 723.

Comment 3 RHEL Program Management 2013-10-14 00:20:58 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 5 Steve Grubb 2014-06-04 01:59:34 UTC
audit-2.3.7-1.el6 was built to resolve this issue.

Comment 7 Martin Žember 2014-06-20 13:00:16 UTC
Is it possible the version which contains this bug or more detailed steps to reproduce it?

I tried these versions:
audit-2.2-4.el6_5
audit.2.2-2.el6
audit-2.3.3-4.el7.x86_64

I tried these steps to reproduce:
auditctl -a exit,always -F arch=b32 -S execve
man aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
ausearch -i -if /var/log/audit/audit.log | grep len
auditctl -d exit,always -F arch=b32 -S execve

The output of ausearch does not contain any "_len" though. Maybe I am not able to produce a splitted entry in audit log?

Comment 8 Burn Alting 2014-06-20 22:37:29 UTC
(In reply to Martin Žember from comment #7)
> Is it possible the version which contains this bug or more detailed steps to
> reproduce it?
> 
> I tried these versions:
> audit-2.2-4.el6_5
> audit.2.2-2.el6
> audit-2.3.3-4.el7.x86_64
> 
> I tried these steps to reproduce:
> auditctl -a exit,always -F arch=b32 -S execve
> man
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a a a a a a
> a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
> ausearch -i -if /var/log/audit/audit.log | grep len
> auditctl -d exit,always -F arch=b32 -S execve
> 
> The output of ausearch does not contain any "_len" though. Maybe I am not
> able to produce a splitted entry in audit log?

Martin,

This was fixed in 2.2.2 as per the release notes
- Don't interpret aN_len field in EXECVE records (#869555)
found in https://people.redhat.com/sgrubb/audit/ChangeLog

Comment 10 Martin Žember 2014-06-24 13:01:55 UTC
Thank you, Burn.

It seems that the problem was also that I was not providing an argument that was big enough. Running "man `perl -e "print 'a'x10000"`" triggered it. Steve Grubb found that the length should be at least about 8560.

Comment 14 errata-xmlrpc 2014-10-14 07:14:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1515.html


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