CVEfocus › CVE database › CVE-2025-31115

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

CVSS 8.7 HighEPSS 1.0% (higher than 61% of CVEs)Published 2025-04-03Updated 2026-10-15Assigner: GitHub_M

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.

CWE-366CWE-416CWE-476CWE-826

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

20Fixed
4Will not fix
14Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04xz-utilsFixed5.6.1+really5.4.5-1ubuntu0.2UBUNTU-CVE-2025-31115
Ubuntu 22.04xz-utilsNot affected
vulnerable_code_not_present
Debian 14xz-utilsFixed5.8.1-1DEBIAN-CVE-2025-31115
Debian 13xz-utilsFixed5.8.1-1DEBIAN-CVE-2025-31115
Debian 12xz-utilsFixed5.4.1-1DEBIAN-CVE-2025-31115
Red Hat Enterprise Linux 10xzFixed1:5.6.2-4.el10_0RHSA-2025:7524
Red Hat Enterprise Linux 10xz-develFixed1:5.6.2-4.el10_0RHSA-2025:7524
Red Hat Enterprise Linux 10xz-libsFixed1:5.6.2-4.el10_0RHSA-2025:7524
Red Hat Enterprise Linux 10xz-lzma-compatFixed1:5.6.2-4.el10_0RHSA-2025:7524
Red Hat Enterprise Linux 9xzNot affected
Red Hat Enterprise Linux 9xz-develNot affected
Red Hat Enterprise Linux 9xz-libsNot affected
Red Hat Enterprise Linux 9xz-lzma-compatNot affected
Red Hat Enterprise Linux 8xzNot affected
Red Hat Enterprise Linux 8xz-develNot affected
Red Hat Enterprise Linux 8xz-libsNot affected
Red Hat Enterprise Linux 8xz-lzma-compatNot affected
Red Hat Enterprise Linux 7xzNot affected
Red Hat Enterprise Linux 7xz-compat-libsNot affected
Red Hat Enterprise Linux 7xz-develNot affected
Red Hat Enterprise Linux 7xz-libsNot affected
Red Hat Enterprise Linux 7xz-lzma-compatNot affected
Red Hat Enterprise Linux 6xzWill not fix
Out of support scope
Red Hat Enterprise Linux 6xz-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6xz-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6xz-lzma-compatWill not fix
Out of support scope
AlmaLinux 10xzFixed1:5.6.2-4.el10_0ALSA-2025:7524
AlmaLinux 10xz-develFixed1:5.6.2-4.el10_0ALSA-2025:7524
AlmaLinux 10xz-libsFixed1:5.6.2-4.el10_0ALSA-2025:7524
AlmaLinux 10xz-lzma-compatFixed1:5.6.2-4.el10_0ALSA-2025:7524
Rocky Linux 10xzFixed1:5.6.2-4.el10_0RLSA-2025:7524
Alpine Linux 3.24xzFixed5.8.1-r0ALPINE-CVE-2025-31115
Alpine Linux 3.23xzFixed5.8.1-r0ALPINE-CVE-2025-31115
Alpine Linux 3.22xzFixed5.8.1-r0ALPINE-CVE-2025-31115
Alpine Linux 3.21xzFixed5.6.3-r1ALPINE-CVE-2025-31115
Alpine Linux 3.20xzFixed5.6.2-r1ALPINE-CVE-2025-31115
Alpine Linux 3.19xzFixed5.4.5-r1ALPINE-CVE-2025-31115
Alpine Linux 3.18xzFixed5.4.3-r1ALPINE-CVE-2025-31115

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.