CVE-2022-29824: Integer Overflow

Published May 3, 2022
·
Updated

A flaw was found in the libxml2 library in functions used to manipulate the xmlBuf and the xmlBuffer types. A substantial input causes values to calculate buffer sizes to overflow, resulting in an out-of-bounds write.

Other sources

In libxml2 before 2.9.14, several buffer handling functions in buf.c (xmlBuf) and tree.c (xmlBuffer) don't check for integer overflows. This can result in out-of-bounds memory writes. Exploitation requires a victim to open a crafted, multi-gigabyte XML file. Other software using libxml2's buffer functions, for example libxslt through 1.1.35, is affected as well.

Affected Software

33 affected componentsFixes available
redhat/libxml2<0:2.9.7-13.el8_6.1
0:2.9.7-13.el8_6.1
redhat/libxml2<0:2.9.13-1.el9_0.1
0:2.9.13-1.el9_0.1
debian/libxml2<=2.9.10+dfsg-6.7, <=2.9.10+dfsg-6.7+deb11u1, <=2.9.4+dfsg1-7+deb10u3, <=2.9.13+dfsg-1, <=2.9.4+dfsg1-7
2.9.14+dfsg-12.9.10+dfsg-6.7+deb11u22.9.4+dfsg1-7+deb10u4
debian/libxml2
2.9.4+dfsg1-7+deb10u42.9.4+dfsg1-7+deb10u62.9.10+dfsg-6.7+deb11u42.9.14+dfsg-1.3~deb12u12.9.14+dfsg-1.3
redhat/libxml2<2.9.14
2.9.14
Xmlsoft Libxml2<2.9.14
Xmlsoft Libxslt<=1.1.35
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
NetApp Active Iq Unified Manager Vsphere
NetApp Clustered Data ONTAP
NetApp Clustered Data Ontap Antivirus Connector
NetApp Manageability Software Development Kit
NetApp ONTAP Select Deploy administration utility
NetApp Smi-s Provider
NetApp Snapdrive Unix
NetApp Snapmanager Hyper-v
NetApp Solidfire \& Hci Management Node
Oracle ZFS Storage Appliance Kit=8.8
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H410s Firmware
NetApp H410s
NetApp H410c Firmware
NetApp H410c

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/libxml2 to a version that resolves this vulnerability.

    Fixed in 0:2.9.7-13.el8_6.1
  2. Upgrade

    Upgrade redhat/libxml2 to a version that resolves this vulnerability.

    Fixed in 0:2.9.13-1.el9_0.1
  3. Upgrade

    Upgrade debian/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.14+dfsg-1Fixed in 2.9.10+dfsg-6.7+deb11u2Fixed in 2.9.4+dfsg1-7+deb10u4
  4. Upgrade

    Upgrade debian/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.4+dfsg1-7+deb10u4Fixed in 2.9.4+dfsg1-7+deb10u6Fixed in 2.9.10+dfsg-6.7+deb11u4Fixed in 2.9.14+dfsg-1.3~deb12u1Fixed in 2.9.14+dfsg-1.3
  5. Upgrade

    Upgrade redhat/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.14
  6. Upgrade

    Upgrade libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.14
  7. Upgrade

    Upgrade libxslt to a version that resolves this vulnerability.

    Fixed in 1.1.35
  8. Compensating control

    Avoid passing large inputs to the libxml2 library (the issue can be triggered via substantial/multi-gigabyte XML inputs).

Event History

May 3, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
May 5, 2022
Data Sourced
via Red Hat·01:56 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-29824?

CVE-2022-29824 is a vulnerability in the libxml2 library that can result in out-of-bounds memory writes.

2

How severe is CVE-2022-29824?

CVE-2022-29824 has a severity rating of 7.4, indicating a high severity.

3

Which software is affected by CVE-2022-29824?

The libxml2 library versions before 2.9.14 are affected by CVE-2022-29824.

4

How can I fix CVE-2022-29824?

To fix CVE-2022-29824, update to libxml2 version 2.9.14 or later.

5

Where can I find more information about CVE-2022-29824?

More information about CVE-2022-29824 can be found in the references provided: [reference 1], [reference 2], [reference 3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203