CVE-2021-3520

NameCVE-2021-3520
DescriptionThere'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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2657-1, DSA-4919-1
Debian Bugs987856

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
lz4 (PTS)buster, buster (security)1.8.3-1+deb10u1fixed
bullseye1.9.3-2fixed
bookworm1.9.4-1fixed
sid, trixie1.9.4-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
lz4sourcestretch0.0~r131-2+deb9u1DLA-2657-1
lz4sourcebuster1.8.3-1+deb10u1DSA-4919-1
lz4source(unstable)1.9.3-2987856

Notes

https://github.com/lz4/lz4/pull/972
Fixed by: https://github.com/lz4/lz4/commit/8301a21773ef61656225e264f4f06ae14462bca7

Search for package or bug name: Reporting problems