Use-after-free in Libxml2 - CVE-2021-3516

 

Use-after-free in Libxml2 - CVE-2021-3516

Published: June 18, 2021


Vulnerability identifier: #VU54222
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-3516
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error in xmllint. A remote attacker can use a specially crafted file to execute arbitrary code on the target system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


Affected software

Libxml2
Amazon Linux AMI
Gentoo Linux
ClevOS
SUSE MicroOS
Red Hat Enterprise Linux for x86_64
HPE Helion Openstack
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
Red Hat Enterprise Linux for ARM 64
Anolis OS
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Software Development Kit
Ubuntu
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Module for Python2
Fedora
cflinuxfs3
APM Edge
jbcs-httpd24-openssl-pkcs11 (Red Hat package)
jbcs-httpd24-openssl-chil (Red Hat package)
jbcs-httpd24-apr-util (Red Hat package)
jbcs-httpd24-mod_http2 (Red Hat package)
jbcs-httpd24-nghttp2 (Red Hat package)
jbcs-httpd24-mod_md (Red Hat package)
jbcs-httpd24-httpd (Red Hat package)
jbcs-httpd24-mod_security (Red Hat package)
jbcs-httpd24-curl (Red Hat package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
libxml2
libxml2-doc
libxml2-python
libxml2-32bit
libxml2-debuginfo
libxml2-debugsource
libxml2-python-debuginfo
libxml2-python-debugsource
libxml2-utils (Ubuntu package)
libxml2 (Ubuntu package)
libxml2-devel
libxml2-2
libxml2-2-debuginfo
libxml2-tools
libxml2-tools-debuginfo
python-libxml2
python-libxml2-debuginfo
python-libxml2-debugsource
libxml2-2-32bit
libxml2-2-debuginfo-32bit
python-libxml2-python-debugsource
python3-libxml2-python-debuginfo
python2-libxml2-python
python2-libxml2-python-debuginfo
python3-libxml2-python
libxml2-2-32bit-debuginfo
libxml2 (Red Hat package)
python3-libxml2
Migration Toolkit for Containers
Service Telemetry Framework
Cloud Pak for Security (CP4S)
Red Hat OpenShift Jaeger
JBoss Core Services
IBM Security Verify Access
IBM Integrated Analytics System
Web Terminal
OpenShift Virtualization
SecurID Authentication Manager
IBM Cognos Analytics

How to mitigate CVE-2021-3516

Install updates from vendor's website.

Libxml2 - update to 2.9.11
cflinuxfs3 - update to 0.245.0
jbcs-httpd24-openssl-pkcs11 (Red Hat package) - addressed in versions 0.4.10-26.el8jbcs, 0.4.10-26.jbcs.el7
APM Edge - update to 4.0
jbcs-httpd24-openssl-chil (Red Hat package) - addressed in versions 1.0.0-11.el8jbcs, 1.0.0-11.jbcs.el7
Migration Toolkit for Containers - addressed in versions 1.4.6, 1.5.1
jbcs-httpd24-apr-util (Red Hat package) - addressed in versions 1.6.1-91.el8jbcs, 1.6.1-91.jbcs.el7
Cloud Pak for Security (CP4S) - update to 1.8.0.0
jbcs-httpd24-mod_http2 (Red Hat package) - addressed in versions 1.15.7-22.el8jbcs, 1.15.7-22.jbcs.el7
Red Hat OpenShift Jaeger - addressed in versions 1.20.5, 1.24.0
jbcs-httpd24-nghttp2 (Red Hat package) - addressed in versions 1.39.2-41.el8jbcs, 1.39.2-41.jbcs.el7
jbcs-httpd24-mod_md (Red Hat package) - addressed in versions 2.0.8-41.el8jbcs, 2.0.8-41.jbcs.el7
JBoss Core Services - update to 2.4.37 SP11
jbcs-httpd24-httpd (Red Hat package) - addressed in versions 2.4.37-80.el8jbcs, 2.4.37-80.jbcs.el7
jbcs-httpd24-mod_security (Red Hat package) - addressed in versions 2.9.2-68.GA.el8jbcs, 2.9.2-68.GA.jbcs.el7
jbcs-httpd24-curl (Red Hat package) - addressed in versions 7.78.0-3.el8jbcs, 7.78.0-3.jbcs.el7
IBM Integrated Analytics System - update to 1.0.30.0
Web Terminal - update to 1.3
OpenShift Virtualization - addressed in versions 2.6.6, 4.8.0, 4.8.1
libxml2 - update to 2.7.6-0.77.36.1
libxml2-doc - addressed in versions 2.7.6-0.77.36.1, 2.9.4-46.40.1, 2.9.4-46.43.1
libxml2-python - update to 2.7.6-0.77.36.1
libxml2-32bit - update to 2.7.6-0.77.36.1
libxml2-debuginfo - update to 2.7.6-0.77.36.1
libxml2-debugsource - addressed in versions 2.7.6-0.77.36.1, 2.9.4-46.40.1, 2.9.4-46.43.1, 2.9.7-3.31.1, 2.9.7-3.34.1
libxml2-python-debuginfo - update to 2.7.6-0.77.36.1
libxml2-python-debugsource - update to 2.7.6-0.77.36.1
libxml2 - update to 2.9.1-6.6.42
libxml2-utils (Ubuntu package) - addressed in versions 2.9.4+dfsg1-6.1ubuntu1.4, 2.9.10+dfsg-6.3ubuntu0.1, 2.9.10+dfsg-5ubuntu0.20.04.1, 2.9.10+dfsg-5ubuntu0.20.10.2
libxml2 (Ubuntu package) - addressed in versions 2.9.4+dfsg1-6.1ubuntu1.4, 2.9.10+dfsg-6.3ubuntu0.1, 2.9.10+dfsg-5ubuntu0.20.04.1, 2.9.10+dfsg-5ubuntu0.20.10.2
libxml2-devel - addressed in versions 2.9.4-46.40.1, 2.9.4-46.43.1, 2.9.7-3.31.1, 2.9.7-3.34.1
libxml2-2 - addressed in versions 2.9.4-46.40.1, 2.9.4-46.43.1, 2.9.7-3.31.1, 2.9.7-3.34.1
libxml2-2-debuginfo - addressed in versions 2.9.4-46.40.1, 2.9.4-46.43.1, 2.9.7-3.31.1, 2.9.7-3.34.1
libxml2-tools - addressed in versions 2.9.4-46.40.1, 2.9.4-46.43.1, 2.9.7-3.31.1, 2.9.7-3.34.1
libxml2-tools-debuginfo - addressed in versions 2.9.4-46.40.1, 2.9.4-46.43.1, 2.9.7-3.31.1, 2.9.7-3.34.1
python-libxml2 - addressed in versions 2.9.4-46.40.1, 2.9.4-46.43.1
python-libxml2-debuginfo - addressed in versions 2.9.4-46.40.1, 2.9.4-46.43.1
python-libxml2-debugsource - addressed in versions 2.9.4-46.40.1, 2.9.4-46.43.1
libxml2-2-32bit - addressed in versions 2.9.4-46.40.1, 2.9.4-46.43.1, 2.9.7-3.31.1, 2.9.7-3.34.1
libxml2-2-debuginfo-32bit - addressed in versions 2.9.4-46.40.1, 2.9.4-46.43.1
python-libxml2-python-debugsource - addressed in versions 2.9.7-3.31.1, 2.9.7-3.34.1
python3-libxml2-python-debuginfo - addressed in versions 2.9.7-3.31.1, 2.9.7-3.34.1
python2-libxml2-python - addressed in versions 2.9.7-3.31.1, 2.9.7-3.34.1
python2-libxml2-python-debuginfo - addressed in versions 2.9.7-3.31.1, 2.9.7-3.34.1
python3-libxml2-python - addressed in versions 2.9.7-3.31.1, 2.9.7-3.34.1
libxml2-2-32bit-debuginfo - addressed in versions 2.9.7-3.31.1, 2.9.7-3.34.1
libxml2 (Red Hat package) - update to 2.9.7-9.el8_4.2
python3-libxml2 - update to 2.9.7-9.0.1
libxml2-devel - update to 2.9.7-9.0.1
libxml2 - update to 2.9.7-9.0.1
libxml2 - addressed in versions 2.9.10-12.fc34, 2.9.12-4.fc33
SecurID Authentication Manager - update to 8.5 Patch 5
IBM Cognos Analytics - addressed in versions 11.1.7 Fix Pack 7, 11.2.4.1 IF1

External References

Related Security Bulletins