CVE-2025-31115
Description
XZ Utils provide a general-purpose data-compression library plus command-line tools. In XZ Utils 5.3.3alpha to 5.8.0, the multithreaded .xz decoder in liblzma has a bug where invalid input can at least result in a crash. The effects include heap use after free and writing to an address based on the null pointer plus an offset. Applications and libraries that use the lzma_stream_decoder_mt function are affected. The bug has been fixed in XZ Utils 5.8.1, and the fix has been committed to the v5.4, v5.6, v5.8, and master branches in the xz Git repository. No new release packages will be made from the old stable branches, but a standalone patch is available that applies to all affected releases.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
12v5.3.3alpha, v5.3.4alpha, v5.3.5beta, …+ 1 more
- (no CPE)range: v5.3.3alpha, v5.3.4alpha, v5.3.5beta, …
- (no CPE)range: >=5.3.3alpha, <=5.8.0
- osv-coords10 versionspkg:hackage/xz-clibpkg:rpm/almalinux/xzpkg:rpm/almalinux/xz-develpkg:rpm/almalinux/xz-libspkg:rpm/almalinux/xz-lzma-compatpkg:rpm/opensuse/xz&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/xz&distro=openSUSE%20Tumbleweedpkg:rpm/suse/xz&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6pkg:rpm/suse/xz&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/xz&distro=SUSE%20Linux%20Micro%206.1
>= 5.6.3, < 5.8.1+ 9 more
- (no CPE)range: >= 5.6.3, < 5.8.1
- (no CPE)range: < 1:5.6.2-4.el10_0
- (no CPE)range: < 1:5.6.2-4.el10_0
- (no CPE)range: < 1:5.6.2-4.el10_0
- (no CPE)range: < 1:5.6.2-4.el10_0
- (no CPE)range: < 5.4.1-150600.3.3.1
- (no CPE)range: < 5.8.1-1.1
- (no CPE)range: < 5.4.1-150600.3.3.1
- (no CPE)range: < 5.4.3-5.1
- (no CPE)range: < 5.4.3-slfo.1.1_2.1
Patches
Vulnerability mechanics
References
7- www.openwall.com/lists/oss-security/2025/04/03/1nvd
- www.openwall.com/lists/oss-security/2025/04/03/2nvd
- www.openwall.com/lists/oss-security/2025/04/03/3nvd
- cert-portal.siemens.com/productcert/html/ssa-082556.htmlnvd
- github.com/tukaani-project/xz/commit/d5a2ffe41bb77b918a8c96084885d4dbe4bf6480nvd
- github.com/tukaani-project/xz/security/advisories/GHSA-6cc8-p5mm-29w2nvd
- tukaani.org/xz/xz-cve-2025-31115.patchnvd
News mentions
1- XZ Utils vulnerability impacting B&R ProductsCISA ICS Advisories