Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 680722

Summary: ssh flooding audit log with USER_END messages
Product: Red Hat Enterprise Linux 6 Reporter: Miroslav Vadkerti <mvadkert>
Component: opensshAssignee: Jan F. Chadima <jchadima>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: jgalipea, michal.kosciowski, mitr, pvrabec
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-01 14:31:09 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:

Description Miroslav Vadkerti 2011-02-27 11:14:48 UTC
Description of problem:
After I login/logout with to a SSHv1 ssh server processes like

11385 ?        Rs     1:33 sshd: root@notty 

Start flooding audit log with messages below. 

type=USER_END msg=audit(1298804960.636:894587): user pid=11385 uid=0 auid=0 ses=5536 subj=unconfined_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=localhost addr=::1 terminal=ssh res=success'
type=USER_END msg=audit(1298804960.646:894588): user pid=11385 uid=0 auid=0 ses=5536 subj=unconfined_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=localhost addr=::1 terminal=ssh res=success'
type=USER_END msg=audit(1298804960.646:894589): user pid=11385 uid=0 auid=0 ses=5536 subj=unconfined_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=localhost addr=::1 terminal=ssh res=success'
type=USER_END msg=audit(1298804960.646:894590): user pid=11385 uid=0 auid=0 ses=5536 subj=unconfined_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=localhost addr=::1 terminal=ssh res=success'
type=USER_END msg=audit(1298804960.646:894591): user pid=11385 uid=0 auid=0 ses=5536 subj=unconfined_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=localhost addr=::1 terminal=ssh res=success'
type=USER_END msg=audit(1298804960.646:894592): user pid=11385 uid=0 auid=0 ses=5536 subj=unconfined_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=localhost addr=::1 terminal=ssh res=success'
type=USER_END msg=audit(1298804960.646:894593): user pid=11385 uid=0 auid=0 ses=5536 subj=unconfined_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=localhost addr=::1 terminal=ssh res=success'


Version-Release number of selected component (if applicable):
openssh-5.3p1-40.el6.x86_64

How reproducible:
100% on all archs

Steps to Reproduce:
1. set Protocol 1 in /etc/sshd_config
2. service sshd restart
3. ssh -1 root@localhost
4. exit
5. tailf /var/log/audit/audit.log 

Actual results:
audit.log flooded by never ending USER_END messages
sshd: root@notty processes hanging on the machine

Expected results:
audit.log not flooded, no sshd: root@notty processes hanging on the machine

Additional info:

Comment 1 Miroslav Vadkerti 2011-02-27 11:16:47 UTC
Important note:
This does not happen with SSHv2 (Protocol 2 in sshd_config)

Comment 2 Miroslav Vadkerti 2011-02-27 11:27:45 UTC
The processes cannot be killed by SIG_TERM - you have to send SIG_KILL

Comment 3 Miroslav Vadkerti 2011-02-28 08:02:34 UTC
Corrected description:
After I login/logout to a SSHv1 ssh server, processes like
[snip]

Comment 6 Miroslav Vadkerti 2011-02-28 15:05:34 UTC
This is a regression as this problem cannot be reproduced with openssh-5.3p1-40.el6.x86_64

Comment 8 Miroslav Vadkerti 2011-03-01 14:31:09 UTC
This bug is actually caused by wrong patch in bug 642792. Closing as duplicate.

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

Comment 9 Steve Grubb 2011-03-28 18:24:31 UTC
*** Bug 683456 has been marked as a duplicate of this bug. ***