CVE-2021-36976

NameCVE-2021-36976
Descriptionlibarchive 3.4.1 through 3.5.1 has a use-after-free in copy_string (called from do_uncompress_block and process_block).
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3950-1
Debian Bugs991442

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libarchive (PTS)jessie, jessie (lts)3.1.2-11+deb8u12fixed
stretch (security)3.2.2-2+deb9u3fixed
stretch (lts), stretch3.2.2-2+deb9u5fixed
buster, buster (lts)3.3.3-4+deb10u4fixed
buster (security)3.3.3-4+deb10u3fixed
bullseye3.4.3-2+deb11u1vulnerable
bullseye (security)3.4.3-2+deb11u2fixed
bookworm3.6.2-1+deb12u1fixed
bookworm (security)3.6.2-1+deb12u2fixed
sid, trixie3.7.4-1.1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libarchivesourcejessie(not affected)
libarchivesourcestretch(not affected)
libarchivesourcebuster(not affected)
libarchivesourcebullseye3.4.3-2+deb11u2DLA-3950-1
libarchivesource(unstable)3.6.0-1991442

Notes

[buster] - libarchive <not-affected> (Vulnerable code introduced by 47bb818 in version 3.4.1)
[stretch] - libarchive <not-affected> (Vulnerable code introduced by 47bb818 in version 3.4.1)
https://github.com/libarchive/libarchive/issues/1554
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32375
https://github.com/google/oss-fuzz-vulns/blob/main/vulns/libarchive/OSV-2021-557.yaml
Introduced by: https://github.com/libarchive/libarchive/commit/47bb8187d3ef2d49ee8c7841cb2872b3cfa1f6f7 (v3.4.1)
Fixed by: https://github.com/libarchive/libarchive/commit/17f4e83c0f0fc3bacf4b2bbacb01f987bb5aff5f (v3.6.0)
[jessie] - libarchive <not-affected> (Vulnerable code introduced later in v3.4.1)

Search for package or bug name: Reporting problems