Skip to content
OpenAdvisories
High · 8.7 CVE-2025-31115 EUVD-2025-14786GHSA-6cc8-p5mm-29w2HSEC-2025-0003

XZ has a heap-use-after-free bug in threaded .xz decoder

Published Apr 3, 2025 · Updated Oct 15, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
tukaani-project xz >= 5.3.3alpha, < 5.8.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 xz-utils 5.8.1-1 —
Debian 13 xz-utils 5.8.1-1 —
Debian 12 xz-utils 5.4.1-1 DSA-5895-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS xz-utils 5.6.1+really5.4.5-1ubuntu0.2 USN-7414-1
ReleasePackageFixed inAdvisory
RHEL 10 xz +3 1:5.6.2-4.el10_0 RHSA-2025:7524

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 xz +3 1:5.6.2-4.el10_0 ALSA-2025:7524

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 xz 1:5.6.2-4.el10_0 RLSA-2025:7524
ReleasePackageFixed inAdvisory
SLES 15 SP6 xz 5.4.1-150600.3.3.1 SUSE-SU-2025:1137-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 6.1 xz 5.4.3-slfo.1.1_2.1 SUSE-SU-2025:20590-1
SLE Micro 6.0 xz 5.4.3-5.1 SUSE-SU-2025:20553-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed xz 5.8.1-1.1 openSUSE-SU-2025:14984-1
openSUSE Leap 15.6 xz 5.4.1-150600.3.3.1 SUSE-SU-2025:1137-1
ReleasePackageFixed inAdvisory
Alpine v3.24 xz 5.8.1-r0 —
Alpine v3.23 xz 5.8.1-r0 —
Alpine v3.22 xz 5.8.1-r0 —
Alpine v3.21 xz 5.6.3-r1 —
Alpine v3.20 xz 5.6.2-r1 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 xz 5.4.5-r1 —
Alpine v3.18 xz 5.4.3-r1 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 xz 5.4.4-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 xz +3 1:5.6.2-4.el10_0 ELSA-2025-7524

Affected packages

EcosystemPackageAffectedFixedRecord
Hackage xz-clib >= 5.6.3, < 5.8.1 5.8.1 HSEC-2025-0003

Advisories 17

References