portage-ng / portage / app-arch / lz4 / 1.10.0-r1
portage-ng glsa
1 advisory reference app-arch/lz4 · none place version 1.10.0-r1 in a vulnerable range
▸ GLSA 202406-04 LZ4: Memory Corruption this version unaffected normal local 2024-06-22

A vulnerability has been discovered in LZ4, which can lead to memory corruption.

Announced
2024-06-22
Revised
2024-06-22
Access
local
Bugs
#791952
Advisory
https://security.gentoo.org/glsa/202406-04

Affected packages

PackageArchVulnerableUnaffected
app-arch/lz4*< 1.9.3-r1>= 1.9.3-r1

Background

LZ4 is a lossless compression algorithm, providing compression speed > 500 MB/s per core, scalable with multi-cores CPU. It features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems.

Description

An attacker who submits a crafted file to an application linked with lz4 may be able to trigger an integer overflow, leading to calling of memmove() on a negative size argument, causing an out-of-bounds write and/or a crash.

Impact

The greatest impact of this flaw is to availability, with some potential impact to confidentiality and integrity as well.

Workaround

There is no known workaround at this time.

Resolution

All LZ4 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/lz4-1.9.3-r1"

References