CVEfocus › CVE database › CVE-2022-36227

CVE-2022-36227

EPSS 2.4% (higher than 85% of CVEs)Published 2022-11-22Updated 2026-10-08Assigner: mitre

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."

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

29Fixed
3Fix pending
6Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04libarchiveNot affected
vulnerable_code_not_present
Ubuntu 22.04libarchiveFixed3.6.0-1ubuntu1.2UBUNTU-CVE-2022-36227
Ubuntu 20.04libarchiveFixed3.4.0-2ubuntu1.3UBUNTU-CVE-2022-36227
Ubuntu 18.04libarchiveFix pending3.2.2-3.1ubuntu0.7+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-36227
Ubuntu 16.04libarchiveFix pending3.1.2-11ubuntu0.16.04.8+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-36227
Ubuntu 14.04libarchiveFix pending3.1.2-7ubuntu2.8+esm3 (Ubuntu Pro)UBUNTU-CVE-2022-36227
Debian 14libarchiveFixed3.6.2-1DEBIAN-CVE-2022-36227
Debian 13libarchiveFixed3.6.2-1DEBIAN-CVE-2022-36227
Debian 12libarchiveFixed3.6.2-1DEBIAN-CVE-2022-36227
Red Hat Enterprise Linux 9bsdtarFixed0:3.5.3-4.el9RHSA-2023:2532
Red Hat Enterprise Linux 9libarchiveFixed0:3.5.3-4.el9RHSA-2023:2532
Red Hat Enterprise Linux 9libarchive-develFixed0:3.5.3-4.el9RHSA-2023:2532
Red Hat Enterprise Linux 8bsdtarFixed0:3.3.3-5.el8RHSA-2023:3018
Red Hat Enterprise Linux 8libarchiveFixed0:3.3.3-5.el8RHSA-2023:3018
Red Hat Enterprise Linux 8libarchive-develFixed0:3.3.3-5.el8RHSA-2023:3018
Red Hat Enterprise Linux 7bsdcpioWill not fix
Out of support scope
Red Hat Enterprise Linux 7bsdtarWill not fix
Out of support scope
Red Hat Enterprise Linux 7libarchiveWill not fix
Out of support scope
Red Hat Enterprise Linux 7libarchive-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6libarchiveWill not fix
Out of support scope
Red Hat Enterprise Linux 6libarchive-develWill not fix
Out of support scope
AlmaLinux 9bsdtarFixed3.5.3-4.el9ALSA-2023:2532
AlmaLinux 9libarchiveFixed3.5.3-4.el9ALSA-2023:2532
AlmaLinux 9libarchive-develFixed3.5.3-4.el9ALSA-2023:2532
AlmaLinux 8bsdtarFixed3.3.3-5.el8ALSA-2023:3018
AlmaLinux 8libarchiveFixed3.3.3-5.el8ALSA-2023:3018
AlmaLinux 8libarchive-develFixed3.3.3-5.el8ALSA-2023:3018
Rocky Linux 8libarchiveFixed0:3.3.3-5.el8RLSA-2023:3018
Alpine Linux 3.24libarchiveFixed3.6.1-r2ALPINE-CVE-2022-36227
Alpine Linux 3.23libarchiveFixed3.6.1-r2ALPINE-CVE-2022-36227
Alpine Linux 3.22libarchiveFixed3.6.1-r2ALPINE-CVE-2022-36227
Alpine Linux 3.21libarchiveFixed3.6.1-r2ALPINE-CVE-2022-36227
Alpine Linux 3.20libarchiveFixed3.6.1-r2ALPINE-CVE-2022-36227
Alpine Linux 3.19libarchiveFixed3.6.1-r2ALPINE-CVE-2022-36227
Alpine Linux 3.18libarchiveFixed3.6.1-r2ALPINE-CVE-2022-36227
Alpine Linux 3.17libarchiveFixed3.6.1-r2ALPINE-CVE-2022-36227
Alpine Linux 3.16libarchiveFixed3.6.1-r1ALPINE-CVE-2022-36227
Alpine Linux 3.15libarchiveFixed3.6.1-r1ALPINE-CVE-2022-36227
Alpine Linux 3.14libarchiveFixed3.5.3-r1ALPINE-CVE-2022-36227

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.