Skip to content

CVE-2022-24903 Buffer overflow in TCP syslog server (receiver) components in rsyslog

HighCVSS 8.1 EPSS 3.9%
Published
Updated
Exploit status
No public exploit known

Description

Rsyslog is a rocket-fast system for log processing. Modules for TCP syslog reception have a potential heap buffer overflow when octet-counted framing is used. This can result in a segfault or some other malfunction. As of our understanding, this vulnerability can not be used for remote code execution. But there may still be a slight chance for experts to do that. The bug occurs when the octet count is read. While there is a check for the maximum number of octets, digits are written to a heap buffer even when the octet count is over the maximum, This can be used to overrun the memory buffer. However, once the sequence of digits stop, no additional characters can be added to the buffer. In our opinion, this makes remote exploits impossible or at least highly complex. Octet-counted framing is one of two potential framing modes. It is relatively uncommon, but enabled by default on receivers. Modules imtcp, imptcp, imgssapi, and imhttp are used for regular syslog message reception. It is best practice not to directly expose them to the public. When this practice is followed, the risk is considerably lower. Module imdiag is a diagnostics module primarily intended for testbench runs. We do not expect it to be present on any production installation. Octet-counted framing is not very common. Usually, it needs to be specifically enabled at senders. If users do not need it, they can turn it off for the most important modules. This will mitigate the vulnerability.

Affected products

ProductAffected versionsFixed in
rsyslog = < 8.2204.1 No fix listed
ubuntu/rsyslog(Ubuntu:22.04) < 8.2112.0-2ubuntu2.2 8.2112.0-2ubuntu2.2
rsyslog < 8.2204.1 8.2204.1
fedoraproject fedora = 35 No fix listed
debian linux = 9.0 No fix listed
debian linux = 10.0 No fix listed
debian linux = 11.0 No fix listed
netapp active iq unified manager All versions No fix listed
alpine/rsyslog(Alpine:v3.12) < 8.2004.0-r2 8.2004.0-r2
alpine/rsyslog(Alpine:v3.13) < 8.2012.0-r3 8.2012.0-r3
alpine/rsyslog(Alpine:v3.14) < 8.2012.0-r3 8.2012.0-r3
alpine/rsyslog(Alpine:v3.15) < 8.2108.0-r2 8.2108.0-r2
alpine/rsyslog(Alpine:v3.16) < 8.2204.1-r0 8.2204.1-r0
alpine/rsyslog(Alpine:v3.17) < 8.2204.1-r0 8.2204.1-r0
alpine/rsyslog(Alpine:v3.18) < 8.2204.1-r0 8.2204.1-r0
alpine/rsyslog(Alpine:v3.19) < 8.2204.1-r0 8.2204.1-r0
alpine/rsyslog(Alpine:v3.20) < 8.2204.1-r0 8.2204.1-r0
alpine/rsyslog(Alpine:v3.21) < 8.2204.1-r0 8.2204.1-r0
alpine/rsyslog(Alpine:v3.22) < 8.2204.1-r0 8.2204.1-r0
alpine/rsyslog(Alpine:v3.23) < 8.2204.1-r0 8.2204.1-r0
alpine/rsyslog(Alpine:v3.24) < 8.2204.1-r0 8.2204.1-r0
debian/rsyslog(Debian:12) < 8.2204.1-1 8.2204.1-1
debian/rsyslog(Debian:14) < 8.2204.1-1 8.2204.1-1
debian/rsyslog(Debian:13) < 8.2204.1-1 8.2204.1-1
ubuntu/rsyslog(Ubuntu:14.04) All versions No fix listed
Show 32 more
ProductAffected versionsFixed in
ubuntu/rsyslog(Ubuntu:14.04) = 5.8.11-2ubuntu4 No fix listed
ubuntu/rsyslog(Ubuntu:14.04) = 7.4.4-1ubuntu1 No fix listed
ubuntu/rsyslog(Ubuntu:14.04) = 7.4.4-1ubuntu2 No fix listed
ubuntu/rsyslog(Ubuntu:14.04) = 7.4.4-1ubuntu2.1 No fix listed
ubuntu/rsyslog(Ubuntu:14.04) = 7.4.4-1ubuntu2.3 No fix listed
ubuntu/rsyslog(Ubuntu:14.04) = 7.4.4-1ubuntu2.5 No fix listed
ubuntu/rsyslog(Ubuntu:14.04) = 7.4.4-1ubuntu2.6 No fix listed
ubuntu/rsyslog(Ubuntu:14.04) = 7.4.4-1ubuntu2.7 No fix listed
ubuntu/rsyslog(Ubuntu:Pro:16.04) < 8.16.0-1ubuntu3.1+esm2 8.16.0-1ubuntu3.1+esm2
ubuntu/rsyslog(Ubuntu:Pro:16.04) = 8.12.0-1ubuntu2 No fix listed
ubuntu/rsyslog(Ubuntu:Pro:16.04) = 8.12.0-1ubuntu3 No fix listed
ubuntu/rsyslog(Ubuntu:Pro:16.04) = 8.14.0-2ubuntu1 No fix listed
ubuntu/rsyslog(Ubuntu:Pro:16.04) = 8.14.0-2ubuntu2 No fix listed
ubuntu/rsyslog(Ubuntu:Pro:16.04) = 8.16.0-1ubuntu1 No fix listed
ubuntu/rsyslog(Ubuntu:Pro:16.04) = 8.16.0-1ubuntu2 No fix listed
ubuntu/rsyslog(Ubuntu:Pro:16.04) = 8.16.0-1ubuntu3 No fix listed
ubuntu/rsyslog(Ubuntu:Pro:16.04) = 8.16.0-1ubuntu3.1 No fix listed
ubuntu/rsyslog(Ubuntu:Pro:16.04) = 8.16.0-1ubuntu3.1+esm1 No fix listed
ubuntu/rsyslog(Ubuntu:18.04) < 8.32.0-1ubuntu4.2 8.32.0-1ubuntu4.2
ubuntu/rsyslog(Ubuntu:18.04) = 8.16.0-1ubuntu9 No fix listed
ubuntu/rsyslog(Ubuntu:18.04) = 8.16.0-1ubuntu10 No fix listed
ubuntu/rsyslog(Ubuntu:18.04) = 8.32.0-1ubuntu3 No fix listed
ubuntu/rsyslog(Ubuntu:18.04) = 8.32.0-1ubuntu4 No fix listed
ubuntu/rsyslog(Ubuntu:20.04) < 8.2001.0-1ubuntu1.3 8.2001.0-1ubuntu1.3
ubuntu/rsyslog(Ubuntu:20.04) = 8.1901.0-1ubuntu4 No fix listed
ubuntu/rsyslog(Ubuntu:20.04) = 8.2001.0-1ubuntu1 No fix listed
ubuntu/rsyslog(Ubuntu:20.04) = 8.2001.0-1ubuntu1.1 No fix listed
ubuntu/rsyslog(Ubuntu:22.04) = 8.2102.0-2ubuntu2 No fix listed
ubuntu/rsyslog(Ubuntu:22.04) = 8.2110.0-3ubuntu1 No fix listed
ubuntu/rsyslog(Ubuntu:22.04) = 8.2110.0-3ubuntu2 No fix listed
ubuntu/rsyslog(Ubuntu:22.04) = 8.2110.0-4ubuntu1 No fix listed
ubuntu/rsyslog(Ubuntu:22.04) = 8.2112.0-2ubuntu2 No fix listed

References