Vulnerability · Published Jun 2, 2021 · Assigned by redhat
CVE-2021-3520
Critical 9.8
In plain English
A critical-severity integer overflow in lz4. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.4% (higher than 89% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)3.4%top 11.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | lz4 | 1.8.3-3.el8_4 | ALSA-2021:2575 |
| AlmaLinux:8 | lz4-devel | 1.8.3-3.el8_4 | ALSA-2021:2575 |
| AlmaLinux:8 | lz4-libs | 1.8.3-3.el8_4 | ALSA-2021:2575 |
| Alpine:v3.20 | lz4 | 1.9.3-r1 | ALPINE-CVE-2021-3520 |
| Alpine:v3.21 | lz4 | 1.9.3-r1 | ALPINE-CVE-2021-3520 |
| Alpine:v3.22 | lz4 | 1.9.3-r1 | ALPINE-CVE-2021-3520 |
| Alpine:v3.23 | lz4 | 1.9.3-r1 | ALPINE-CVE-2021-3520 |
| Alpine:v3.24 | lz4 | 1.9.3-r1 | ALPINE-CVE-2021-3520 |
| Debian:12 | lz4 | 1.9.3-2 | DEBIAN-CVE-2021-3520 |
| Debian:13 | lz4 | 1.9.3-2 | DEBIAN-CVE-2021-3520 |
| Debian:14 | lz4 | 1.9.3-2 | DEBIAN-CVE-2021-3520 |
| Rocky Linux:8 | lz4 | 0:1.8.3-3.el8_4 | RLSA-2021:2575 |
Affected products (as reported)
Weakness: CWE-190
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1954559 x_refsource_MISC
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20211104-0005/ x_refsource_CONFIRM
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html