Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2
CVE-2025-6021 is fixed in 11 products on 1 platform, first by RHSA-2025:10630, released June 12, 2025. It is not reported as exploited. Patch Radar priority: High.
A flaw was found in libxml2's xmlBuildQName function, where integeroverflows in buffer size calculations can lead to a stack-based bufferoverflow. This issue can result in memory corruption or a denial of servicewhen processing crafted input.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| libxml2 · Debian 12.15 (bookworm) | 2.9.14+dfsg-1.3~deb12u3 | DEBIAN-CVE-2025-6021 | Jun 12, 2025 |
| libxml2 · Debian 13.5 (trixie) | 2.12.7+dfsg+really2.9.14-2 | DEBIAN-CVE-2025-6021 | Jun 12, 2025 |
| libxml2 · Debian 14 | 2.12.7+dfsg+really2.9.14-2 | DEBIAN-CVE-2025-6021 | Jun 12, 2025 |
| libxml2 · RHEL 10 | 2.12.5-7.el10_0 | RHSA-2025:10630 | Jun 12, 2025 |
| libxml2 · RHEL 8 | 0:2.9.7-21.el8_10.1 | RHSA-2025:10698 | Jul 9, 2025 |
| libxml2 · RHEL 9 | 0:2.9.13-10.el9_6 | RHSA-2025:10699 | Jul 9, 2025 |
| libxml2 · Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.9+esm4 | libxml2 2.9.4+dfsg1-6.1ubuntu1.9+esm4 | Jun 16, 2025 |
| 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 | Jun 16, 2025 |
| libxml2 · Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.8 | libxml2 2.9.13+dfsg-1ubuntu0.8 | Jun 16, 2025 |
| libxml2 · Ubuntu 24.04.5 LTS (noble) | 2.9.14+dfsg-1.3ubuntu3.4 | libxml2 2.9.14+dfsg-1.3ubuntu3.4 | Jun 16, 2025 |
| 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 | Jan 16, 2026 |
| libxml2 · almalinux 10 | 2.12.5-7.el10_0 | ALSA-2025:10630 | Jul 8, 2025 |
| libxml2 · almalinux 8 | 2.9.7-21.el8_10.1 | ALSA-2025:10698 | Jul 9, 2025 |
| libxml2 · almalinux 9 | 2.9.13-10.el9_6 | ALSA-2025:10699 | Jul 9, 2025 |
| libxml2 · amzn 2023 | 2.10.4-1.amzn2023.0.11 | ALAS2023-2025-1019 | Jun 18, 2025 |
| libxml2 · ol 10 | 0:2.12.5-7.el10_0 | ELSA-2025-10630 | Jul 8, 2025 |
| libxml2 · ol 8 | 0:2.9.7-21.el8_10.1 | ELSA-2025-10698 | Jul 9, 2025 |
| libxml2 · ol 9 | 0:2.9.13-10.el9_6 | ELSA-2025-10699 | Jul 9, 2025 |
| libxml2 · opensuse-leap 15.6 | 2.10.3-150500.5.29.1 | SUSE-SU-2025:02314-1 | Jul 15, 2025 |
| libxml2 · rocky 10 | 0:2.12.5-7.el10_0 | RLSA-2025:10630 | Oct 3, 2025 |
| libxml2 · rocky 8 | 0:2.9.7-21.el8_10.1 | RLSA-2025:10698 | Jul 29, 2025 |
| libxml2 · rocky 9 | 0:2.9.13-10.el9_6 | RLSA-2025:10699 | Oct 4, 2025 |
| libxml2 · sles 15.6 | 2.10.3-150500.5.29.1 | SUSE-SU-2025:02314-1 | Jul 15, 2025 |
| libxml2 · sles 15.7 | 2.12.10-150700.4.3.1 | SUSE-SU-2025:02260-1 | Jul 9, 2025 |
| libxml2-debuginfo · amzn 2023 | 2.10.4-1.amzn2023.0.11 | ALAS2023-2025-1019 | Jun 18, 2025 |
| libxml2-debugsource · amzn 2023 | 2.10.4-1.amzn2023.0.11 | ALAS2023-2025-1019 | Jun 18, 2025 |
| libxml2-devel · RHEL 8 | 0:2.9.7-21.el8_10.1 | RHSA-2025:10698 | Jul 9, 2025 |
| libxml2-devel · RHEL 9 | 0:2.9.13-10.el9_6 | RHSA-2025:10699 | Jul 9, 2025 |
| libxml2-devel · almalinux 10 | 2.12.5-7.el10_0 | ALSA-2025:10630 | Jul 8, 2025 |
| libxml2-devel · almalinux 8 | 2.9.7-21.el8_10.1 | ALSA-2025:10698 | Jul 9, 2025 |
| libxml2-devel · almalinux 9 | 2.9.13-10.el9_6 | ALSA-2025:10699 | Jul 9, 2025 |
| libxml2-devel · amzn 2023 | 2.10.4-1.amzn2023.0.11 | ALAS2023-2025-1019 | Jun 18, 2025 |
| libxml2-devel · ol 10 | 0:2.12.5-7.el10_0 | ELSA-2025-10630 | Jul 8, 2025 |
| libxml2-devel · ol 8 | 0:2.9.7-21.el8_10.1 | ELSA-2025-10698 | Jul 9, 2025 |
| libxml2-devel · ol 9 | 0:2.9.13-10.el9_6 | ELSA-2025-10699 | Jul 9, 2025 |
| libxml2-python · opensuse-leap 15.6 | 2.10.3-150500.5.29.1 | SUSE-SU-2025:02314-1 | Jul 15, 2025 |
| libxml2-python · sles 15.6 | 2.10.3-150500.5.29.1 | SUSE-SU-2025:02314-1 | Jul 15, 2025 |
| libxml2-python · sles 15.7 | 2.12.10-150700.4.3.1 | SUSE-SU-2025:02260-1 | Jul 9, 2025 |
| libxml2-static · almalinux 10 | 2.12.5-7.el10_0 | ALSA-2025:10630 | Jul 8, 2025 |
| libxml2-static · amzn 2023 | 2.10.4-1.amzn2023.0.11 | ALAS2023-2025-1019 | Jun 18, 2025 |
| libxml2-static · ol 10 | 0:2.12.5-7.el10_0 | ELSA-2025-10630 | Jul 8, 2025 |
| 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 | Jun 16, 2025 |
| 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 | Jun 16, 2025 |
| libxml2-utils · Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.8 | libxml2-utils 2.9.13+dfsg-1ubuntu0.8 | Jun 16, 2025 |
| libxml2-utils · Ubuntu 24.04.5 LTS (noble) | 2.9.14+dfsg-1.3ubuntu3.4 | libxml2-utils 2.9.14+dfsg-1.3ubuntu3.4 | Jun 16, 2025 |
| 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 | Jan 16, 2026 |
| 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 | Jun 16, 2025 |
| 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 | Jun 16, 2025 |
| python-libxml2-python · opensuse-leap 15.6 | 2.9.7-150000.3.82.1 | SUSE-SU-2025:02275-1 | Jul 10, 2025 |
| python3-libxml2 · RHEL 8 | 0:2.9.7-21.el8_10.1 | RHSA-2025:10698 | Jul 9, 2025 |
| python3-libxml2 · RHEL 9 | 0:2.9.13-10.el9_6 | RHSA-2025:10699 | Jul 9, 2025 |
| 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 | Jun 16, 2025 |
| 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 | Jun 16, 2025 |
| python3-libxml2 · Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.8 | python3-libxml2 2.9.13+dfsg-1ubuntu0.8 | Jun 16, 2025 |
| python3-libxml2 · Ubuntu 24.04.5 LTS (noble) | 2.9.14+dfsg-1.3ubuntu3.4 | python3-libxml2 2.9.14+dfsg-1.3ubuntu3.4 | Jun 16, 2025 |
| 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 | Jan 16, 2026 |
| python3-libxml2 · almalinux 10 | 2.12.5-7.el10_0 | ALSA-2025:10630 | Jul 8, 2025 |
| python3-libxml2 · almalinux 8 | 2.9.7-21.el8_10.1 | ALSA-2025:10698 | Jul 9, 2025 |
| python3-libxml2 · almalinux 9 | 2.9.13-10.el9_6 | ALSA-2025:10699 | Jul 9, 2025 |
| python3-libxml2 · amzn 2023 | 2.10.4-1.amzn2023.0.11 | ALAS2023-2025-1019 | Jun 18, 2025 |
| python3-libxml2 · ol 10 | 0:2.12.5-7.el10_0 | ELSA-2025-10630 | Jul 8, 2025 |
| python3-libxml2 · ol 8 | 0:2.9.7-21.el8_10.1 | ELSA-2025-10698 | Jul 9, 2025 |
| python3-libxml2 · ol 9 | 0:2.9.13-10.el9_6 | ELSA-2025-10699 | Jul 9, 2025 |
| python3-libxml2-debuginfo · amzn 2023 | 2.10.4-1.amzn2023.0.11 | ALAS2023-2025-1019 | Jun 18, 2025 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
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.