# CVE-2022-29824: libxml2: In libxml2 before 2.9.14, several buffer handling functions in buf.c (xmlBuf*) and tree.c (xmlBuffer*) don't check fo...

CVE-2022-29824 is fixed in 9 products on 1 platform, first by libxml2 2.9.4+dfsg1-6.1ubuntu1.6, released May 2, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-29824
- Priority: High
- CVSS: 7.4 (Medium)
- EPSS: 0.0375
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 2, 2022

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libxml2 Debian 11.6 (bullseye) | 2.9.10+dfsg-6.7+deb11u2 | [DSA-5142-1](https://patchblox.com/security/data/fix/linux/dsa-5142-1.md) | May 22, 2022 |
| Linux | libxml2 Debian 12.15 (bookworm) | 2.9.14+dfsg-1 | [DEBIAN-CVE-2022-29824](https://patchblox.com/security/data/fix/linux/debian-cve-2022-29824.md) | May 3, 2022 |
| Linux | libxml2 Debian 13.5 (trixie) | 2.9.14+dfsg-1 | [DEBIAN-CVE-2022-29824](https://patchblox.com/security/data/fix/linux/debian-cve-2022-29824.md) | May 3, 2022 |
| Linux | libxml2 Debian 14 | 2.9.14+dfsg-1 | [DEBIAN-CVE-2022-29824](https://patchblox.com/security/data/fix/linux/debian-cve-2022-29824.md) | May 3, 2022 |
| Linux | libxml2 RHEL 8 | 0:2.9.7-13.el8_6.1 | [RHSA-2022:5317](https://patchblox.com/security/data/fix/linux/rhsa-2022-5317.md) | Jun 30, 2022 |
| Linux | libxml2 RHEL 9 | 0:2.9.13-1.el9_0.1 | [RHSA-2022:5250](https://patchblox.com/security/data/fix/linux/rhsa-2022-5250.md) | Jul 1, 2022 |
| Linux | libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.6 | [libxml2 2.9.4+dfsg1-6.1ubuntu1.6](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libxml2-2.9.4-dfsg1-6.1ubuntu1.6.md) | May 2, 2022 |
| Linux | libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.3 | [libxml2 2.9.10+dfsg-5ubuntu0.20.04.3](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libxml2-2.9.10-dfsg-5ubuntu0.20.04.3.md) | May 2, 2022 |
| Linux | libxml2 Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.1 | [libxml2 2.9.13+dfsg-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libxml2-2.9.13-dfsg-1ubuntu0.1.md) | May 2, 2022 |
| Linux | libxml2 amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | libxml2 ol 8 | 0:2.9.7-13.el8_6.1 | [ELSA-2022-5317](https://patchblox.com/security/data/fix/linux/elsa-2022-5317.md) | Jul 1, 2022 |
| Linux | libxml2 ol 9 | 0:2.9.13-1.el9_0.1 | [ELSA-2022-5250](https://patchblox.com/security/data/fix/linux/elsa-2022-5250.md) | Jun 30, 2022 |
| Linux | libxml2 rocky 8 | 0:2.9.7-13.el8_6.1 | [RLSA-2022:5317](https://patchblox.com/security/data/fix/linux/rlsa-2022-5317.md) | Jun 28, 2022 |
| Linux | libxml2 rocky 9 | 0:2.9.13-1.el9_0.1 | [RLSA-2022:5250](https://patchblox.com/security/data/fix/linux/rlsa-2022-5250.md) | Jun 28, 2022 |
| Linux | libxml2-debuginfo amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | libxml2-debugsource amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | libxml2-devel RHEL 8 | 0:2.9.7-13.el8_6.1 | [RHSA-2022:5317](https://patchblox.com/security/data/fix/linux/rhsa-2022-5317.md) | Jun 30, 2022 |
| Linux | libxml2-devel RHEL 9 | 0:2.9.13-1.el9_0.1 | [RHSA-2022:5250](https://patchblox.com/security/data/fix/linux/rhsa-2022-5250.md) | Jul 1, 2022 |
| Linux | libxml2-devel amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | libxml2-devel ol 8 | 0:2.9.7-13.el8_6.1 | [ELSA-2022-5317](https://patchblox.com/security/data/fix/linux/elsa-2022-5317.md) | Jul 1, 2022 |
| Linux | libxml2-devel ol 9 | 0:2.9.13-1.el9_0.1 | [ELSA-2022-5250](https://patchblox.com/security/data/fix/linux/elsa-2022-5250.md) | Jun 30, 2022 |
| Linux | libxml2-static amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | libxml2-utils Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.6 | [libxml2-utils 2.9.4+dfsg1-6.1ubuntu1.6](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libxml2-utils-2.9.4-dfsg1-6.1ubuntu1.6.md) | May 2, 2022 |
| Linux | libxml2-utils Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.3 | [libxml2-utils 2.9.10+dfsg-5ubuntu0.20.04.3](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libxml2-utils-2.9.10-dfsg-5ubuntu0.20.04.3.md) | May 2, 2022 |
| Linux | libxml2-utils Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.1 | [libxml2-utils 2.9.13+dfsg-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libxml2-utils-2.9.13-dfsg-1ubuntu0.1.md) | May 2, 2022 |
| Linux | python-libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.6 | [python-libxml2 2.9.4+dfsg1-6.1ubuntu1.6](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-libxml2-2.9.4-dfsg1-6.1ubuntu1.6.md) | May 2, 2022 |
| Linux | python-libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.3 | [python-libxml2 2.9.10+dfsg-5ubuntu0.20.04.3](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python-libxml2-2.9.10-dfsg-5ubuntu0.20.04.3.md) | May 2, 2022 |
| Linux | python3-libxml2 RHEL 8 | 0:2.9.7-13.el8_6.1 | [RHSA-2022:5317](https://patchblox.com/security/data/fix/linux/rhsa-2022-5317.md) | Jun 30, 2022 |
| Linux | python3-libxml2 RHEL 9 | 0:2.9.13-1.el9_0.1 | [RHSA-2022:5250](https://patchblox.com/security/data/fix/linux/rhsa-2022-5250.md) | Jul 1, 2022 |
| Linux | python3-libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.6 | [python3-libxml2 2.9.4+dfsg1-6.1ubuntu1.6](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-libxml2-2.9.4-dfsg1-6.1ubuntu1.6.md) | May 2, 2022 |
| Linux | python3-libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.3 | [python3-libxml2 2.9.10+dfsg-5ubuntu0.20.04.3](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-libxml2-2.9.10-dfsg-5ubuntu0.20.04.3.md) | May 2, 2022 |
| Linux | python3-libxml2 Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.1 | [python3-libxml2 2.9.13+dfsg-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-libxml2-2.9.13-dfsg-1ubuntu0.1.md) | May 2, 2022 |
| Linux | python3-libxml2 amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | python3-libxml2 ol 8 | 0:2.9.7-13.el8_6.1 | [ELSA-2022-5317](https://patchblox.com/security/data/fix/linux/elsa-2022-5317.md) | Jul 1, 2022 |
| Linux | python3-libxml2 ol 9 | 0:2.9.13-1.el9_0.1 | [ELSA-2022-5250](https://patchblox.com/security/data/fix/linux/elsa-2022-5250.md) | Jun 30, 2022 |
| Linux | python3-libxml2-debuginfo amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
