CVE-2021-3520: Integer Overflow

Published Apr 28, 2021
·
Updated

A vulnerability was found in lz4, where a potential memory corruption due to an integer overflow bug which caused one of the memmove arguments to become negative. Depending on how the library was compiled this will hit an assert() inside the library and dump core, leaving a 4GB core file, or it wil go into libc and crash inside the memmove() function.

Reference: https://github.com/lz4/lz4/pull/972

Other sources

lz4 could allow a remote attacker to execute arbitrary code on the system, caused by an integer overflow. By sending a specially crafted file, an attacker could invoke memmove() on a negative size argument leading to memory corruption and trigger an out-of-bounds write or cause the library to crash.

IBM

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 Software

13 affected componentsFixes available
redhat/lz4<0:1.8.3-3.el8_4
0:1.8.3-3.el8_4
redhat/lz4<1.9.4
1.9.4
IBM Security Verify Access<=10.0.0
Lz4 Project Lz4>=1.8.3<1.9.4
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp Cloud Backup
NetApp ONTAP Select Deploy administration utility
Oracle Communications Cloud Native Core Policy=1.14.0
Oracle ZFS Storage Appliance Kit=8.8
Splunk Universal Forwarder>=8.2.0<8.2.12
Splunk Universal Forwarder>=9.0.0<9.0.6
Splunk Universal Forwarder=9.1.0
Lz4 Project Lz4=1.8.3

Event History

Apr 28, 2021
CVE Published
12:00 AM
Data Sourced
via Red Hat·11:36 AM
DescriptionSeverityAffected Software
Jun 2, 2021
CVE Published
via MITRE·12:32 PM
Data Sourced
via MITRE·12:32 PM
DescriptionWeakness

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-3520?

CVE-2021-3520 is a vulnerability in lz4 that allows a remote attacker to execute arbitrary code on the system.

2

How does CVE-2021-3520 affect the availability of the system?

CVE-2021-3520 can lead to an out-of-bounds write and/or a crash, impacting the availability of the system.

3

Which software is affected by CVE-2021-3520?

The affected software includes lz4 versions up to 1.9.4 and IBM Security Verify Access up to version 10.0.0.

4

Is there a fix for CVE-2021-3520?

Yes, updating lz4 to version 1.9.4 or higher resolves CVE-2021-3520.

5

Where can I find more information about CVE-2021-3520?

More information about CVE-2021-3520 can be found in the references: [link1], [link2], [link3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203