CVE-2019-17042 An issue was discovered in Rsyslog v8.1908.0. contrib/pmcisconames/pmcisconames.c has a heap overflow in the parser for Cisco log messages. The parser tries to locate a log message delimiter (in this....
- Published
- Updated
- Exploit status
- No public exploit known
Description
An issue was discovered in Rsyslog v8.1908.0. contrib/pmcisconames/pmcisconames.c has a heap overflow in the parser for Cisco log messages. The parser tries to locate a log message delimiter (in this case, a space or a colon), but fails to account for strings that do not satisfy this constraint. If the string does not match, then the variable lenMsg will reach the value zero and will skip the sanity check that detects invalid log messages. The message will then be considered valid, and the parser will eat up the nonexistent colon delimiter. In doing so, it will decrement lenMsg, a signed integer, whose value was zero and now becomes minus one. The following step in the parser is to shift left the contents of the message. To do this, it will call memmove with the right pointers to the target and destination strings, but the lenMsg will now be interpreted as a huge value, causing a heap overflow.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/rsyslog(Debian:12) | < 8.1910.0-1 | 8.1910.0-1 |
| debian/rsyslog(Debian:13) | < 8.1910.0-1 | 8.1910.0-1 |
| debian/rsyslog(Debian:14) | < 8.1910.0-1 | 8.1910.0-1 |
| rsyslog | = 8.1908.0 | No fix listed |
| fedoraproject fedora | = 30 | No fix listed |
| fedoraproject fedora | = 31 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| openSUSE leap | = 15.0 | No fix listed |
| openSUSE leap | = 15.1 | No fix listed |
| alpine/rsyslog(Alpine:v3.10) | < 8.1904.0-r1 | 8.1904.0-r1 |
| alpine/rsyslog(Alpine:v3.11) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.12) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.13) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.14) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.15) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.16) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.17) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.18) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.19) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.20) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.21) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.22) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.23) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.24) | < 8.1908.0-r1 | 8.1908.0-r1 |
| alpine/rsyslog(Alpine:v3.7) | < 8.31.0-r1 | 8.31.0-r1 |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/rsyslog(Alpine:v3.8) | < 8.34.0-r1 | 8.34.0-r1 |
| alpine/rsyslog(Alpine:v3.9) | < 8.40.0-r4 | 8.40.0-r4 |
References
- Debian Security Tracker CVE-2019-17042 vendor-advisory
- openSUSE-SU-2019:2500 mailing-list third-party-advisory vendor-advisory
- openSUSE-SU-2019:2501 mailing-list third-party-advisory vendor-advisory
- github.com release-notes third-party-advisory
- github.com patch third-party-advisory
- [debian-lts-announce] 20211130 [SECURITY] [DLA 2835-1] rsyslog security update mailing-list third-party-advisory
- FEDORA-2019-1fb95ae48d vendor-advisory
- FEDORA-2019-ea7d5876a4 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking