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 2046158 - Rsyslog with GnuTLS net stream driver configured runs into 100% CPU usage when TLS connection is broken.
Summary: Rsyslog with GnuTLS net stream driver configured runs into 100% CPU usage whe...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rsyslog
Version: 8.5
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: rc
: ---
Assignee: Attila Lakatos
QA Contact: Dalibor Pospíšil
Mirek Jahoda
URL:
Whiteboard:
Depends On:
Blocks: 2073448
TreeView+ depends on / blocked
 
Reported: 2022-01-26 10:22 UTC by Flos Qi Guo
Modified: 2024-02-12 09:40 UTC (History)
6 users (show)

Fixed In Version: rsyslog-8.2102.0-10.el8
Doc Type: Bug Fix
Doc Text:
The code contained a rare possibility where an infinite loop could be invoked, for example when a TLS handshake is interrupted at a certain stage. As a consequence, rsyslog could easily consume the entire part of the CPU, making the machine slow to react.
Clone Of:
: 2073448 (view as bug list)
Environment:
Last Closed: 2022-11-08 09:17:01 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rsyslog rsyslog issues 4818 0 None open 100% CPU usage seen on rsyslog via GnuTLS when TLS connection is broken. 2022-03-04 01:59:46 UTC
Github rsyslog rsyslog pull 4823 0 None open gnutls bugfix: Fix error handling in gtlsRecordRecv 2022-03-14 08:53:06 UTC
Red Hat Issue Tracker SECENGSP-4291 0 None None None 2022-01-26 10:30:21 UTC
Red Hat Product Errata RHBA-2022:7460 0 None None None 2022-11-08 09:17:19 UTC

Description Flos Qi Guo 2022-01-26 10:22:20 UTC
> Description of problem:
100% CPU usage seen on rsyslog via GnuTLS when TLS connection is broken.

> Version-Release number of selected component (if applicable):
rsyslog-8.2102.0-5.el8.x86_64
rsyslog-gnutls-8.2102.0-5.el8.x86_64

> How reproducible:
Frequently.

> Steps to Reproduce:
1. RHEL 8.3 system
2. Rsyslog with GnuTLS net stream driver is configured
3. 

> Actual results:
Rsyslogd suddenly keeps consuming CPU a lot.

> Expected results:
Rsyslog should be running stable.

> Additional info:
This issue should also affect upstream.

Comment 2 Orion Poplawski 2022-03-03 21:23:44 UTC
Upstream report: https://github.com/rsyslog/rsyslog/issues/4638

Comment 3 Flos Qi Guo 2022-03-04 02:07:58 UTC
Hello Orion,

Seems no much analysis in the issue you shared. I create an new issue and try to discuss with upstream here: https://github.com/rsyslog/rsyslog/issues/4818.

Thanks,
Flos

Comment 20 errata-xmlrpc 2022-11-08 09:17:01 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 (rsyslog bug fix and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2022:7460


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