Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2

Summary

CVECVE-2025-6021
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-06-12 13:15:25 UTC
Updated2026-04-19 20:16:22 UTC
DescriptionA flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calculations can lead to a stack-based buffer overflow. This issue can result in memory corruption or a denial of service when processing crafted input.

Risk And Classification

Primary CVSS: v3.1 7.5 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS: 0.021160000 probability, percentile 0.841470000 (date 2026-04-19)

Problem Types: CWE-787 | CWE-787 Out-of-bounds Write


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1CNACVSS7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Redhat Enterprise Linux 10.0 All All All
Operating System Redhat Enterprise Linux 8.0 All All All
Operating System Redhat Enterprise Linux 9.0 All All All
Operating System Redhat Enterprise Linux Eus 10.0 All All All
Operating System Redhat Enterprise Linux Eus 8.4 All All All
Operating System Redhat Enterprise Linux Eus 8.6 All All All
Operating System Redhat Enterprise Linux Eus 8.8 All All All
Operating System Redhat Enterprise Linux Eus 9.4 All All All
Operating System Redhat Enterprise Linux Eus 9.6 All All All
Operating System Redhat Enterprise Linux For Arm 64 10.0_aarch64 All All All
Operating System Redhat Enterprise Linux For Arm 64 8.0_aarch64 All All All
Operating System Redhat Enterprise Linux For Arm 64 9.0_aarch64 All All All
Operating System Redhat Enterprise Linux For Arm 64 9.4_aarch64 All All All
Operating System Redhat Enterprise Linux For Arm 64 Eus 10.0_aarch64 All All All
Operating System Redhat Enterprise Linux For Arm 64 Eus 9.4_aarch64 All All All
Operating System Redhat Enterprise Linux For Arm 64 Eus 9.6_aarch64 All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems 10.0_s390x All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems 8.0_s390x All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems 9.4_s390x All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems Eus 10.0_s390x All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems Eus 9.0_s390x All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems Eus 9.4_s390x All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems Eus 9.6_s390x All All All
Operating System Redhat Enterprise Linux For Power Little Endian 10.0_ppc64le All All All
Operating System Redhat Enterprise Linux For Power Little Endian 8.0_ppc64le All All All
Operating System Redhat Enterprise Linux For Power Little Endian 9.0_ppc64le All All All
Operating System Redhat Enterprise Linux For Power Little Endian Eus 10.0_ppc64le All All All
Operating System Redhat Enterprise Linux For Power Little Endian Eus 9.4_ppc64le All All All
Operating System Redhat Enterprise Linux For Power Little Endian Eus 9.6_ppc64le All All All
Operating System Redhat Enterprise Linux Server 7.0 All All All
Operating System Redhat Enterprise Linux Server Aus 8.2 All All All
Operating System Redhat Enterprise Linux Server Aus 8.4 All All All
Operating System Redhat Enterprise Linux Server Aus 8.6 All All All
Operating System Redhat Enterprise Linux Server Aus 9.2 All All All
Operating System Redhat Enterprise Linux Server Aus 9.4 All All All
Operating System Redhat Enterprise Linux Server Aus 9.6 All All All
Operating System Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions 9.4_ppc64le All All All
Operating System Redhat Enterprise Linux Server Tus 8.8 All All All
Operating System Redhat In-vehicle Operating System 1.0 All All All
Application Redhat Jboss Core Services - All All All
Application Redhat Openshift Container Platform 4.12 All All All
Application Redhat Openshift Container Platform 4.13 All All All
Application Redhat Openshift Container Platform 4.14 All All All
Application Redhat Openshift Container Platform 4.15 All All All
Application Redhat Openshift Container Platform 4.16 All All All
Application Redhat Openshift Container Platform 4.17 All All All
Application Redhat Openshift Container Platform 4.18 All All All
Application Redhat Openshift Container Platform For Arm64 4.13 All All All
Application Redhat Openshift Container Platform For Arm64 4.14 All All All
Application Redhat Openshift Container Platform For Arm64 4.15 All All All
Application Redhat Openshift Container Platform For Arm64 4.16 All All All
Application Redhat Openshift Container Platform For Arm64 4.17 All All All
Application Redhat Openshift Container Platform For Arm64 4.18 All All All
Application Redhat Openshift Container Platform For Ibm Z 4.13 All All All
Application Redhat Openshift Container Platform For Ibm Z 4.14 All All All
Application Redhat Openshift Container Platform For Ibm Z 4.15 All All All
Application Redhat Openshift Container Platform For Ibm Z 4.16 All All All
Application Redhat Openshift Container Platform For Ibm Z 4.17 All All All
Application Redhat Openshift Container Platform For Ibm Z 4.18 All All All
Application Redhat Openshift Container Platform For Linuxone 4.13 All All All
Application Redhat Openshift Container Platform For Linuxone 4.14 All All All
Application Redhat Openshift Container Platform For Linuxone 4.15 All All All
Application Redhat Openshift Container Platform For Linuxone 4.16 All All All
Application Redhat Openshift Container Platform For Linuxone 4.17 All All All
Application Redhat Openshift Container Platform For Linuxone 4.18 All All All
Application Redhat Openshift Container Platform For Power 4.13 All All All
Application Redhat Openshift Container Platform For Power 4.14 All All All
Application Redhat Openshift Container Platform For Power 4.15 All All All
Application Redhat Openshift Container Platform For Power 4.16 All All All
Application Redhat Openshift Container Platform For Power 4.17 All All All
Application Redhat Openshift Container Platform For Power 4.18 All All All
Application Xmlsoft Libxml2 All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 10 unaffected 0:2.12.5-7.el10_0 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support unaffected 0:2.9.1-6.el7_9.10 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:2.9.7-21.el8_10.1 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:2.9.7-21.el8_10.1 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support unaffected 0:2.9.7-9.el8_2.3 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support unaffected 0:2.9.7-9.el8_4.6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On unaffected 0:2.9.7-9.el8_4.6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support unaffected 0:2.9.7-13.el8_6.10 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service unaffected 0:2.9.7-13.el8_6.10 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Update Services For SAP Solutions unaffected 0:2.9.7-13.el8_6.10 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service unaffected 0:2.9.7-16.el8_8.9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.8 Update Services For SAP Solutions unaffected 0:2.9.7-16.el8_8.9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:2.9.13-10.el9_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:2.9.13-10.el9_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.0 Update Services For SAP Solutions unaffected 0:2.9.13-1.el9_0.5 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.2 Update Services For SAP Solutions unaffected 0:2.9.13-3.el9_2.7 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support unaffected 0:2.9.13-10.el9_4 * rpm Not specified
CNA Red Hat Red Hat JBoss Core Services 2.4.62.SP2 Not specified Not specified
CNA Red Hat Red Hat OpenShift Container Platform 4.12 unaffected 412.86.202509030110-0 * rpm Not specified
CNA Red Hat Red Hat OpenShift Container Platform 4.13 unaffected 413.92.202509030117-0 * rpm Not specified
CNA Red Hat Red Hat OpenShift Container Platform 4.14 unaffected 414.92.202508041909-0 * rpm Not specified
CNA Red Hat Red Hat OpenShift Container Platform 4.15 unaffected 415.92.202508192014-0 * rpm Not specified
CNA Red Hat Red Hat OpenShift Container Platform 4.16 unaffected 416.94.202508050040-0 * rpm Not specified
CNA Red Hat Red Hat OpenShift Container Platform 4.17 unaffected 417.94.202508141510-0 * rpm Not specified
CNA Red Hat Red Hat OpenShift Container Platform 4.18 unaffected 418.94.202508060022-0 * rpm Not specified
CNA Red Hat Red Hat OpenShift Container Platform 4.19 unaffected 4.19.9.6.202507230107-0 * rpm Not specified
CNA Red Hat Red Hat Discovery 2 unaffected sha256:ad07f55ee75fb20310c88f154a04665bd8465d138d66c665c300f61447858344 * rpm Not specified
CNA Red Hat Red Hat Hardened Images unaffected 2.15.2-0.3.hum1 * rpm Not specified
CNA Red Hat Red Hat Insights Proxy 1.5 unaffected sha256:c26d589f12647890b67aaa986f54d3f7c6f7f2563fb5a73f38d559e6138739d7 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/errata/RHSA-2026:7519 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2025:11580 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:10698 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:12241 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:13336 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:15672 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:10699 [email protected] access.redhat.com Third Party Advisory
lists.debian.org/debian-lts-announce/2025/07/msg00014.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
access.redhat.com/errata/RHSA-2025:12240 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:12199 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:10630 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:13335 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:14059 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/security/cve/CVE-2025-6021 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:12239 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:19020 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2025:13325 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:15308 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:12098 [email protected] access.redhat.com Third Party Advisory
bugzilla.redhat.com/show_bug.cgi [email protected] bugzilla.redhat.com Issue Tracking
gitlab.gnome.org/GNOME/libxml2/-/issues/926 134c704f-9b21-4f2e-91b3-4a467353bcc0 gitlab.gnome.org Exploit, Issue Tracking, Vendor Advisory
access.redhat.com/errata/RHSA-2025:12237 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:11673 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2025:14396 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:13267 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:13289 [email protected] access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2025:12099 [email protected] access.redhat.com Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Red Hat would like to thank Ahmed Lekssays for reporting this issue. (en)

Additional Advisory Data

SourceTimeEvent
CNA2025-06-12T07:55:45.428ZReported to Red Hat.
CNA2025-06-12T00:00:00.000ZMade public.

Workarounds

CNA: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. Users are strongly advised to apply vendor-supplied patches as soon as they become available to address the underlying integer overflow flaw in the affected code.

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report