rsyslog Vulnerability Enables Local Resource Exhaustion via imuxsock
A flaw in rsyslog allows local attackers to deplete file descriptors through the imuxsock module, affecting Linux systems with SCM_CREDENTIALS enabled.
WebVulnerabilitiesKey points
- A vulnerability in rsyslog enables a local attacker to exhaust file descriptors through the imuxsock module.
- The issue affects versions of rsyslog starting from 5.7.1 on Linux systems where SCM_CREDENTIALS is enabled.
- The vulnerability is tracked under the advisory ID GHSA-rj3v-jjhc-8vpf and is classified under CWE-775.
A vulnerability in the rsyslog software enables a local attacker to exhaust file descriptors by exploiting a weakness in the imuxsock module. This happens when the module processes ancillary data, like credentials or timestamps, without correctly managing file descriptors sent through SCM_RIGHTS messages. The issue impacts versions of rsyslog beginning with 5.7.1 on Linux systems where SCM_CREDENTIALS is active. The problem appears in builds that default to receiving system timestamps, which started with rsyslog 5.9.1 on affected systems. The flaw does not involve memory corruption or cause immediate process failures, but it can result in resource depletion. The consequences include rsyslog's inability to open or reopen output files, accept new connections, or reconnect to network outputs. The vulnerability was discovered by Rainer Gerhards, the rsyslog maintainer, during an internal review that included AI-assisted analysis. A patch has been added to close all descriptors received via SCM_RIGHTS and to verify the lengths of ancillary data. The update also ensures that incomplete or cut-off ancillary data is managed without relying on possibly corrupted credentials or timestamps. The vulnerability has a CVSS score of 5.5, with a medium severity rating, and is categorized under CWE-775, which refers to the improper release of file descriptors or handles. The fix is set to be included in the daily stable release of rsyslog on December 1, 2026. The flaw is tracked under the advisory ID GHSA-rj3v-jjhc-8vpf and is part of the rsyslog security advisory system. The rsyslog security team has advised users to implement the fix promptly once it is available.
What to do
- Implement the fix as soon as it becomes available in the daily stable release of rsyslog on December 1, 2026.
- Ensure the fix includes closing all descriptors received through SCM_RIGHTS messages and validating ancillary data lengths.
- Handle incomplete or truncated ancillary data safely without assuming the integrity of potentially corrupted credentials or timestamps.
Original report
“rsyslog: imuxsock can leak SCM_RIGHTS descriptors, enabling local file-descriptor exhaustion (GHSA-rj3v-jjhc-8vpf)”
Posted by rgerhards on Dec 01 Hello, rsyslog has published the following security advisory(ies). The distros list was notified in advance. Fix: https://github.com/rsyslog/rsyslog/pull/8149 GHSA-rj3v-jjhc-8vpf: imuxsock can leak SCM_RIGHTS descriptors, enabling local file-descriptor exhaustion Advisory: https://github.com/rsyslog/rsyslog/security/advisories/GHSA-rj3v-jjhc-8vpf ## Summary On builds…