Bug 1279514 - rsyslog: Server does not clean TLS contexts on connection loss
Summary: rsyslog: Server does not clean TLS contexts on connection loss
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1279515 1360350
Blocks: 1279517
TreeView+ depends on / blocked
 
Reported: 2015-11-09 15:51 UTC by Adam Mariš
Modified: 2019-09-29 13:39 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-15 15:00:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2015-11-09 15:51:52 UTC
If the TCP connections breaks without proper indication, the server side does not seem to clean some context or state. This results in the connection not being re-established after the network comes back, which breaks logging on the client because the log buffers run over and Syslog is designed to block in that case. Attacker who is able to break the TLS connection over the untrusted network, can cause DoS on the server for rsyslog service.

Comment 1 Adam Mariš 2015-11-09 15:52:17 UTC
Created rsyslog tracking bugs for this issue:

Affects: fedora-all [bug 1279515]

Comment 2 Adam Mariš 2015-11-30 14:11:07 UTC
Original bug report:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804525

Comment 3 Adam Mariš 2015-12-16 11:44:51 UTC
This issue occurs when the remote receiver does not complete TCP handshake, acking the CLIENT HELLO but not sending SERVER HELLO back. Socket appears to be established, but in fact it waits for the handshake to complete, blocking all the other logging while queuing for the remote connection.

Comment 6 Cedric Buissart 2016-08-10 12:18:25 UTC
The problem is resolved by having a queue for the forwarding action, allowing to get the network part asynchronous.

E.g. :
$ActionQueueType LinkedList
$ActionQueueFileName forward_to_server
$ActionResumeRetryCount -1
$ActionQueueSaveOnShutdown on
*.* @@<server>:10514 # forward everything to remote server

See https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/s1-working_with_queues_in_rsyslog.html

Comment 7 Cedric Buissart 2016-08-15 14:57:13 UTC
All versions of rsyslog shipped support queuing. Therefore I am closing this flaw NOTABUG.


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