High [CVE-2025-7425] heap use-after-free in libxslt caused by atype corruption in xmlattrptr
This high-severity Red Hat Linux advisory covers CVE-2025-7425 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 libxslt where the attribute type, atype, flags are modified in a way that corrupts internal memory management. When XSLT functions, such as the key() process, result in tree fragments, this corruption prevents the proper cleanup of ID attributes.
As a result, the system may access freed memory, causing crashes or enabling attackers to trigger heap corruption. This heap-use-after-free vulnerability in libxslt is rated Important because it can lead to memory corruption and application crashes.
The flaw arises when internal attribute metadata (atype) is modified by libxslt's xsltSetSourceNodeFlags() function during processing of result tree fragments. If the flag corruption prevents proper removal of ID references, later memory cleanup routines may operate on already-freed memory.
Since libxslt is commonly used in server-side XML processing, this could result in denial-of-service or potentially facilitate code execution under certain memory reuse conditions. Red Hat severity: Important — CVSS 7.8 (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H).
Weakness: CWE-416.
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 30 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 4 days ago·verify at source
- libxml2-0:2.12.5-8.el10_0
- libxslt-0:1.1.39-8.el10_0
- libxml2-0:2.9.1-6.el7_9.12
- libxml2-0:2.9.7-21.el8_10.2
- libxml2-0:2.9.7-9.el8_2.4
- libxml2-0:2.9.7-9.el8_4.7
- libxml2-0:2.9.7-13.el8_6.11
- libxml2-0:2.9.7-16.el8_8.10
- libxml2-0:2.9.13-11.el9_6
- libxml2-0:2.9.13-1.el9_0.6
- libxml2-0:2.9.13-3.el9_2.8
- libxml2-0:2.9.13-11.el9_4
- rhcos-412.86.202509030110-0
- rhcos-413.92.202509030117-0
- rhcos-414.92.202508270040-0
- rhcos-415.92.202508192014-0
- rhcos-416.94.202508261955-0
- rhcos-417.94.202508141510-0
- rhcos-418.94.202508261658-0
- rhcos-4.19.9.6.202508271124-0
- web-terminal/web-terminal-rhel9-operator:1.11-19
- web-terminal/web-terminal-tooling-rhel9:1.11-8
- web-terminal/web-terminal-tooling-rhel9:1.12-4
- openshift-serverless-1/logic-data-index-ephemeral-rhel8:1.36.0-11
- openshift-serverless-1/logic-data-index-postgresql-rhel8:1.36.0-11
- openshift-serverless-1/logic-db-migrator-tool-rhel8:1.36.0-11
- openshift-serverless-1/logic-jobs-service-ephemeral-rhel8:1.36.0-10
- openshift-serverless-1/logic-jobs-service-postgresql-rhel8:1.36.0-10
- openshift-serverless-1/logic-kn-workflow-cli-artifacts-rhel8:1.36.0-4
- openshift-serverless-1/logic-management-console-rhel8:1.36.0-9
- openshift-serverless-1/logic-operator-bundle:1.36.0-12
- openshift-serverless-1/logic-rhel8-operator:1.36.0-18
- openshift-serverless-1/logic-swf-builder-rhel8:1.36.0-11
- openshift-serverless-1/logic-swf-devmode-rhel8:1.36.0-7
- cert-manager/jetstack-cert-manager-rhel9:v1.16.5-1760515757
- compliance/openshift-compliance-must-gather-rhel8:1.8.0
- compliance/openshift-compliance-openscap-rhel8:1.8.0
- compliance/openshift-compliance-rhel8-operator:1.8.0
- compliance/openshift-file-integrity-rhel8-operator:v1.3
- discovery/discovery-server-rhel9:2.0.1-1754478727
- RHBA-2025:12345
- RHSA-2025:13464
- RHSA-2025:12450
- RHSA-2025:13308
- RHSA-2025:13310
- RHSA-2025:13311
- RHSA-2025:13313
- RHSA-2025:12447
- RHSA-2025:13309
- RHSA-2025:13314
Official advisory · high-confidence parse· fetched 4 days ago·verify at source
Mitigation checklist
- Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Official advisory · high-confidence parse· fetched 4 days 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.