CVE-2025-31115
published high CVSS 4.0 · 8.7XZ has a heap-use-after-free bug in threaded .xz decoder
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| tukaani-project | — | xz>= 5.3.3alpha, < 5.8.1 | Affected | Not stated | GitHub_M |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 10 | xz | Advisory build | 1:5.6.2-4.el10_0 | ALSA-2025:7524 |
| Alpine Linux | edge | xz | Fixed | 5.8.1-r0 | Package fix record |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Oracle Linux | 10 | xzaarch64 | Advisory build | 1:5.6.2-4.el10_0 | ELSA-2025-7524 |
| Red Hat Enterprise Linux | RHEL-10 | xzaarch64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| SUSE / openSUSE | SLE-15-SP6 | xzaarch64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| Debian | bookworm | xz-utils | Advisory build | 5.4.1-1 | DSA-5895-1 |
| Alpine Linux | v3.18 | xz | Fixed | 5.4.3-r1 | Package fix record |
| Alpine Linux | v3.19 | xz | Fixed | 5.4.5-r1 | Package fix record |
| Alpine Linux | v3.20 | xz | Fixed | 5.6.2-r1 | Package fix record |
| Alpine Linux | v3.21 | xz | Fixed | 5.6.3-r1 | Package fix record |
| Alpine Linux | v3.22 | xz | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.23 | xz | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.24 | xz | Fixed | 5.8.1-r0 | Package fix record |
| Oracle Linux | 10 | xzx86_64 | Advisory build | 1:5.6.2-4.el10_0 | ELSA-2025-7524 |
| Red Hat Enterprise Linux | RHEL-10 | xzppc64le | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xzs390x | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xzsrc | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xzx86_64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| SUSE / openSUSE | SLE-15-SP6 | xzppc64le | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | xzs390x | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | xzx86_64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xzaarch64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xzppc64le | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xzs390x | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xzx86_64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xzaarch64 | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2025:14984-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xzppc64le | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2025:14984-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xzs390x | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2025:14984-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xzx86_64 | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2025:14984-1 |
| AlmaLinux | 10 | xz-devel | Advisory build | 1:5.6.2-4.el10_0 | ALSA-2025:7524 |
| AlmaLinux | 10 | xz-libs | Advisory build | 1:5.6.2-4.el10_0 | ALSA-2025:7524 |
| AlmaLinux | 10 | xz-lzma-compat | Advisory build | 1:5.6.2-4.el10_0 | ALSA-2025:7524 |
| Oracle Linux | 10 | xz-develaarch64 | Advisory build | 1:5.6.2-4.el10_0 | ELSA-2025-7524 |
| Oracle Linux | 10 | xz-develx86_64 | Advisory build | 1:5.6.2-4.el10_0 | ELSA-2025-7524 |
| Oracle Linux | 10 | xz-libsaarch64 | Advisory build | 1:5.6.2-4.el10_0 | ELSA-2025-7524 |
| Oracle Linux | 10 | xz-libsx86_64 | Advisory build | 1:5.6.2-4.el10_0 | ELSA-2025-7524 |
| Oracle Linux | 10 | xz-lzma-compataarch64 | Advisory build | 1:5.6.2-4.el10_0 | ELSA-2025-7524 |
| Oracle Linux | 10 | xz-lzma-compatx86_64 | Advisory build | 1:5.6.2-4.el10_0 | ELSA-2025-7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-debuginfoaarch64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-debuginfoppc64le | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-debuginfos390x | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-debuginfox86_64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-debugsourceaarch64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-debugsourceppc64le | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-debugsources390x | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-debugsourcex86_64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-develaarch64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-develppc64le | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-devels390x | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-develx86_64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-libsaarch64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-libsppc64le | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-libss390x | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-libsx86_64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-libs-debuginfoaarch64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-libs-debuginfoppc64le | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-libs-debuginfos390x | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-libs-debuginfox86_64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-lzma-compataarch64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-lzma-compatppc64le | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-lzma-compats390x | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-lzma-compatx86_64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-lzma-compat-debuginfoaarch64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-lzma-compat-debuginfoppc64le | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-lzma-compat-debuginfos390x | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| Red Hat Enterprise Linux | RHEL-10 | xz-lzma-compat-debuginfox86_64 | Advisory build | 1:5.6.2-4.el10_0 | RHSA-2025:7524 |
| SUSE / openSUSE | SLE-15-SP6 | liblzma5aarch64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | liblzma5ppc64le | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | liblzma5s390x | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | liblzma5x86_64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | liblzma5-32bitx86_64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | xz-develaarch64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | xz-develppc64le | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | xz-devels390x | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | xz-develx86_64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | xz-langnoarch | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | xz-static-develaarch64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | xz-static-develppc64le | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | xz-static-devels390x | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | SLE-15-SP6 | xz-static-develx86_64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | liblzma5aarch64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | liblzma5ppc64le | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | liblzma5s390x | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | liblzma5x86_64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | liblzma5-32bitx86_64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xz-develaarch64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xz-develppc64le | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xz-devels390x | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xz-develx86_64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xz-devel-32bitx86_64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xz-langnoarch | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xz-static-develaarch64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xz-static-develppc64le | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xz-static-devels390x | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | xz-static-develx86_64 | Advisory build | 5.4.1-150600.3.3.1 | SUSE-SU-2025:1137-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblzma5aarch64 | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2025:14984-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblzma5ppc64le | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2025:14984-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblzma5s390x | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2025:14984-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblzma5x86_64 | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2025:14984-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblzma5-32bitaarch64 | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2025:14984-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| tukaani-project | xz | >= 5.3.3alpha, < 5.8.1 (affected) | GitHub_M · cna |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
4- CWE-366 CWE-366: Race Condition within a Thread
- CWE-416 CWE-416: Use After Free
- CWE-476 CWE-476: NULL Pointer Dereference
- CWE-826 CWE-826: Premature Release of Resource During Expected Lifetime
References
7- http://www.openwall.com/lists/oss-security/2025/04/03/1
- http://www.openwall.com/lists/oss-security/2025/04/03/2
- http://www.openwall.com/lists/oss-security/2025/04/03/3
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html
- https://github.com/tukaani-project/xz/commit/d5a2ffe41bb77b918a8c96084885d4dbe4bf6480
- https://github.com/tukaani-project/xz/security/advisories/GHSA-6cc8-p5mm-29w2
- https://tukaani.org/xz/xz-cve-2025-31115.patch
Provider assertions
4GitHub_M · cna
XZ has a heap-use-after-free bug in threaded .xz decoder
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 38eca8957939cd01f5d28c4a095479e5d20f12768a83578ac95f15c5130effdc
- Ingested
- 15 Oct 2026, 13:12:09 UTC
- Source record
- Official CVE record