High [CVE-2025-6021] Libxml2: integer overflow in xmlbuildqname leads to stack buffer overflow in libxml2
This high-severity Red Hat Linux advisory covers CVE-2025-6021 affecting Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7 Extended Lifecycle Support, Red Hat Enterprise Linux 8.2 Advanced Update Support.
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.
Summary
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.
This vulnerability is rated Moderate due to the lack of confidentiality impact and limited integrity concerns, with the main risk being potential denial-of-service from a crash. Exploitation requires crafted XML input and specific application behavior using xmlBuildQName.
While it’s a write overflow, modern mitigations make remote code execution unlikely. Red Hat severity: Moderate — CVSS 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
Weakness: CWE-787.
Affected products named by the advisory: Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 7 Extended Lifecycle Support; Red Hat Enterprise Linux 8.2 Advanced Update Support; Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support; and 23 more.
Affected products named by the advisory: Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On; Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support; Red Hat Enterprise Linux 8.6 Telecommunications Update Service; Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions; and 19 more.
Affected versions
No affected-version range was extracted from the source record. The vendor advisory is authoritative — check it before change work.
Official advisory · high-confidence parse· fetched 50 minutes ago·verify at source
- libxml2-0:2.12.5-7.el10_0
- libxml2-0:2.9.1-6.el7_9.10
- libxml2-0:2.9.7-21.el8_10.1
- libxml2-0:2.9.7-9.el8_2.3
- libxml2-0:2.9.7-9.el8_4.6
- libxml2-0:2.9.7-13.el8_6.10
- libxml2-0:2.9.7-16.el8_8.9
- libxml2-0:2.9.13-10.el9_6
- libxml2-0:2.9.13-1.el9_0.5
- libxml2-0:2.9.13-3.el9_2.7
- libxml2-0:2.9.13-10.el9_4
- libxml2
- rhcos-412.86.202509030110-0
- rhcos-413.92.202509030117-0
- rhcos-414.92.202508041909-0
- rhcos-415.92.202508192014-0
- rhcos-416.94.202508050040-0
- rhcos-417.94.202508141510-0
- rhcos-418.94.202508060022-0
- rhcos-4.19.9.6.202507230107-0
- discovery/discovery-server-rhel9:2.0.1-1754478727
- libxml2-main-2.15.2-0.3.hum1
- insights-proxy/insights-proxy-container-rhel9:1.5.5-1754504343
- RHSA-2025:10630
- RHSA-2025:12240
- RHSA-2025:10698
- RHSA-2025:12237
- RHSA-2025:12241
- RHSA-2025:12098
- RHSA-2025:12239
- RHSA-2025:10699
- RHSA-2025:12099
- RHSA-2025:12199
- RHSA-2025:11580
- RHSA-2025:19020
- RHSA-2025:15308
- RHSA-2025:15672
- RHSA-2025:13289
- RHSA-2025:14396
- RHSA-2025:13336
- RHSA-2025:14059
- RHSA-2025:13325
- RHSA-2025:11673
Official advisory · high-confidence parse· fetched 50 minutes ago·verify at source
Mitigation checklist
- 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.
Official advisory · high-confidence parse· fetched 50 minutes ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.