cve.bz

CVE-2025-31115 tukaani-project xz: Race Condition within a Thread

8.7 highEPSS 0.7%

High (8.7) in tukaani-project xz. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 53rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-04-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-366 Race Condition within a Thread
CWE-416 Use After Free
CWE-476 NULL Pointer Dereference
CWE-826 Premature Release of Resource During Expected Lifetime
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-31115 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-31115?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-31115?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-31115 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
tukaani-project xz>= 5.3.3alpha, < 5.8.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12xz-utils5.4.1-1DEBIAN-CVE-2025-31115 DSA-5895-1
Debian13, 14xz-utils5.8.1-1DEBIAN-CVE-2025-31115
Ubuntu24.04:LTSxz-utils5.6.1+really5.4.5-1ubuntu0.2UBUNTU-CVE-2025-31115 USN-7414-1
Red Hatenterprise_linux:10.0xz, xz-libs, xz-devel and 5 more1:5.6.2-4.el10_0RHSA-2025:7524
SUSELinux Enterprise Module for Basesystem 15 SP6xz5.4.1-150600.3.3.1SUSE-SU-2025:1137-1
SUSELinux Micro 6.0xz5.4.3-5.1SUSE-SU-2025:20553-1
SUSELinux Micro 6.1xz5.4.3-slfo.1.1_2.1SUSE-SU-2025:20590-1
openSUSELeap 15.6xz5.4.1-150600.3.3.1SUSE-SU-2025:1137-1
openSUSETumbleweedxz5.8.1-1.1openSUSE-SU-2025:14984-1
AlmaLinux10xz, xz-libs, xz-devel and 1 more1:5.6.2-4.el10_0ALSA-2025:7524
Rocky Linux10xz1:5.6.2-4.el10_0RLSA-2025:7524
Alpinev3.18xz5.4.3-r1ALPINE-CVE-2025-31115
Alpinev3.19xz5.4.5-r1ALPINE-CVE-2025-31115
Alpinev3.20xz5.6.2-r1ALPINE-CVE-2025-31115
Alpinev3.21xz5.6.3-r1ALPINE-CVE-2025-31115
Alpinev3.22, v3.23, v3.24xz5.8.1-r0ALPINE-CVE-2025-31115
Azure Linux3xz5.4.4-2AZL-59497
Alpaquitastreamxz5.8.1-r0BELL-CVE-2025-31115
BellSoft Hardened Containersstreamxz5.8.1-r0BELL-CVE-2025-31115

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as important severity because a flaw exists in XZ Utils multithreaded .xz decoder within liblzma. When processing specially crafted compressed input, the decoder can trigger a heap use-after-free condition and perform memory writes to an address calculated from a null pointer plus an offset. These issues can reliably cause application crashes, leading to denial of service, and may allow memory corruption that affects process stability and security. Systems or applications decompressing untrusted .xz data with multithreaded decoding are at heightened risk of disruption and compromise.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10xz-1:5.6.2-4.el10_0Fixed 2025-05-13RHSA-2025:7524
Red Hat Enterprise Linux 6xzOut of support scope
Red Hat Enterprise Linux 7xzNot affected
Red Hat Enterprise Linux 8xzNot affected
Red Hat Enterprise Linux 9xzNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-31115.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-181-05XZ Utils vulnerability impacting B&R Products2026-06-10Critical ManufacturingB&R Industrial Automation GmbH PPC3100 <1.8.1, B&R Industrial Automation GmbH C50 <1.8.0, B&R Industrial Automation GmbH C80 <1.8.0 and 5 moreB&R Industrial Automation GmbH PPC3100 1.8.1, B&R Industrial Automation GmbH C50 1.8.0, B&R Industrial Automation GmbH C80 1.8.0 and 5 more
ICSA-25-162-05Siemens SIMATIC S7-1500 CPU family2025-06-10EnergySIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON