{"id":"CVE-2022-36227","details":"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.\"","modified":"2026-08-12T03:30:51.073354419Z","published":"2022-11-22T00:00:00Z","related":["ALSA-2023:2532","ALSA-2023:3018","SUSE-SU-2022:4202-1","SUSE-SU-2022:4209-1","SUSE-SU-2022:4296-1","openSUSE-SU-2024:12588-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36227.json","cna_assigner":"mitre"},"references":[{"type":"WEB","url":"https://bugs.gentoo.org/882521"},{"type":"WEB","url":"https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36227.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V67OO2UUQAUJS3IK4JZPF6F3LUCBU6IS/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36227"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202309-14"},{"type":"REPORT","url":"https://github.com/libarchive/libarchive/issues/1754"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00034.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libarchive/libarchive","events":[{"introduced":"ff922b50705f5e5570356267afd21668c6aefab3"},{"fixed":"ba80276ccc3c941c4918ec6e2460059f0c525c43"}],"database_specific":{"cpe":"cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.6.2"},{"introduced":"3.0.0"}],"source":["DESCRIPTION","CPE_RANGE"]}}],"versions":["v3.6.1","v3.6.0","v3.5.2","v3.5.1","v3.5.0","v3.4.3","v3.4.2","v3.4.1","v3.4.0","v3.3.3","v3.3.2","v3.3.1","v3.3.0","v3.2.2","v3.2.1","v3.2.0","v3.1.900a","v3.0.1b","v3.0.0a"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-36227.json"}}],"schema_version":"1.9.0"}