CVE-2022-36227
publishedlibarchive: NULL pointer dereference in archive_write.c
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2364 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-246 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | bsdtar | Advisory build | 3.3.3-5.el8 | ALSA-2023:3018 |
| Alpine Linux | edge | libarchive | Fixed | 3.6.1-r2 | Package fix record |
| Debian | bullseye | libarchive | Advisory build | 3.4.3-2+deb11u2 | DLA-3950-1 |
| Oracle Linux | 8 | bsdtaraarch64 | Advisory build | 0:3.3.3-5.el8 | ELSA-2023-3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfoaarch64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | libarchive | Advisory build | 3.3.3-5.el8 | ALSA-2023:3018 |
| AlmaLinux | 8 | libarchive-devel | Advisory build | 3.3.3-5.el8 | ALSA-2023:3018 |
| AlmaLinux | 9 | bsdtar | Advisory build | 3.5.3-4.el9 | ALSA-2023:2532 |
| AlmaLinux | 9 | libarchive | Advisory build | 3.5.3-4.el9 | ALSA-2023:2532 |
| AlmaLinux | 9 | libarchive-devel | Advisory build | 3.5.3-4.el9 | ALSA-2023:2532 |
| Alpine Linux | v3.14 | libarchive | Fixed | 3.5.3-r1 | Package fix record |
| Alpine Linux | v3.15 | libarchive | Fixed | 3.6.1-r1 | Package fix record |
| Alpine Linux | v3.16 | libarchive | Fixed | 3.6.1-r1 | Package fix record |
| Alpine Linux | v3.17 | libarchive | Fixed | 3.6.1-r2 | Package fix record |
| Alpine Linux | v3.18 | libarchive | Fixed | 3.6.1-r2 | Package fix record |
| Alpine Linux | v3.19 | libarchive | Fixed | 3.6.1-r2 | Package fix record |
| Alpine Linux | v3.20 | libarchive | Fixed | 3.6.1-r2 | Package fix record |
| Alpine Linux | v3.21 | libarchive | Fixed | 3.6.1-r2 | Package fix record |
| Alpine Linux | v3.22 | libarchive | Fixed | 3.6.1-r2 | Package fix record |
| Alpine Linux | v3.23 | libarchive | Fixed | 3.6.1-r2 | Package fix record |
| Alpine Linux | v3.24 | libarchive | Fixed | 3.6.1-r2 | Package fix record |
| Debian | buster | libarchive | Advisory build | 3.3.3-4+deb10u3 | DLA-3294-1 |
| Oracle Linux | 8 | bsdtarx86_64 | Advisory build | 0:3.3.3-5.el8 | ELSA-2023-3018 |
| Oracle Linux | 8 | libarchiveaarch64 | Advisory build | 0:3.3.3-5.el8 | ELSA-2023-3018 |
| Oracle Linux | 8 | libarchivex86_64 | Advisory build | 0:3.3.3-5.el8 | ELSA-2023-3018 |
| Oracle Linux | 8 | libarchive-develaarch64 | Advisory build | 0:3.3.3-5.el8 | ELSA-2023-3018 |
| Oracle Linux | 8 | libarchive-develx86_64 | Advisory build | 0:3.3.3-5.el8 | ELSA-2023-3018 |
| Oracle Linux | 9 | bsdtaraarch64 | Advisory build | 0:3.5.3-4.el9 | ELSA-2023-2532 |
| Oracle Linux | 9 | bsdtarx86_64 | Advisory build | 0:3.5.3-4.el9 | ELSA-2023-2532 |
| Oracle Linux | 9 | libarchiveaarch64 | Advisory build | 0:3.5.3-4.el9 | ELSA-2023-2532 |
| Oracle Linux | 9 | libarchivex86_64 | Advisory build | 0:3.5.3-4.el9 | ELSA-2023-2532 |
| Oracle Linux | 9 | libarchive-develaarch64 | Advisory build | 0:3.5.3-4.el9 | ELSA-2023-2532 |
| Oracle Linux | 9 | libarchive-develx86_64 | Advisory build | 0:3.5.3-4.el9 | ELSA-2023-2532 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfoaarch64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfoi686 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfoi686 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfoppc64le | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfoppc64le | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfos390x | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfos390x | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfox86_64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfox86_64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfoaarch64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfoaarch64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfoi686 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfoi686 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfoppc64le | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfoppc64le | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfos390x | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfos390x | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfox86_64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfox86_64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtaraarch64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtaraarch64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtarppc64le | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtarppc64le | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtars390x | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtars390x | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtarx86_64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtarx86_64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfoaarch64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfoaarch64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfoi686 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfoi686 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfoppc64le | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfoppc64le | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfos390x | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfos390x | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfox86_64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfox86_64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchiveaarch64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchiveaarch64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchivei686 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchivei686 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchiveppc64le | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchiveppc64le | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchives390x | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchives390x | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchivesrc | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchivesrc | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchivex86_64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchivex86_64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfoaarch64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfoaarch64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfoi686 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfoi686 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfoppc64le | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfoppc64le | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfos390x | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfos390x | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfox86_64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfox86_64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsourceaarch64 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsourceaarch64 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsourcei686 | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsourcei686 | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsourceppc64le | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsourceppc64le | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsources390x | Advisory build | 3.3.3-4.el8_6 | RHSA-2024:0146 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsources390x | Advisory build | 3.3.3-5.el8 | RHSA-2023:3018 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In libarchive before 3.6.2, the software does not check for an error after calling calloc function that can return with a NULL pointer if the function fails, which leads to a resultant NULL pointer dereference. NOTE: the discoverer cites this CWE-476 remark but third parties dispute the code-execution impact: "In rare circumstances, when NULL is equivalent to the 0x0 memory address and privileged code can access it, then writing or reading memory is possible, which may lead to code execution."
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
7- https://bugs.gentoo.org/882521
- https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215
- https://github.com/libarchive/libarchive/issues/1754
- [debian-lts-announce] 20230130 [SECURITY] [DLA 3294-1] libarchive security update https://lists.debian.org/debian-lts-announce/2023/01/msg00034.html
- https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html
- FEDORA-2022-e15be0091f https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V67OO2UUQAUJS3IK4JZPF6F3LUCBU6IS/
- GLSA-202309-14 https://security.gentoo.org/glsa/202309-14
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 00737b754d5f60572b5ca69abc9a89b108a5d037e7b15dac8c86b5717f1aae2e
- Ingested
- 09 Oct 2026, 16:22:05 UTC
- Source record
- Official CVE record