CVE-2025-31115: tukaani-project xz Race Condition within a Thread
Vulnerability summary
CVE-2025-31115 is a high (CVSS 8.7) Race Condition within a Thread vulnerability in tukaani-project xz. EPSS estimates a 0.66% chance of exploitation in the next 30 days, higher than 50.7% of scored vulnerabilities.
Timeline
- 03-04-2025PublishedVulnerability first disclosed.
- 15-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- NVDNIST8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.66%
Chance of exploitation in the next 30 days
Percentile
51%
Versus all other CVEs
30-day change
+0.01 pp
From 0.65% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-366Race Condition within a ThreadIf two threads of execution use a resource simultaneously, there exists the possibility that resources may be used while invalid, in turn making the state of execution undefined.
- CWE-416Use After FreeThe product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
- CWE-476NULL Pointer DereferenceThe product dereferences a pointer that it expects to be valid but is NULL.
- CWE-826Premature Release of Resource During Expected LifetimeThe product releases a resource that is still intended to be used by itself or another actor.
Affected systems
Redhat8 products
- xz< 1:5.6.2-4.el10_0
- xz-debuginfo< 1:5.6.2-4.el10_0
- xz-debugsource< 1:5.6.2-4.el10_0
- xz-devel< 1:5.6.2-4.el10_0
- xz-libs< 1:5.6.2-4.el10_0
Suse3 products
- xz&distro=SUSE Linux Enterprise Module for Basesystem 15 SP6< 5.4.1-150600.3.3.1
- xz&distro=SUSE Linux Micro 6.0< 5.4.3-5.1
- xz&distro=SUSE Linux Micro 6.1< 5.4.3-slfo.1.1_2.1
Opensuse2 products
- xz&distro=openSUSE Leap 15.6< 5.4.1-150600.3.3.1
- xz&distro=openSUSE Tumbleweed< 5.8.1-1.1
Alpine1 product
- xz< 5.4.3-r1 | < 5.4.5-r1 | < 5.6.2-r1 | < 5.6.3-r1 | < 5.8.1-r0
Debian1 product
- xz-utils< 5.8.1-1 | < 5.4.1-1
Mageia1 product
- xz< 5.4.3-1.1.mga9
Tukaani-project1 product
- xz≥ 5.3.3alpha, < 5.8.1
Ubuntu1 product
- xz-utils< 5.6.1+really5.4.5-1ubuntu0.2
8 vendors · 18 products
References
27 links- github.com/tukaani-project/xz/commit/d5a2ffe41bb77b918a8c96084885d4dbe4bf6480X Refsource MISCARTICLE
Show all 27 references
- lists.opensuse.org/archives/…Advisory