Description
A flaw was found in librelp. When using the GnuTLS driver, an improper error handling vulnerability causes the library to terminate the entire host process upon encountering a Transport Layer Security (TLS) record-level error, rather than disconnecting only the affected session. A remote peer capable of establishing a TLS connection can exploit this flaw by sending a corrupted or invalid record, crashing the host application and leading to a Denial of Service (DoS).
Vendor workaround
To reduce exposure to this issue without patching, apply one of the following operational controls:
1. Restrict RELP network access via firewalld:
Limit traffic to the configured RELP service port (typically TCP port 2514) to only trusted log sources:
```
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="<TRUSTED_HOST_OR_CIDR>" port port="2514" protocol="tcp" accept'
firewall-cmd --reload
```
Warning: Reloading the firewall applies changes immediately and may drop unlisted connections.
2. Disable the RELP input module:
If RELP-based remote log reception is not required, disable the `imrelp` input module by commenting out or removing its definition in `/etc/rsyslog.conf` or `/etc/rsyslog.d/`, and restart the service:
```
systemctl restart rsyslog
```
Warning: Restarting the rsyslog daemon results in a brief disruption to active log processing.
Caveats: Network-level restrictions reduce exposure to untrusted network peers but do not prevent a crash if a trusted, authenticated peer sends a malformed TLS record. Disabling the module halts all RELP log ingestion.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
Weakness type (CWE)
- CWE-755 Improper Handling of Exceptional Conditions
References
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.