Skip to content
OpenAdvisories
Unscored CVE-2021-3520 EUVD-2021-26836GHSA-gmc7-pqv9-966m

There's a flaw in lz4. An attacker who submits a crafted file to an application linked with lz4 may be able to trigger an integer overflow,…

Published Jun 2, 2021 · Updated Oct 14, 2026 · Assigned by redhat

Description

There's a flaw in lz4. 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. The greatest impact of this flaw is to availability, with some potential impact to confidentiality and integrity as well.

Affected products

VendorProductAffectedFixed
— lz4 lz4-1.8.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 lz4 1.9.3-2 —
Debian 13 lz4 1.9.3-2 —
Debian 12 lz4 1.9.3-2 —
Debian 10 lz4 1.8.3-1+deb10u1 DSA-4919-1
Debian 9 lz4 0.0~r131-2+deb9u1 DLA-2657-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS lz4 1.9.2-2ubuntu0.20.04.1 USN-4968-1
Ubuntu 18.04 LTS lz4 0.0~r131-2ubuntu3.1 USN-4968-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS lz4 0.0~r131-2ubuntu2+esm1 USN-4968-2
Ubuntu Pro 14.04 LTS lz4 0.0~r114-2ubuntu1+esm2 USN-4968-2
ReleasePackageFixed inAdvisory
RHEL 8 lz4 +2 1.8.3-3.el8_4 RHSA-2021:2575

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 lz4 +2 1.8.3-3.el8_4 ALSA-2021:2575

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 lz4 1.8.3-3.el8_4 RLSA-2021:2575
ReleasePackageFixed inAdvisory
SLES 15 SP3 lz4 1.9.2-3.3.1 SUSE-SU-2021:1825-1
SLES 15 SP2 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
SLES 15 SP1 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
SLES 15 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
SLES 12 SP5 lz4 1.8.0-3.3.1 SUSE-SU-2021:1613-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
SLES for SAP 15 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
SLE Micro 5.0 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
SLE HPC 15 SP1 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
SLE HPC 15 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
SUSE Manager Server 4.0 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
SUSE Manager Retail Branch Server 4.0 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
SUSE Manager Proxy 4.0 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
SUSE Enterprise Storage 6 lz4 1.8.0-3.8.1 SUSE-SU-2021:1647-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed lz4 1.9.3-2.1 openSUSE-SU-2024:11562-1
openSUSE Leap 15.3 lz4 1.9.2-3.3.1 openSUSE-SU-2021:1825-1
openSUSE Leap 15.2 lz4 +1 1.8.0-lp152.5.3.1 openSUSE-SU-2021:0760-1
ReleasePackageFixed inAdvisory
Alpine v3.24 lz4 1.9.3-r1 —
Alpine v3.23 lz4 1.9.3-r1 —
Alpine v3.22 lz4 1.9.3-r1 —
Alpine v3.21 lz4 1.9.3-r1 —
Alpine v3.20 lz4 1.9.3-r1 —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 lz4 1.9.3-r1 —
Alpine v3.18 lz4 1.9.3-r1 —
Alpine v3.17 lz4 1.9.3-r1 —
Alpine v3.16 lz4 1.9.3-r1 —
Alpine v3.15 lz4 1.9.3-r1 —
Alpine v3.14 lz4 1.9.3-r1 —
Alpine v3.13 lz4 1.9.2-r1 —
Alpine v3.12 lz4 1.9.2-r1 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 lz4 +3 1.9.4-1.amzn2023.0.2 ALAS2023-2023-015

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 suitesparse No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 lz4 +2 1.8.3-3.el8_4 ELSA-2021-2575

Advisories 21

References