CVE-2021-3520 lz4-sys vulnerable to memory corruption via issue in liblz4

Critical 9.8 Published Updated

An attacker can cause a crash or out-of-bounds write in applications using the LZ4 library by submitting a crafted file, impacting availability and integrity.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3520?

CVE-2021-3520 is a critical vulnerability in Netapp Active Iq Unified Manager, published on 2 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-787, CWE-190

Which versions are affected by CVE-2021-3520?

3 open source packages ship an affected version, including lz4-sys. It affects 7 products.

PackageAffectedFixed in
lz4-sys crates.ioAll versions1.9.4
lz4-sys crates.ioAll versions1.9.4
lz4-sys crates.ioFrom 0.0.0-01.9.4
Linux distribution packages (30)
lz4 AlmaLinux:8All versions1.8.3-3.el8_4
lz4-devel AlmaLinux:8All versions1.8.3-3.el8_4
lz4-libs AlmaLinux:8All versions1.8.3-3.el8_4
lz4 Red Hat:enterprise_linux:8::baseosAll versions0:1.8.3-3.el8_4
lz4-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1.8.3-3.el8_4
lz4-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:1.8.3-3.el8_4
lz4-devel Red Hat:enterprise_linux:8::baseosAll versions0:1.8.3-3.el8_4
lz4-libs Red Hat:enterprise_linux:8::baseosAll versions0:1.8.3-3.el8_4
lz4-libs-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1.8.3-3.el8_4
lz4 Rocky Linux:8All versions0:1.8.3-3.el8_4
lz4 SUSE:Enterprise Storage 6All versions1.8.0-3.8.1
lz4 SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions1.8.0-3.8.1
lz4 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions1.8.0-3.8.1
lz4 SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions1.8.0-3.8.1
lz4 SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions1.8.0-3.8.1
lz4 SUSE:Linux Enterprise Micro 5.0All versions1.8.0-3.8.1
lz4 SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions1.8.0-3.8.1
lz4 SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions1.9.2-3.3.1
lz4 SUSE:Linux Enterprise Server 15 SP1-BCLAll versions1.8.0-3.8.1
lz4 SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions1.8.0-3.8.1
lz4 SUSE:Linux Enterprise Server 15-LTSSAll versions1.8.0-3.8.1
lz4 SUSE:Linux Enterprise Server for SAP Applications 15All versions1.8.0-3.8.1
lz4 SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions1.8.0-3.8.1
lz4 SUSE:Manager Proxy 4.0All versions1.8.0-3.8.1
lz4 SUSE:Manager Retail Branch Server 4.0All versions1.8.0-3.8.1
lz4 SUSE:Manager Server 4.0All versions1.8.0-3.8.1
lz4 openSUSE:Leap 15.2All versions1.8.0-lp152.5.3.1
lz4-test openSUSE:Leap 15.2All versions1.8.0-lp152.5.3.1
lz4 openSUSE:Leap 15.3All versions1.9.2-3.3.1
lz4 openSUSE:TumbleweedAll versions1.9.3-2.1

Products include Lz4 Project Lz4, Netapp Active Iq Unified Manager, Netapp Cloud Backup, Netapp Ontap Select Deploy Administration Utility, Oracle Communications Cloud Native Core Policy, Oracle Zfs Storage Appliance Kit and 1 more.

How do I fix CVE-2021-3520?

Upgrade lz4-sys to 1.9.4 or later.

Is CVE-2021-3520 being exploited?

There is no known exploitation of CVE-2021-3520 in the wild and no public exploit code.

All Netapp Active Iq Unified Manager vulnerabilities

Sources

Also known as ALPINE-CVE-2021-3520, ALSA-2021:2575, AZL-74241, CLSA-2023-1695326199, CLSA-2026-1777307383, CLSA-2026-1792171196 and 20 more.

Is CVE-2021-3520 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free