CVE-2021-36976
libarchive 3.4.1 through 3.5.1 has a use-after-free in copy_string (called from do_uncompress_block and process_block).
What to do
Fixed builds are available from Alpine, Debian, Microsoft, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | libarchive | Fixed | 3.5.2-1ubuntu1 | UBUNTU-CVE-2021-36976 |
| Ubuntu 20.04 | libarchive | Fixed | 3.4.0-2ubuntu1.1 | UBUNTU-CVE-2021-36976 |
| Ubuntu 16.04 | libarchive | Fix pending | ||
| Debian 14 | libarchive | Fixed | 3.6.0-1 | DEBIAN-CVE-2021-36976 |
| Debian 13 | libarchive | Fixed | 3.6.0-1 | DEBIAN-CVE-2021-36976 |
| Debian 12 | libarchive | Fixed | 3.6.0-1 | DEBIAN-CVE-2021-36976 |
| Red Hat Enterprise Linux 9 | bsdtar | Not affected | ||
| Red Hat Enterprise Linux 9 | libarchive | Not affected | ||
| Red Hat Enterprise Linux 9 | libarchive-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | bsdtar | Not affected | ||
| Red Hat Enterprise Linux 8 | libarchive | Not affected | ||
| Red Hat Enterprise Linux 8 | libarchive-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | bsdcpio | Not affected | ||
| Red Hat Enterprise Linux 7 | bsdtar | Not affected | ||
| Red Hat Enterprise Linux 7 | libarchive | Not affected | ||
| Red Hat Enterprise Linux 7 | libarchive-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | libarchive | Not affected | ||
| Red Hat Enterprise Linux 6 | libarchive-devel | Not affected | ||
| Windows Server 2022 | windows | Fixed | 10.0.20348.469 KB5009555 | MSRC-2022-Jan |
| Windows Server 2019 | windows | Fixed | 10.0.17763.2452 KB5009557 | MSRC-2022-Jan |
| Windows 10 Version 1909 (arm64) | windows | Fixed | 10.0.18363.2037 KB5009545 | MSRC-2022-Jan |
| Windows 10 Version 1909 (x64) | windows | Fixed | 10.0.18363.2037 KB5009545 | MSRC-2022-Jan |
| Windows 10 Version 1909 (x86) | windows | Fixed | 10.0.18363.2037 KB5009545 | MSRC-2022-Jan |
| Windows 10 Version 1809 (arm64) | windows | Fixed | 10.0.17763.2452 KB5009557 | MSRC-2022-Jan |
| Windows 10 Version 1809 (x64) | windows | Fixed | 10.0.17763.2452 KB5009557 | MSRC-2022-Jan |
| Windows 10 Version 1809 (x86) | windows | Fixed | 10.0.17763.2452 KB5009557 | MSRC-2022-Jan |
| Windows 10 Version 20H2 (arm64) | windows | Fixed | 10.0.19042.1466 KB5009543 | MSRC-2022-Jan |
| Windows 10 Version 20H2 (x86) | windows | Fixed | 10.0.19042.1466 KB5009543 | MSRC-2022-Jan |
| Windows 10 Version 21H1 (arm64) | windows | Fixed | 10.0.19043.1466 KB5009543 | MSRC-2022-Jan |
| Windows 10 Version 21H1 (x64) | windows | Fixed | 10.0.19043.1466 KB5009543 | MSRC-2022-Jan |
| Windows 10 Version 21H1 (x86) | windows | Fixed | 10.0.19043.1466 KB5009543 | MSRC-2022-Jan |
| Windows 10 Version 21H2 (arm64) | windows | Fixed | 10.0.19044.1466 KB5009543 | MSRC-2022-Jan |
| Windows 10 Version 21H2 (x64) | windows | Fixed | 10.0.19044.1466 KB5009543 | MSRC-2022-Jan |
| Windows 10 Version 21H2 (x86) | windows | Fixed | 10.0.19044.1466 KB5009543 | MSRC-2022-Jan |
| Windows 11 Version 21H2 (arm64) | windows | Fixed | 10.0.22000.434 KB5009566 | MSRC-2022-Jan |
| Windows 11 Version 21H2 (x64) | windows | Fixed | 10.0.22000.434 KB5009566 | MSRC-2022-Jan |
| Alpine Linux 3.24 | libarchive | Fixed | 3.6.0-r0 | ALPINE-CVE-2021-36976 |
| Alpine Linux 3.23 | libarchive | Fixed | 3.6.0-r0 | ALPINE-CVE-2021-36976 |
| Alpine Linux 3.22 | libarchive | Fixed | 3.6.0-r0 | ALPINE-CVE-2021-36976 |
| Alpine Linux 3.21 | libarchive | Fixed | 3.6.0-r0 | ALPINE-CVE-2021-36976 |
| Alpine Linux 3.20 | libarchive | Fixed | 3.6.0-r0 | ALPINE-CVE-2021-36976 |
| Alpine Linux 3.19 | libarchive | Fixed | 3.6.0-r0 | ALPINE-CVE-2021-36976 |
| Alpine Linux 3.18 | libarchive | Fixed | 3.6.0-r0 | ALPINE-CVE-2021-36976 |
| Alpine Linux 3.17 | libarchive | Fixed | 3.6.0-r0 | ALPINE-CVE-2021-36976 |
| Alpine Linux 3.16 | libarchive | Fixed | 3.6.0-r0 | ALPINE-CVE-2021-36976 |
| Alpine Linux 3.15 | libarchive | Fixed | 3.6.0-r0 | ALPINE-CVE-2021-36976 |
| Alpine Linux 3.14 | libarchive | Fixed | 3.5.3-r0 | ALPINE-CVE-2021-36976 |
| Alpine Linux 3.13 | libarchive | Fixed | 3.5.3-r0 | ALPINE-CVE-2021-36976 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202208-26 (vendor-advisory)
References
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/libarchive/OSV-2021-557.yaml
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32375
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SE5NJQNM22ZE5Z55LPAGCUHSBQZBKMKC/
- https://support.apple.com/kb/HT213183
- https://support.apple.com/kb/HT213182
- https://support.apple.com/kb/HT213193
- http://seclists.org/fulldisclosure/2022/Mar/28
- http://seclists.org/fulldisclosure/2022/Mar/29
- http://seclists.org/fulldisclosure/2022/Mar/27
- https://security.gentoo.org/glsa/202208-26
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.