Amazon Linux 2 Security Advisory: ALAS2-2025-2977
Advisory Released Date: 2025-09-04
Advisory Updated Date: 2025-09-04
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. (CVE-2025-7425)
Affected Packages:
libxml2
Note:
This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.
Issue Correction:
Run yum update libxml2 or yum update --advisory ALAS2-2025-2977 to update your system.
aarch64:
libxml2-2.9.1-6.amzn2.5.20.aarch64
libxml2-devel-2.9.1-6.amzn2.5.20.aarch64
libxml2-static-2.9.1-6.amzn2.5.20.aarch64
libxml2-python-2.9.1-6.amzn2.5.20.aarch64
libxml2-debuginfo-2.9.1-6.amzn2.5.20.aarch64
i686:
libxml2-2.9.1-6.amzn2.5.20.i686
libxml2-devel-2.9.1-6.amzn2.5.20.i686
libxml2-static-2.9.1-6.amzn2.5.20.i686
libxml2-python-2.9.1-6.amzn2.5.20.i686
libxml2-debuginfo-2.9.1-6.amzn2.5.20.i686
src:
libxml2-2.9.1-6.amzn2.5.20.src
x86_64:
libxml2-2.9.1-6.amzn2.5.20.x86_64
libxml2-devel-2.9.1-6.amzn2.5.20.x86_64
libxml2-static-2.9.1-6.amzn2.5.20.x86_64
libxml2-python-2.9.1-6.amzn2.5.20.x86_64
libxml2-debuginfo-2.9.1-6.amzn2.5.20.x86_64