{"id":"ALPINE-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":"2025-12-03T22:49:36.230101Z","published":"2022-11-22T02:15:11.003Z","upstream":["CVE-2022-36227"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2022-36227"}],"affected":[{"package":{"name":"libarchive","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/libarchive?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.3-r1"}]}],"versions":["2.8.4-r0","2.8.4-r1","2.8.4-r2","2.8.5-r0","3.0.2-r0","3.0.3-r0","3.0.4-r0","3.1.2-r0","3.1.2-r1","3.1.2-r2","3.2.0-r0","3.2.1-r0","3.2.1-r1","3.2.2-r0","3.2.2-r1","3.3.1-r0","3.3.1-r1","3.3.2-r0","3.3.2-r1","3.3.2-r2","3.3.2-r3","3.3.2-r4","3.3.3-r0","3.4.0-r0","3.4.1-r0","3.4.2-r0","3.4.3-r0","3.5.0-r0","3.5.1-r0","3.5.2-r0","3.5.3-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-36227.json"}},{"package":{"name":"libarchive","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/libarchive?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.1-r1"}]}],"versions":["2.8.4-r0","2.8.4-r1","2.8.4-r2","2.8.5-r0","3.0.2-r0","3.0.3-r0","3.0.4-r0","3.1.2-r0","3.1.2-r1","3.1.2-r2","3.2.0-r0","3.2.1-r0","3.2.1-r1","3.2.2-r0","3.2.2-r1","3.3.1-r0","3.3.1-r1","3.3.2-r0","3.3.2-r1","3.3.2-r2","3.3.2-r3","3.3.2-r4","3.3.3-r0","3.4.0-r0","3.4.1-r0","3.4.2-r0","3.4.3-r0","3.5.0-r0","3.5.1-r0","3.5.2-r0","3.5.2-r1","3.5.2-r2","3.6.0-r0","3.6.1-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-36227.json"}},{"package":{"name":"libarchive","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/libarchive?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.1-r1"}]}],"versions":["2.8.4-r0","2.8.4-r1","2.8.4-r2","2.8.5-r0","3.0.2-r0","3.0.3-r0","3.0.4-r0","3.1.2-r0","3.1.2-r1","3.1.2-r2","3.2.0-r0","3.2.1-r0","3.2.1-r1","3.2.2-r0","3.2.2-r1","3.3.1-r0","3.3.1-r1","3.3.2-r0","3.3.2-r1","3.3.2-r2","3.3.2-r3","3.3.2-r4","3.3.3-r0","3.4.0-r0","3.4.1-r0","3.4.2-r0","3.4.3-r0","3.5.0-r0","3.5.1-r0","3.5.2-r0","3.5.2-r1","3.5.2-r2","3.6.0-r0","3.6.1-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-36227.json"}},{"package":{"name":"libarchive","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/libarchive?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.1-r2"}]}],"versions":["2.8.4-r0","2.8.4-r1","2.8.4-r2","2.8.5-r0","3.0.2-r0","3.0.3-r0","3.0.4-r0","3.1.2-r0","3.1.2-r1","3.1.2-r2","3.2.0-r0","3.2.1-r0","3.2.1-r1","3.2.2-r0","3.2.2-r1","3.3.1-r0","3.3.1-r1","3.3.2-r0","3.3.2-r1","3.3.2-r2","3.3.2-r3","3.3.2-r4","3.3.3-r0","3.4.0-r0","3.4.1-r0","3.4.2-r0","3.4.3-r0","3.5.0-r0","3.5.1-r0","3.5.2-r0","3.5.2-r1","3.5.2-r2","3.6.0-r0","3.6.1-r0","3.6.1-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-36227.json"}},{"package":{"name":"libarchive","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/libarchive?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.1-r2"}]}],"versions":["2.8.4-r0","2.8.4-r1","2.8.4-r2","2.8.5-r0","3.0.2-r0","3.0.3-r0","3.0.4-r0","3.1.2-r0","3.1.2-r1","3.1.2-r2","3.2.0-r0","3.2.1-r0","3.2.1-r1","3.2.2-r0","3.2.2-r1","3.3.1-r0","3.3.1-r1","3.3.2-r0","3.3.2-r1","3.3.2-r2","3.3.2-r3","3.3.2-r4","3.3.3-r0","3.4.0-r0","3.4.1-r0","3.4.2-r0","3.4.3-r0","3.5.0-r0","3.5.1-r0","3.5.2-r0","3.5.2-r1","3.5.2-r2","3.6.0-r0","3.6.1-r0","3.6.1-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-36227.json"}},{"package":{"name":"libarchive","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/libarchive?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.1-r2"}]}],"versions":["2.8.4-r0","2.8.4-r1","2.8.4-r2","2.8.5-r0","3.0.2-r0","3.0.3-r0","3.0.4-r0","3.1.2-r0","3.1.2-r1","3.1.2-r2","3.2.0-r0","3.2.1-r0","3.2.1-r1","3.2.2-r0","3.2.2-r1","3.3.1-r0","3.3.1-r1","3.3.2-r0","3.3.2-r1","3.3.2-r2","3.3.2-r3","3.3.2-r4","3.3.3-r0","3.4.0-r0","3.4.1-r0","3.4.2-r0","3.4.3-r0","3.5.0-r0","3.5.1-r0","3.5.2-r0","3.5.2-r1","3.5.2-r2","3.6.0-r0","3.6.1-r0","3.6.1-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-36227.json"}},{"package":{"name":"libarchive","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/libarchive?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.1-r2"}]}],"versions":["2.8.4-r0","2.8.4-r1","2.8.4-r2","2.8.5-r0","3.0.2-r0","3.0.3-r0","3.0.4-r0","3.1.2-r0","3.1.2-r1","3.1.2-r2","3.2.0-r0","3.2.1-r0","3.2.1-r1","3.2.2-r0","3.2.2-r1","3.3.1-r0","3.3.1-r1","3.3.2-r0","3.3.2-r1","3.3.2-r2","3.3.2-r3","3.3.2-r4","3.3.3-r0","3.4.0-r0","3.4.1-r0","3.4.2-r0","3.4.3-r0","3.5.0-r0","3.5.1-r0","3.5.2-r0","3.5.2-r1","3.5.2-r2","3.6.0-r0","3.6.1-r0","3.6.1-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-36227.json"}},{"package":{"name":"libarchive","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/libarchive?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.1-r2"}]}],"versions":["2.8.4-r0","2.8.4-r1","2.8.4-r2","2.8.5-r0","3.0.2-r0","3.0.3-r0","3.0.4-r0","3.1.2-r0","3.1.2-r1","3.1.2-r2","3.2.0-r0","3.2.1-r0","3.2.1-r1","3.2.2-r0","3.2.2-r1","3.3.1-r0","3.3.1-r1","3.3.2-r0","3.3.2-r1","3.3.2-r2","3.3.2-r3","3.3.2-r4","3.3.3-r0","3.4.0-r0","3.4.1-r0","3.4.2-r0","3.4.3-r0","3.5.0-r0","3.5.1-r0","3.5.2-r0","3.5.2-r1","3.5.2-r2","3.6.0-r0","3.6.1-r0","3.6.1-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-36227.json"}},{"package":{"name":"libarchive","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/libarchive?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.1-r2"}]}],"versions":["2.8.4-r0","2.8.4-r1","2.8.4-r2","2.8.5-r0","3.0.2-r0","3.0.3-r0","3.0.4-r0","3.1.2-r0","3.1.2-r1","3.1.2-r2","3.2.0-r0","3.2.1-r0","3.2.1-r1","3.2.2-r0","3.2.2-r1","3.3.1-r0","3.3.1-r1","3.3.2-r0","3.3.2-r1","3.3.2-r2","3.3.2-r3","3.3.2-r4","3.3.3-r0","3.4.0-r0","3.4.1-r0","3.4.2-r0","3.4.3-r0","3.5.0-r0","3.5.1-r0","3.5.2-r0","3.5.2-r1","3.5.2-r2","3.6.0-r0","3.6.1-r0","3.6.1-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-36227.json"}},{"package":{"name":"libarchive","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/libarchive?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.1-r2"}]}],"versions":["2.8.4-r0","2.8.4-r1","2.8.4-r2","2.8.5-r0","3.0.2-r0","3.0.3-r0","3.0.4-r0","3.1.2-r0","3.1.2-r1","3.1.2-r2","3.2.0-r0","3.2.1-r0","3.2.1-r1","3.2.2-r0","3.2.2-r1","3.3.1-r0","3.3.1-r1","3.3.2-r0","3.3.2-r1","3.3.2-r2","3.3.2-r3","3.3.2-r4","3.3.3-r0","3.4.0-r0","3.4.1-r0","3.4.2-r0","3.4.3-r0","3.5.0-r0","3.5.1-r0","3.5.2-r0","3.5.2-r1","3.5.2-r2","3.6.0-r0","3.6.1-r0","3.6.1-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-36227.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}