Infinite loop in Libxml2 - CVE-2018-9251

 

Infinite loop in Libxml2 - CVE-2018-9251

Published: October 15, 2018


Vulnerability identifier: #VU15364
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-9251
CWE-ID: CWE-835
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause DoS condition on the target system.

The vulnerability exists in the xz_decomp() function of the GNOME libxml2 library, as defined in the xzlib.c source code due to an infinite loop condition in the Lempel-Ziv-Markov (LZMA) decompression feature during the processing of XML files. A remote unauthenticated attacker can trick the victim into opening a specially crafted XML file that submits malicious input, trigger an LZMA_MEMLIMIT_ERROR condition and cause the application to crash.


Affected software

Libxml2
Arch Linux
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Opensuse
Fedora
libxml2 (Alpine package)
libxml2 (Red Hat package)
libxml2

How to mitigate CVE-2018-9251

Install update from vendor's website.

libxml2 (Alpine package) - update to 2.9.8-r1
libxml2 (Red Hat package) - update to 2.9.7-7.el8
libxml2 - addressed in versions 2.9.8-4.fc27, 2.9.8-4.fc28

External References

Related Security Bulletins