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
Debian Bugs1024669

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libarchive (PTS)buster3.3.3-4+deb10u1vulnerable
buster (security)3.3.3-4+deb10u3fixed
bullseye3.4.3-2+deb11u1vulnerable
bookworm3.6.2-1fixed
trixie3.7.2-1fixed
sid3.7.2-1.1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libarchivesourcebuster3.3.3-4+deb10u3DLA-3294-1
libarchivesource(unstable)3.6.2-11024669

Notes

[bullseye] - libarchive <no-dsa> (Minor issue)
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