|
|
Message-ID: <CADk+mPC6NcuZGqaT_3P8O59q7fqRdPEi8VECXfweV78KvC-abg@mail.gmail.com> Date: Tue, 1 Dec 2026 10:30:21 -0600 From: rgerhards@...scon.com To: oss-security@...ts.openwall.com Subject: rsyslog: imuxsock can leak SCM_RIGHTS descriptors, enabling local file-descriptor exhaustion (GHSA-rj3v-jjhc-8vpf) 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 where `imuxsock` receives ancillary credentials or timestamps, notably Linux builds with `SCM_CREDENTIALS`, it calls `recvmsg()` with a control buffer but handles only credential and timestamp control messages. A local process able to write to an imuxsock Unix datagram socket can attach file descriptors using `SCM_RIGHTS`. The kernel installs the delivered descriptors in rsyslogd, but imuxsock does not close them. Repeated datagrams can therefore exhaust rsyslogd's file-descriptor limit. ## Affected configurations - The affected component is `plugins/imuxsock`. - The ancillary receive path is present from rsyslog 5.7.1 when the relevant credential-processing options are enabled. - System-timestamp reception made this path enabled by default on affected platforms from rsyslog 5.9.1. - The sender must be able to send datagrams to the configured imuxsock socket. Sockets created by rsyslog are normally mode `0666`; permissions and namespace exposure of externally supplied sockets are deployment-specific. - Builds without the affected ancillary-data support are not exposed through this path. ## Technical details When credentials or timestamps are requested, imuxsock supplies a control buffer to `recvmsg()`. Its ancillary-message loop processes `SCM_CREDENTIALS` and `SO_TIMESTAMP`, but does not recognize or release descriptors delivered in an `SCM_RIGHTS` message. Testing confirmed that eight descriptors attached to one datagram remained installed in the receiving process while the log message itself was processed normally. The number of datagrams needed for exhaustion depends on rsyslogd's current descriptor use and `RLIMIT_NOFILE`. No memory corruption is involved. ## Impact A low-privileged local process can exhaust rsyslogd's file-descriptor table. This can prevent rsyslog from opening or reopening output and queue files, accepting new connections, or reconnecting network outputs, disrupting logging. Already-open files, sockets, and connections may continue operating until they require a new descriptor. The impact is therefore resource exhaustion and logging availability loss, not necessarily an immediate process crash. ## Affected versions The vulnerable ancillary receive path is present from rsyslog 5.7.1. Default timestamp-based exposure on affected platforms begins with rsyslog 5.9.1. No fixed version has yet been assigned. ## Remediation The fix closes every descriptor delivered in `SCM_RIGHTS` control messages and validates ancillary-message lengths before reading their payloads. Truncated ancillary data is handled without trusting incomplete credentials or timestamps. `MSG_CMSG_CLOEXEC`, where supported, provides defense in depth but does not replace closing received descriptors. ## Severity CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H — 5.5 Medium CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime. ## Credits Found by Rainer Gerhards, rsyslog maintainer, during an internal AI-assisted review of imuxsock with Claude Code. Affected: rsyslog >= 5.7.1 Fixed in: 2026-12-01 daily stable Severity: Medium, CVSS 3.1 5.5 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) Credits: @rgerhards Regards, the rsyslog security team (sent automatically by the rsyslog release system)
Powered by blists - more mailing lists
Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.