Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Web

Advisory Analysis

XZ Utils 5.8.5 Fixes Three Flaws in LZMA2, x86 BCJ and Threaded Encoder Code

According to oss-security, XZ Utils 5.8.5 was released with three security fixes covering version 5.8.4 and older. The flaws can cause data corruption, memory errors, or deadlocks, depending on the component and conditions.

Web

Key points

  • XZ Utils 5.8.5 fixes three advisories affecting version 5.8.4 and older.
  • The LZMA2 encoder bug can corrupt data and, with small dictionaries, cause invalid memory reads.
  • The x86 BCJ filter bug only affects buffers above 4 GiB, according to the report.
  • The threaded encoder bug can cause buffer overflows and deadlocks when reinitialized improperly.

Fixes in XZ Utils 5.8.5

According to oss-security, XZ Utils version 5.8.5 has been released and lists three security fixes. Each advisory concerns XZ Utils 5.8.4 and older. The same fixes have also been applied to the v5.8, v5.6, v5.4 and v5.2 Git branches.

The three advisories

  • GHSA-vhhh-g38j-pr8q (LZMA2 encoder): This flaw can corrupt data. The report says data recovery is likely possible with a modestly altered decoder. With dictionary sizes under 64 KiB, it may also cause invalid memory reads. Vladimir Kukharenko of GenProof reported it.
  • GHSA-6237-3fq8-r2hg (x86 BCJ filter): When the buffer given to the filter is larger than 4 GiB and holds suitable input, it can produce data corruption or a deadlock. Applications that process large files with smaller buffers are reported as unaffected. Kukharenko also reported this issue.
  • GHSA-jvh7-x64f-69mg (threaded encoder): Reinitializing lzma_stream_encoder_mt with a different lzma_mt.block_size can cause a buffer overflow. Reinitializing at any point other than after lzma_code returns LZMA_STREAM_END can corrupt data, cause a deadlock, or report wrong progress. A reporter identified only as Mar submitted this issue.

Scope and guidance

The source does not give CVE identifiers, severity scores, or information about active exploitation. It also does not describe workarounds other than moving to the fixed releases. For the full advisory text, see the original oss-security post.

What to do

  1. Upgrade XZ Utils to 5.8.5, or to the fixed v5.8, v5.6, v5.4 or v5.2 Git branch builds.
  2. Prioritize systems that use the LZMA2 encoder with dictionaries under 64 KiB, the x86 BCJ filter with buffers above 4 GiB, or the threaded encoder with reinitialization.
  3. Read the original oss-security post for the full advisory details.

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

oss-securityseclists.org

“XZ Utils 5.8.5 released with security fixes”

Posted by Alan Coopersmith on Dec 04 https://github.com/tukaani-project/xz/releases/tag/v5.8.5 and https://tukaani.org/xz/#_security_issues list the following as fixed in yesterday's 5.8.5 release: