Skip to content
OpenAdvisories
Unscored CVE-2021-36976 EUVD-2021-23552GHSA-4fxq-mcvv-8fqm

libarchive 3.4.1 through 3.5.1 has a use-after-free in copy_string (called from do_uncompress_block and process_block).

Published Jul 20, 2021 · Updated Nov 2, 2026 · Assigned by mitre

Description

libarchive 3.4.1 through 3.5.1 has a use-after-free in copy_string (called from do_uncompress_block and process_block).

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libarchive 3.6.0-1 —
Debian 13 libarchive 3.6.0-1 —
Debian 12 libarchive 3.6.0-1 —
Debian 11 libarchive 3.4.3-2+deb11u2 DLA-3950-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS libarchive 3.5.2-1ubuntu1 —
Ubuntu 20.04 LTS libarchive 3.4.0-2ubuntu1.1 USN-5291-1
ReleasePackageFixed inAdvisory
SLES 15 SP4 libarchive 3.5.1-150400.3.3.1 SUSE-SU-2022:1930-1
SLES 15 SP3 libarchive 3.4.2-150200.4.3.1 SUSE-SU-2022:0944-1
SLES 15 SP2 libarchive 3.4.2-150200.4.3.1 SUSE-SU-2022:0944-2
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP2 libarchive 3.4.2-150200.4.3.1 SUSE-SU-2022:0944-2
SLE Real Time 15 SP2 libarchive 3.4.2-150200.4.3.1 SUSE-SU-2022:0944-1
SLE HPC 15 SP2 libarchive 3.4.2-150200.4.3.1 SUSE-SU-2022:0944-2
SUSE Enterprise Storage 7 libarchive 3.4.2-150200.4.3.1 SUSE-SU-2022:0944-2
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed bsdtar 3.6.0-1.1 openSUSE-SU-2024:11894-1
openSUSE Leap 15.4 libarchive 3.5.1-150400.3.3.1 SUSE-SU-2022:1930-1
openSUSE Leap 15.3 libarchive 3.4.2-150200.4.3.1 openSUSE-SU-2022:0944-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libarchive 3.6.0-r0 —
Alpine v3.23 libarchive 3.6.0-r0 —
Alpine v3.22 libarchive 3.6.0-r0 —
Alpine v3.21 libarchive 3.6.0-r0 —
Alpine v3.20 libarchive 3.6.0-r0 —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libarchive 3.6.0-r0 —
Alpine v3.18 libarchive 3.6.0-r0 —
Alpine v3.17 libarchive 3.6.0-r0 —
Alpine v3.16 libarchive 3.6.0-r0 —
Alpine v3.15 libarchive 3.6.0-r0 —
Alpine v3.14 libarchive 3.5.3-r0 —
Alpine v3.13 libarchive 3.5.3-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 bsdcat +4 3.5.3-2.amzn2023.0.2 ALAS2023-2023-071

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) libarchive 3.6.0-1 —

Advisories 12

References