{"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-05-15T11:53:35.758570716Z","published":"2022-11-22T00:00:00Z","related":["ALSA-2023:2532","ALSA-2023:3018","CGA-4m9v-5g4p-xp2m","SUSE-SU-2022:4202-1","SUSE-SU-2022:4209-1","SUSE-SU-2022:4296-1","openSUSE-SU-2024:12588-1"],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36227.json"},"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"}],"schema_version":"1.7.5"}