CVE-2019-17042
- State
- Published
- Severity
- Not scored
- Published
- Oct 7, 2019
- Updated
- Aug 5, 2024
- Reserved
- Sep 30, 2019
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.
Scores
The record has no CVSS score.
Weaknesses
The record names no weakness.
Affected Products
| Product | Versions |
|---|---|
n/an/a |
|
References
- https://github.com/rsyslog/rsyslog/blob/v8-stable/ChangeLog
- https://github.com/rsyslog/rsyslog/pull/3883
- openSUSE-SU-2019:2500vendor-advisory
- openSUSE-SU-2019:2501vendor-advisory
- FEDORA-2019-ea7d5876a4vendor-advisory
- FEDORA-2019-1fb95ae48dvendor-advisory
- [debian-lts-announce] 20211130 [SECURITY] [DLA 2835-1] rsyslog security updatemailing-list
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.