CVEfocus › CVE database › CVE-2021-3520

CVE-2021-3520

EPSS 2.9% (higher than 88% of CVEs)Published 2021-06-02Updated 2026-10-14Assigner: redhat

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.

CWE-190

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu, crates.io: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

26Fixed
2Fix pending
3Will not fix
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04lz4Not affected
vulnerable_code_not_present
Ubuntu 20.04lz4Fixed1.9.2-2ubuntu0.20.04.1UBUNTU-CVE-2021-3520
Ubuntu 18.04lz4Fixed0.0~r131-2ubuntu3.1UBUNTU-CVE-2021-3520
Ubuntu 16.04lz4Fix pending0.0~r131-2ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-3520
Ubuntu 14.04lz4Fix pending0.0~r114-2ubuntu1+esm2 (Ubuntu Pro)UBUNTU-CVE-2021-3520
Debian 14lz4Fixed1.9.3-2DEBIAN-CVE-2021-3520
Debian 13lz4Fixed1.9.3-2DEBIAN-CVE-2021-3520
Debian 12lz4Fixed1.9.3-2DEBIAN-CVE-2021-3520
Red Hat Enterprise Linux 9lz4Not affected
Red Hat Enterprise Linux 9lz4-develNot affected
Red Hat Enterprise Linux 9lz4-libsNot affected
Red Hat Enterprise Linux 8lz4Fixed0:1.8.3-3.el8_4RHSA-2021:2575
Red Hat Enterprise Linux 8lz4-develFixed0:1.8.3-3.el8_4RHSA-2021:2575
Red Hat Enterprise Linux 8lz4-libsFixed0:1.8.3-3.el8_4RHSA-2021:2575
Red Hat Enterprise Linux 7lz4Will not fix
Out of support scope
Red Hat Enterprise Linux 7lz4-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7lz4-staticWill not fix
Out of support scope
AlmaLinux 8lz4Fixed1.8.3-3.el8_4ALSA-2021:2575
AlmaLinux 8lz4-develFixed1.8.3-3.el8_4ALSA-2021:2575
AlmaLinux 8lz4-libsFixed1.8.3-3.el8_4ALSA-2021:2575
Rocky Linux 8lz4Fixed0:1.8.3-3.el8_4RLSA-2021:2575
Alpine Linux 3.24lz4Fixed1.9.3-r1ALPINE-CVE-2021-3520
Alpine Linux 3.23lz4Fixed1.9.3-r1ALPINE-CVE-2021-3520
Alpine Linux 3.22lz4Fixed1.9.3-r1ALPINE-CVE-2021-3520
Alpine Linux 3.21lz4Fixed1.9.3-r1ALPINE-CVE-2021-3520
Alpine Linux 3.20lz4Fixed1.9.3-r1ALPINE-CVE-2021-3520
Alpine Linux 3.19lz4Fixed1.9.3-r1ALPINE-CVE-2021-3520
Alpine Linux 3.18lz4Fixed1.9.3-r1ALPINE-CVE-2021-3520
Alpine Linux 3.17lz4Fixed1.9.3-r1ALPINE-CVE-2021-3520
Alpine Linux 3.16lz4Fixed1.9.3-r1ALPINE-CVE-2021-3520
Alpine Linux 3.15lz4Fixed1.9.3-r1ALPINE-CVE-2021-3520
Alpine Linux 3.14lz4Fixed1.9.3-r1ALPINE-CVE-2021-3520
Alpine Linux 3.13lz4Fixed1.9.2-r1ALPINE-CVE-2021-3520
Alpine Linux 3.12lz4Fixed1.9.2-r1ALPINE-CVE-2021-3520
crates.io librarylz4-sysFixed1.9.4RUSTSEC-2022-0051

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.