Список включает 3 версии программы XZ Utils — с 31 марта 2026 г. по текущую версию 5.8.5. Каждая версия ведёт на установщики с сервера разработчика.
| Версия | Дата | Размер | Файлы |
|---|---|---|---|
| 5.8.5Последняя | 3 декабря 2026 г. | — | 64-бит ZIP32-бит ZIP Список измененийIMPORTANT: This includes security fixes. These and a few other fixes have also been committed to the old stable branches (v5.2, v5.4, and v5.6) in the xz Git repository. Those fixes are marked below. No new 5.2.x, 5.4.x, or 5.6.x releases will be made.
5.8.5 (2026-12-03)
* liblzma:
- Fix a data corruption bug in the LZMA2 encoder. The issue was
found via code analysis; no one has reported actual data
corruption. Creating a test file to trigger this bug isn't
straightforward, and at the time of this release, no such
files are known.
If the bug is triggered in a debug build, an assertion will
fail. In non-debug builds, a corrupt file is created. It
should usually be recoverable if one knows that the corruption
is due to this bug.
If the dictionary size is smaller than 64 KiB (uncommon) and
some extra conditions are met, triggering the bug can result
in memory reads a few bytes before the beginning of an array.
In this case, if the encoder doesn't crash, the resulting
corrupt file won't be recoverable.
The bug is specific to liblzma; it wasn't inherited from
LZMA SDK, and XZ for Java has done this detail differently
from the beginning.
This is tracked as GHSA-vhhh-g38j-pr8q.
The bug was reported by Vladimir Kukharenko (GenProof).
(Also in v5.2, v5.4, and v5.6.)
- Fix data corruption or deadlock in the x86 BCJ filter when
the buffer passed to the filter function exceeds 4 GiB and
contains appropriate input data. Apps, that use smaller
buffers to process large files, aren't affected. The code
was revised, and the new code is both simpler and faster.
This is tracked as GHSA-6237-3fq8-r2hg.
The bug was reported by Vladimir Kukharenko (GenProof).
(Also in v5.2, v5.4, and v5.6.)
- Fix reinitialization bugs in lzma_stream_encoder_mt():
* Reinitialization with different lzma_mt.block_size could
result in a buffer overflow. It should crash easily, yet
this bug wasn't found until now. So it seems that few
applications can trigger it. For example, xz cannot.
* If the encoder was reinitialized in some other situation
than after lzma_code() has returned LZMA_STREAM_END, the
reinitialized encoder could corrupt data, deadlock, or
show wrong progress indicator information. In xz this was
possible after memory allocation failure or I/O error.
These are tracked as GHSA-jvh7-x64f-69mg.
The bugs were reported by Mar.
(Also in v5.2, v5.4, and v5.6.)
- lzma_alone_decoder() and lzma_raw_decoder() with
LZMA_FILTER_LZMA1EXT: Fix detection of an optional LZMA
end marker. Decoding failed with LZMA_DATA_ERROR if all input
bytes needed to decode the end marker weren't provided in the
same lzma_code() call. That is, the failure depended how the
input file was split into chunks by an application.
(Also in v5.2, v5.4, and v5.6.)
- lzma_stream_decoder_mt():
* Fix a double free if a mutex or condition variable
initialization failed.
* Fix a mutex and condition variable leak on lzma_end().
* Fix lzma_memusage() after lzma_code() has returned
LZMA_MEMLIMIT_ERROR. The reported memory usage requirement
was too low (usually 32 KiB). Increasing the limit to that
value with lzma_memlimit_set() incorrectly succeeded, but
lzma_code() still returned LZMA_MEMLIMIT_ERROR and
decoding couldn't be continued.
(Also in v5.4 and v5.6.)
- Fixes that affect lzma_memusage(), lzma_memlimit_get(), and
lzma_memlimit_set() when used with specific decoders:
* lzma_stream_decoder(), lzma_alone_decoder(), and
lzma_lzip_decoder(): After decoder reinitialization,
include the still-allocated cached memory from the
previous decoder instance in the current memory usage.
lzma_auto_decoder() and lzma_stream_decoder_mt() already
did this.
* lzma_auto_decoder(): After decoder reinitialization with
a different memory usage limit, make lzma_memlimit_get()
return the current limit, not the previous limit. In
debug builds, fix a related assertion failure, which also
occurred with lzma_memusage() and lzma_memlimit_set().
- lzma_stream_decoder(), lzma_stream_decoder_mt(),
lzma_alone_decoder(), lzma_auto_ |
| 5.8.4 | 9 сентября 2026 г. | — | 64-бит ZIP32-бит ZIP Список измененийIMPORTANT: This includes a fix for a security issue that affects all XZ Utils versions since 5.0.0. This and a few other fixes have also been committed to the old stable branches (v5.2, v5.4, and v5.6) in the xz Git repository. Those fixes are marked below. No new 5.2.x, 5.4.x, or 5.6.x releases will be made.
5.8.4 (2026-09-09)
* liblzma:
- lzma_alone_decoder(), lzma_lzip_decoder(),
lzma_auto_decoder(), and lzma_microlzma_decoder(): Fix an
invalid memory access after memory allocation has failed and
the application reinitializes the existing decoder to decode
a different file. This bug could at least result in a crash.
This is tracked as GHSA-5qpq-xqfv-j9pg. CVE number is pending.
(Also in v5.2, v5.4, and v5.6.)
- lzma_stream_buffer_decode(): Fix wrong error code and,
in debug builds, assertion failure. LZMA_BUF_ERROR could
be returned with truncated inputs while LZMA_DATA_ERROR
is the correct one in this function.
(Also in v5.2, v5.4, and v5.6.)
- Fix a performance issue in the typical use case of
lzma_index_cat(). Internally liblzma calls it from
lzma_file_info_decoder(), so that was affected too. The
problem occurred if the input .xz file was created by
concatenating a large number of .xz files. A crafted file
could make "xz --list" very slow or effectively hang.
Normal decompression doesn't use these functions and
thus wasn't affected.
(Also in v5.2, v5.4, and v5.6.)
- Fix a theoretical integer overflow in lzma_index_cat().
(Also in v5.2, v5.4, and v5.6.)
- Fix bogus memory usage report in lzma_index_decoder() when
the .xz Index is obviously invalid. A huge bogus value could
cause an integer overflow in lzma_file_info_decoder()'s
memory usage reporting due to a missing overflow check,
making lzma_memused() report an incorrect tiny value. This
bug didn't affect the memory usage limiter in these two
decoders; only the reporting via lzma_memused() was affected.
(Also in v5.2, v5.4, and v5.6.)
- Fix a too low memory usage report in lzma_index_decoder()
if lzma_memused() is called after a part of the Index has
already been decoded. The typical use case is to call
lzma_memused() immediately after LZMA_MEMLIMIT_ERROR,
which did work correctly.
- Fix copying of check type in lzma_index_dup(). Calling
lzma_index_checks() on the duplicated lzma_index returned
return garbage a result. lzma_index_dup() is rarely used;
liblzma doesn't use it internally and xz itself doesn't use
it either.
(Also in v5.2, v5.4, and v5.6.)
- lzma_file_info_decoder() and lzma_index_decoder(): Reject
an obviously-invalid Number of Records field earlier.
(Partially also in v5.2, v5.4, and v5.6.)
- Fix a missing synchronization in the threaded .xz decoder. It
could make lzma_get_progress() return incorrect progress info.
(Also in v5.4 and v5.6.)
- Detect certain kinds of corrupt inputs slightly earlier in
the LZMA2 decoder.
- ARM64 and LoongArch: Don't use aligned reads on unaligned
buffers. This makes the code work on strict-align processors
and fixes a sanitizer error in other cases. (Since 5.7.1alpha)
* xz:
- Fix a use-after-free when showing an error message if --files
or --files0 was specified in the environment variables XZ_OPT
or XZ_DEFAULTS.
(Also in v5.2, v5.4, and v5.6.)
- Fix a use-after-free bug when --verbose is used and
standard error isn't a terminal. (Since 5.7.1alpha)
- Make it an error if the totals in "xz --list" exceed the range
of 64-bit integers.
(Also in v5.2, v5.4, and v5.6.)
* xz and xzdec on Linux:
- Add support for Landlock ABI version 9.
- Use fallback macros for Landlock ABI version 2, 3, and 5
(but not 4) if <linux/landlock.h> is older than ABI version 5.
This makes the binary slightly more protected if it is run on
a kernel that supports newer ABIs than <linux/landlock.h>.
* Scripts:
- xzgrep: Fix handling of the ' char at the end of a command
line option. For example, the following tricked xzgrep to
run "id": xzgrep "-e'" "-e;id;'" somefile
(Also in v5.2, v5.4, and v5.6.)
- xzdiff: Use the C locale (LC_ALL=C) with "sed" and "ex |
| 5.8.3 | 31 марта 2026 г. | — | 64-бит ZIP32-бит ZIP |