CVE-2025-6021
Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2
- State
- Published
- Severity
- 7.5 High
- Published
- Jun 12, 2025
- Updated
- Oct 12, 2026
- Reserved
- Jun 12, 2025
Description
A 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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | redhat |
Weaknesses
- CWE-787 Out-of-bounds Write
Affected Products
| Product | Versions |
|---|---|
libxml2 |
|
Red Hat Enterprise Linux 10Red Hat |
|
Red Hat Enterprise Linux 7 Extended Lifecycle SupportRed Hat |
|
Red Hat Enterprise Linux 8Red Hat |
|
Red Hat Enterprise Linux 8Red Hat |
|
Red Hat Enterprise Linux 8.2 Advanced Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnRed Hat |
|
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceRed Hat |
|
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRed Hat |
|
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 9.4 Extended Update SupportRed Hat |
|
Red Hat JBoss Core Services 2.4.62.SP2Red Hat | |
Red Hat OpenShift Container Platform 4.12Red Hat |
|
Red Hat OpenShift Container Platform 4.13Red Hat |
|
Red Hat OpenShift Container Platform 4.14Red Hat |
|
Red Hat OpenShift Container Platform 4.15Red Hat |
|
Red Hat OpenShift Container Platform 4.16Red Hat |
|
Red Hat OpenShift Container Platform 4.17Red Hat |
|
Red Hat OpenShift Container Platform 4.18Red Hat |
|
Red Hat OpenShift Container Platform 4.19Red Hat |
|
Red Hat Discovery 2Red Hat |
|
Red Hat Hardened ImagesRed Hat |
|
Red Hat Insights proxy 1.5Red Hat |
|
Red Hat Enterprise Linux 6Red Hat |
References
- RHSA-2025:10630vendor-advisory
- RHSA-2025:10698vendor-advisory
- RHSA-2025:10699vendor-advisory
- RHSA-2025:11580vendor-advisory
- RHSA-2025:11673vendor-advisory
- RHSA-2025:12098vendor-advisory
- RHSA-2025:12099vendor-advisory
- RHSA-2025:12199vendor-advisory
- RHSA-2025:12237vendor-advisory
- RHSA-2025:12239vendor-advisory
- RHSA-2025:12240vendor-advisory
- RHSA-2025:12241vendor-advisory
- RHSA-2025:13267vendor-advisory
- RHSA-2025:13289vendor-advisory
- RHSA-2025:13325vendor-advisory
- RHSA-2025:13335vendor-advisory
- RHSA-2025:13336vendor-advisory
- RHSA-2025:14059vendor-advisory
- RHSA-2025:14396vendor-advisory
- RHSA-2025:15308vendor-advisory
- RHSA-2025:15672vendor-advisory
- RHSA-2025:19020vendor-advisory
- RHSA-2026:7519vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-6021vdb-entry
- RHBZ#2372406issue-tracking
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/926
- https://lists.debian.org/debian-lts-announce/2025/07/msg00014.html
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.