rsyslog: heap-based overflow in contrib/pmcisconames/pmcisconames.c
Published Oct 7, 2019
9.8
CRITICALCVSS 3.1
EPSS 3.07%
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
No data.
Configuration 2
- 30
- 31
Configuration 3
- 9.0
No data.
Red Hat Ansible Tower 3.5 for RHEL 7
ansible-tower-35/ansible-tower:3.5.6-1
Fixed · RHBA-2020:1539
Red Hat Ansible Tower 3.6 for RHEL 7
ansible-tower-36/ansible-tower:3.6.4-1
Fixed · RHBA-2020:1540
Red Hat Enterprise Linux 7
rsyslog-0:8.24.0-52.el7
Fixed · RHSA-2020:1000
Red Hat Enterprise Linux 8
rsyslog-0:8.1911.0-3.el8
Fixed · RHSA-2020:1702
Red Hat Enterprise Linux 5
rsyslog
Not affected
Red Hat Enterprise Linux 5
rsyslog5
Not affected
Red Hat Enterprise Linux 6
rsyslog
Out of support scope
Red Hat Enterprise Linux 6
rsyslog7
Out of support scope
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Tower 3.5 for RHEL 7 | ansible-tower-35/ansible-tower:3.5.6-1 | Fixed | RHBA-2020:1539 |
| Red Hat Ansible Tower 3.6 for RHEL 7 | ansible-tower-36/ansible-tower:3.6.4-1 | Fixed | RHBA-2020:1540 |
| Red Hat Enterprise Linux 7 | rsyslog-0:8.24.0-52.el7 | Fixed | RHSA-2020:1000 |
| Red Hat Enterprise Linux 8 | rsyslog-0:8.1911.0-3.el8 | Fixed | RHSA-2020:1702 |
| Red Hat Enterprise Linux 5 | rsyslog | Not affected | n/a |
| Red Hat Enterprise Linux 5 | rsyslog5 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | rsyslog | Out of support scope | n/a |
| Red Hat Enterprise Linux 6 | rsyslog7 | Out of support scope | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (12)
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00031.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00032.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2019-17042 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1766700 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-7516 Advisory
- https://github.com/rsyslog/rsyslog/blob/v8-stable/ChangeLog x_refsource_CONFIRMRelease NotesThird Party Advisory
- https://github.com/rsyslog/rsyslog/pull/3883 x_refsource_CONFIRMPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/11/msg00030.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KPNCHI7X2IEXRH6RYD6IDPR4PLB5RPC7/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W6SUQE25RD37CD24BHKUWMG27U5RQ2FU/ vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2019-17042
- https://www.cve.org/CVERecord?id=CVE-2019-17042
Change history (0)
No recorded changes yet.