CVE-2022-36227

NameCVE-2022-36227
DescriptionIn 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."
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3294-1, DLA-3950-1, ELA-790-1
Debian Bugs1024669

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libarchive (PTS)jessie, jessie (lts)3.1.2-11+deb8u12fixed
stretch (security)3.2.2-2+deb9u3vulnerable
stretch (lts), stretch3.2.2-2+deb9u5fixed
buster, buster (lts)3.3.3-4+deb10u4fixed
buster (security)3.3.3-4+deb10u3fixed
bullseye3.4.3-2+deb11u1vulnerable
bullseye (security)3.4.3-2+deb11u2fixed
bookworm3.6.2-1+deb12u1fixed
bookworm (security)3.6.2-1+deb12u2fixed
sid, trixie3.7.4-1.1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libarchivesourcejessie3.1.2-11+deb8u10ELA-790-1
libarchivesourcestretch3.2.2-2+deb9u4ELA-790-1
libarchivesourcebuster3.3.3-4+deb10u3DLA-3294-1
libarchivesourcebullseye3.4.3-2+deb11u2DLA-3950-1
libarchivesource(unstable)3.6.2-11024669

Notes

https://github.com/libarchive/libarchive/issues/1754
https://github.com/libarchive/libarchive/pull/1759
Fixed by: https://github.com/libarchive/libarchive/commit/bff38efe8c110469c5080d387bec62a6ca15b1a5

Search for package or bug name: Reporting problems