portage-ng / portage / app-arch / xz-utils / 9999
portage-ng glsa
3 advisories reference app-arch/xz-utils · none place version 9999 in a vulnerable range
▸ GLSA 202504-01 XZ Utils: Use after free this version unaffected normal remote 2025-04-05

A vulnerability has been discovered in XZ Utils, which could lead to denial of service.

Announced
2025-04-05
Revised
2025-04-05
Access
remote
Bugs
#953086
Advisory
https://security.gentoo.org/glsa/202504-01

Affected packages

PackageArchVulnerableUnaffected
app-arch/xz-utils*< 5.6.4-r1>= 5.6.4-r1

Background

XZ Utils is free general-purpose data compression software with a high compression ratio.

Description

A use-after-free has been discovered in XZ utils. Please review the CVE identifier referenced below for details.

Impact

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. It's unlikely one can achieve more than a crash if xz is built with PIE on a 64-bit system especially, as is done in Gentoo by default.

Workaround

There is no known workaround at this time.

Resolution

All XZ utils users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/xz-utils-5.6.4-r1"

References

▸ GLSA 202403-04 XZ utils: Backdoor in release tarballs this version unaffected high remote 2024-03-29

A backdoor has been discovered in XZ utils that could lead to remote compromise of systems.

Announced
2024-03-29
Revised
2024-05-29 (revision 2)
Access
remote
Bugs
#928134
Advisory
https://security.gentoo.org/glsa/202403-04

Affected packages

PackageArchVulnerableUnaffected
app-arch/xz-utils*= 5.6.0, = 5.6.1< 5.6.0, > 5.6.1

Background

XZ Utils is free general-purpose data compression software with a high compression ratio.

Description

A backdoor has been discovered in XZ utils. Please review the CVE identifier referenced below for details.

Impact

Our current understanding of the backdoor is that is does not affect Gentoo systems, because 1. the backdoor only appears to be included on specific systems and Gentoo does not qualify; 2. the backdoor as it is currently understood targets OpenSSH patched to work with systemd-notify support. Gentoo does not support or include these patches; Analysis is still ongoing, however, and additional vectors may still be identified. For this reason we are still issuing this advisory as if that will be the case.

Workaround

There is no known workaround at this time.

Resolution

All XZ utils users should upgrade to the latest fixed version, or downgrade to the latest version before the backdoor was introduced:

# emerge --sync
# emerge --ask --oneshot --verbose ">app-arch/xz-utils-5.6.1"
# emerge --sync
# emerge --ask --oneshot --verbose "<app-arch/xz-utils-5.6.0"

References

▸ GLSA 202209-01 GNU Gzip, XZ Utils: Arbitrary file write this version unaffected high remote 2022-09-07

A vulnerability has been discovered in GNU Gzip and XZ Utils' grep helpers which could result in writes to arbitrary files.

Announced
2022-09-07
Revised
2022-09-07
Access
remote
Bugs
#837152 #837155
Advisory
https://security.gentoo.org/glsa/202209-01

Affected packages

PackageArchVulnerableUnaffected
app-arch/gzip*< 1.12>= 1.12
app-arch/xz-utils*< 5.2.5>= 5.2.5

Background

GNU Gzip is a popular data compression program. XZ Utils is free general-purpose data compression software with a high compression ratio.

Description

GNU Gzip and XZ Utils' grep helpers do not sufficiently validate certain multi-line file names.

Impact

In some cases, writing to arbitrary files such as shell initialization files can be escalation to remote code execution.

Workaround

Ensuring only trusted input is passed to GNU Gzip and XZ Utils' grep helpers minimizes the potential impact.

Resolution

All GNU Gzip users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/gzip-1.12"

All XZ Utils users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/xz-utils-5.2.5"

References