NULL pointer dereference in Libarchive
CVE-2022-36227
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."
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.025, 84.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Libarchive
- Splunk Universal Forwarder — versions 9.1.0
- Debian Linux — versions 10.0
- Fedoraproject Fedora — versions 37
Weakness classification (CWE)
References
- github.com/libarchive/libarchive/issues/1754 (Patch, Third Party Advisory, Issue Tracking)
- bugs.gentoo.org/882521 (Patch, Third Party Advisory, Issue Tracking)
- github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c (Third Party Advisory)
- FEDORA-2022-e15be0091f (vendor-advisory, Mailing List, Third Party Advisory)
- [debian-lts-announce] 20230130 [SECURITY] [DLA 3294-1] libarchive security update (mailing-list, Third Party Advisory)
- GLSA-202309-14 (vendor-advisory, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2024/11/msg00007.html