# CVE-2025-6170: Libxml2: stack buffer overflow in xmllint interactive shell command handling

CVE-2025-6170 is fixed in 8 products on 1 platform, first by RHSA-2026:70596, released June 16, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-6170
- Priority: Routine
- CVSS: 2.5 (Low)
- EPSS: 0.0032
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 16, 2025
- Weakness: Stack-based Buffer Overflow
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-6170

## Description

A flaw was found in the interactive shell of the xmllint command-line tool,used for parsing XML files. When a user inputs an overly long command, theprogram does not check the input size properly, which can cause it tocrash. This issue might allow attackers to run harmful code in rareconfigurations without modern protections.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libxml2 Debian 12.15 (bookworm) | 2.9.14+dfsg-1.3~deb12u3 | [DEBIAN-CVE-2025-6170](https://patchblox.com/security/data/fix/linux/debian-cve-2025-6170.md) | Jun 16, 2025 |
| Linux | libxml2 Debian 13.5 (trixie) | 2.12.7+dfsg+really2.9.14-2.1 | [DEBIAN-CVE-2025-6170](https://patchblox.com/security/data/fix/linux/debian-cve-2025-6170.md) | Jun 16, 2025 |
| Linux | libxml2 Debian 14 | 2.12.7+dfsg+really2.9.14-2.1 | [DEBIAN-CVE-2025-6170](https://patchblox.com/security/data/fix/linux/debian-cve-2025-6170.md) | Jun 16, 2025 |
| Linux | libxml2 RHEL 10 | 2.12.5-9.el10_0.2 | [RHSA-2026:70596](https://patchblox.com/security/data/fix/linux/rhsa-2026-70596.md) | Jun 16, 2025 |
| Linux | libxml2 RHEL 8 | 0:2.9.7-21.el8_10.6 | [RHSA-2026:36734](https://patchblox.com/security/data/fix/linux/rhsa-2026-36734.md) | Jul 9, 2026 |
| Linux | libxml2 RHEL 9 | 0:2.9.13-14.el9_8.2 | [RHSA-2026:39317](https://patchblox.com/security/data/fix/linux/rhsa-2026-39317.md) | Jul 18, 2026 |
| Linux | libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.9+esm4 | [libxml2 2.9.4+dfsg1-6.1ubuntu1.9+esm4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libxml2-2.9.4-dfsg1-6.1ubuntu1.9-esm4.md) | Jun 16, 2025 |
| Linux | libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.10+esm1 | [libxml2 2.9.10+dfsg-5ubuntu0.20.04.10+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libxml2-2.9.10-dfsg-5ubuntu0.20.04.10-esm1.md) | Jun 16, 2025 |
| Linux | libxml2 Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.8 | [libxml2 2.9.13+dfsg-1ubuntu0.8](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libxml2-2.9.13-dfsg-1ubuntu0.8.md) | Jun 16, 2025 |
| Linux | libxml2 Ubuntu 24.04.5 LTS (noble) | 2.9.14+dfsg-1.3ubuntu3.4 | [libxml2 2.9.14+dfsg-1.3ubuntu3.4](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libxml2-2.9.14-dfsg-1.3ubuntu3.4.md) | Jun 16, 2025 |
| Linux | libxml2 Ubuntu 25.04 (plucky) | 2.12.7+dfsg+really2.9.14-0.4ubuntu0.2 | [libxml2 2.12.7+dfsg+really2.9.14-0.4ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libxml2-2.12.7-dfsg-really2.9.14-0.4ubuntu0.2.md) | Jan 16, 2026 |
| Linux | libxml2 almalinux 10 | 2.12.5-10.el10_2.2 | [ALSA-2026:39304](https://patchblox.com/security/data/fix/linux/alsa-2026-39304.md) | Jul 14, 2026 |
| Linux | libxml2 almalinux 8 | 2.9.7-21.el8_10.6 | [ALSA-2026:36734](https://patchblox.com/security/data/fix/linux/alsa-2026-36734.md) | Jul 8, 2026 |
| Linux | libxml2 almalinux 9 | 2.9.13-14.el9_8.2 | [ALSA-2026:39317](https://patchblox.com/security/data/fix/linux/alsa-2026-39317.md) | Jul 14, 2026 |
| Linux | libxml2 ol 10 | 0:2.12.5-10.el10_2.2 | [ELSA-2026-39304](https://patchblox.com/security/data/fix/linux/elsa-2026-39304.md) | Jul 16, 2026 |
| Linux | libxml2 ol 8 | 0:2.9.7-21.el8_10.6 | [ELSA-2026-36734](https://patchblox.com/security/data/fix/linux/elsa-2026-36734.md) | Jul 8, 2026 |
| Linux | libxml2 ol 9 | 0:2.9.13-14.el9_8.2 | [ELSA-2026-39317](https://patchblox.com/security/data/fix/linux/elsa-2026-39317.md) | Jul 14, 2026 |
| Linux | libxml2 opensuse-leap 15.6 | 2.10.3-150500.5.29.1 | [SUSE-SU-2025:02314-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02314-1.md) | Jul 15, 2025 |
| Linux | libxml2 rocky 10 | 0:2.12.5-10.el10_2.2 | [RLSA-2026:39304](https://patchblox.com/security/data/fix/linux/rlsa-2026-39304.md) | Jul 15, 2026 |
| Linux | libxml2 rocky 8 | 0:2.9.7-21.el8_10.6 | [RLSA-2026:36734](https://patchblox.com/security/data/fix/linux/rlsa-2026-36734.md) | Jul 9, 2026 |
| Linux | libxml2 rocky 9 | 0:2.9.13-14.el9_8.2 | [RLSA-2026:39317](https://patchblox.com/security/data/fix/linux/rlsa-2026-39317.md) | Jul 15, 2026 |
| Linux | libxml2 sles 15.6 | 2.10.3-150500.5.29.1 | [SUSE-SU-2025:02314-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02314-1.md) | Jul 15, 2025 |
| Linux | libxml2 sles 15.7 | 2.12.10-150700.4.3.1 | [SUSE-SU-2025:02260-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02260-1.md) | Jul 9, 2025 |
| Linux | libxml2-devel RHEL 8 | 0:2.9.7-21.el8_10.6 | [RHSA-2026:36734](https://patchblox.com/security/data/fix/linux/rhsa-2026-36734.md) | Jul 9, 2026 |
| Linux | libxml2-devel RHEL 9 | 0:2.9.13-14.el9_8.2 | [RHSA-2026:39317](https://patchblox.com/security/data/fix/linux/rhsa-2026-39317.md) | Jul 18, 2026 |
| Linux | libxml2-devel almalinux 10 | 2.12.5-10.el10_2.2 | [ALSA-2026:39304](https://patchblox.com/security/data/fix/linux/alsa-2026-39304.md) | Jul 14, 2026 |
| Linux | libxml2-devel almalinux 8 | 2.9.7-21.el8_10.6 | [ALSA-2026:36734](https://patchblox.com/security/data/fix/linux/alsa-2026-36734.md) | Jul 8, 2026 |
| Linux | libxml2-devel almalinux 9 | 2.9.13-14.el9_8.2 | [ALSA-2026:39317](https://patchblox.com/security/data/fix/linux/alsa-2026-39317.md) | Jul 14, 2026 |
| Linux | libxml2-devel ol 10 | 0:2.12.5-10.el10_2.2 | [ELSA-2026-39304](https://patchblox.com/security/data/fix/linux/elsa-2026-39304.md) | Jul 16, 2026 |
| Linux | libxml2-devel ol 8 | 0:2.9.7-21.el8_10.6 | [ELSA-2026-36734](https://patchblox.com/security/data/fix/linux/elsa-2026-36734.md) | Jul 8, 2026 |
| Linux | libxml2-devel ol 9 | 0:2.9.13-14.el9_8.2 | [ELSA-2026-39317](https://patchblox.com/security/data/fix/linux/elsa-2026-39317.md) | Jul 14, 2026 |
| Linux | libxml2-python opensuse-leap 15.6 | 2.10.3-150500.5.29.1 | [SUSE-SU-2025:02314-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02314-1.md) | Jul 15, 2025 |
| Linux | libxml2-python sles 15.6 | 2.10.3-150500.5.29.1 | [SUSE-SU-2025:02314-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02314-1.md) | Jul 15, 2025 |
| Linux | libxml2-python sles 15.7 | 2.12.10-150700.4.3.1 | [SUSE-SU-2025:02260-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02260-1.md) | Jul 9, 2025 |
| Linux | libxml2-static almalinux 10 | 2.12.5-10.el10_2.2 | [ALSA-2026:39304](https://patchblox.com/security/data/fix/linux/alsa-2026-39304.md) | Jul 14, 2026 |
| Linux | libxml2-static ol 10 | 0:2.12.5-10.el10_2.2 | [ELSA-2026-39304](https://patchblox.com/security/data/fix/linux/elsa-2026-39304.md) | Jul 16, 2026 |
| Linux | libxml2-utils Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.9+esm4 | [libxml2-utils 2.9.4+dfsg1-6.1ubuntu1.9+esm4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libxml2-utils-2.9.4-dfsg1-6.1ubuntu1.9-esm4.md) | Jun 16, 2025 |
| Linux | libxml2-utils Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.10+esm1 | [libxml2-utils 2.9.10+dfsg-5ubuntu0.20.04.10+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libxml2-utils-2.9.10-dfsg-5ubuntu0.20.04.10-esm1.md) | Jun 16, 2025 |
| Linux | libxml2-utils Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.8 | [libxml2-utils 2.9.13+dfsg-1ubuntu0.8](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libxml2-utils-2.9.13-dfsg-1ubuntu0.8.md) | Jun 16, 2025 |
| Linux | libxml2-utils Ubuntu 24.04.5 LTS (noble) | 2.9.14+dfsg-1.3ubuntu3.4 | [libxml2-utils 2.9.14+dfsg-1.3ubuntu3.4](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libxml2-utils-2.9.14-dfsg-1.3ubuntu3.4.md) | Jun 16, 2025 |
| Linux | libxml2-utils Ubuntu 25.04 (plucky) | 2.12.7+dfsg+really2.9.14-0.4ubuntu0.2 | [libxml2-utils 2.12.7+dfsg+really2.9.14-0.4ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libxml2-utils-2.12.7-dfsg-really2.9.14-0.4ubuntu0.2.md) | Jan 16, 2026 |
| Linux | python-libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.9+esm4 | [python-libxml2 2.9.4+dfsg1-6.1ubuntu1.9+esm4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-libxml2-2.9.4-dfsg1-6.1ubuntu1.9-esm4.md) | Jun 16, 2025 |
| Linux | python-libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.10+esm1 | [python-libxml2 2.9.10+dfsg-5ubuntu0.20.04.10+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python-libxml2-2.9.10-dfsg-5ubuntu0.20.04.10-esm1.md) | Jun 16, 2025 |
| Linux | python-libxml2-python opensuse-leap 15.6 | 2.9.7-150000.3.82.1 | [SUSE-SU-2025:02275-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02275-1.md) | Jul 10, 2025 |
| Linux | python3-libxml2 RHEL 8 | 0:2.9.7-21.el8_10.6 | [RHSA-2026:36734](https://patchblox.com/security/data/fix/linux/rhsa-2026-36734.md) | Jul 9, 2026 |
| Linux | python3-libxml2 RHEL 9 | 0:2.9.13-14.el9_8.2 | [RHSA-2026:39317](https://patchblox.com/security/data/fix/linux/rhsa-2026-39317.md) | Jul 18, 2026 |
| Linux | python3-libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.9+esm4 | [python3-libxml2 2.9.4+dfsg1-6.1ubuntu1.9+esm4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-libxml2-2.9.4-dfsg1-6.1ubuntu1.9-esm4.md) | Jun 16, 2025 |
| Linux | python3-libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.10+esm1 | [python3-libxml2 2.9.10+dfsg-5ubuntu0.20.04.10+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-libxml2-2.9.10-dfsg-5ubuntu0.20.04.10-esm1.md) | Jun 16, 2025 |
| Linux | python3-libxml2 Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.8 | [python3-libxml2 2.9.13+dfsg-1ubuntu0.8](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-libxml2-2.9.13-dfsg-1ubuntu0.8.md) | Jun 16, 2025 |
| Linux | python3-libxml2 Ubuntu 24.04.5 LTS (noble) | 2.9.14+dfsg-1.3ubuntu3.4 | [python3-libxml2 2.9.14+dfsg-1.3ubuntu3.4](https://patchblox.com/security/data/fix/linux/ubuntu-noble-python3-libxml2-2.9.14-dfsg-1.3ubuntu3.4.md) | Jun 16, 2025 |
| Linux | python3-libxml2 Ubuntu 25.04 (plucky) | 2.12.7+dfsg+really2.9.14-0.4ubuntu0.2 | [python3-libxml2 2.12.7+dfsg+really2.9.14-0.4ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-python3-libxml2-2.12.7-dfsg-really2.9.14-0.4ubuntu0.2.md) | Jan 16, 2026 |
| Linux | python3-libxml2 almalinux 10 | 2.12.5-10.el10_2.2 | [ALSA-2026:39304](https://patchblox.com/security/data/fix/linux/alsa-2026-39304.md) | Jul 14, 2026 |
| Linux | python3-libxml2 almalinux 8 | 2.9.7-21.el8_10.6 | [ALSA-2026:36734](https://patchblox.com/security/data/fix/linux/alsa-2026-36734.md) | Jul 8, 2026 |
| Linux | python3-libxml2 almalinux 9 | 2.9.13-14.el9_8.2 | [ALSA-2026:39317](https://patchblox.com/security/data/fix/linux/alsa-2026-39317.md) | Jul 14, 2026 |
| Linux | python3-libxml2 ol 10 | 0:2.12.5-10.el10_2.2 | [ELSA-2026-39304](https://patchblox.com/security/data/fix/linux/elsa-2026-39304.md) | Jul 16, 2026 |
| Linux | python3-libxml2 ol 8 | 0:2.9.7-21.el8_10.6 | [ELSA-2026-36734](https://patchblox.com/security/data/fix/linux/elsa-2026-36734.md) | Jul 8, 2026 |
| Linux | python3-libxml2 ol 9 | 0:2.9.13-14.el9_8.2 | [ELSA-2026-39317](https://patchblox.com/security/data/fix/linux/elsa-2026-39317.md) | Jul 14, 2026 |

---

Data as of 2026-11-08T13:06:02Z 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.
