cve.bz

CVE-2022-36227 NULL Pointer Dereference

9.8 criticalEPSS 2.5%Fix available

Critical (9.8). EPSS 2.5% estimated probability of exploitation activity in the next 30 days.

On this page
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."

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.5% (unchanged from 2.5% a week ago; 2.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-36227 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-36227?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-36227?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-36227 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2022-36227

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2022-36227](https://cve.bz/cve/badge/CVE-2022-36227.svg)](https://cve.bz/cve/CVE-2022-36227)

HTML:

<a href="https://cve.bz/cve/CVE-2022-36227"><img src="https://cve.bz/cve/badge/CVE-2022-36227.svg" alt="CVE-2022-36227"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libarchive:libarchivefrom 3.0.0 before 3.6.2
debian:debian_linux10.0
fedoraproject:fedora37
splunk:universal_forwarderfrom 8.2.0 before 8.2.12
splunk:universal_forwarderfrom 9.0.0 before 9.0.6
splunk:universal_forwarder9.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libarchive3.3.3-4+deb10u3DLA-3294-1
Debian11libarchive3.4.3-2+deb11u2DLA-3950-1
Debian12, 13, 14libarchive3.6.2-1DEBIAN-CVE-2022-36227
Ubuntu20.04:LTSlibarchive3.4.0-2ubuntu1.3UBUNTU-CVE-2022-36227 USN-7070-1
Ubuntu22.04:LTSlibarchive3.6.0-1ubuntu1.2UBUNTU-CVE-2022-36227 USN-7070-1
Ubuntu24.04:LTSlibarchive3.7.2-2ubuntu0.2USN-7070-1
UbuntuPro:14.04:LTSlibarchive3.1.2-7ubuntu2.8+esm3UBUNTU-CVE-2022-36227 USN-7070-1
UbuntuPro:16.04:LTSlibarchive3.1.2-11ubuntu0.16.04.8+esm1UBUNTU-CVE-2022-36227 USN-7070-1
UbuntuPro:18.04:LTSlibarchive3.2.2-3.1ubuntu0.7+esm1UBUNTU-CVE-2022-36227 USN-7070-1
Red Hatenterprise_linux:8::baseosbsdtar, libarchive, bsdcat-debuginfo and 4 more0:3.3.3-5.el8RHSA-2023:3018
Red Hatenterprise_linux:8::crbbsdcat-debuginfo, bsdtar-debuginfo, libarchive-devel and 3 more0:3.3.3-5.el8RHSA-2023:3018
Red Hatenterprise_linux:9::appstreambsdtar, bsdcat-debuginfo, bsdtar-debuginfo and 3 more0:3.5.3-4.el9RHSA-2023:2532
Red Hatenterprise_linux:9::baseoslibarchive, bsdcat-debuginfo, bsdtar-debuginfo and 3 more0:3.5.3-4.el9RHSA-2023:2532
Red Hatenterprise_linux:9::crbbsdcat-debuginfo, bsdtar-debuginfo, libarchive-devel and 3 more0:3.5.3-4.el9RHSA-2023:2532
Red Hatrhel_eus:8.6::baseosbsdtar, libarchive, bsdcat-debuginfo and 4 more0:3.3.3-4.el8_6RHSA-2024:0146
Red Hatrhel_eus:8.6::crbbsdcat-debuginfo, bsdtar-debuginfo, libarchive-devel and 3 more0:3.3.3-4.el8_6RHSA-2024:0146
SUSELinux Enterprise Micro 5.3, Linux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Development Tools 15 SP4libarchive3.5.1-150400.3.12.1SUSE-SU-2022:4209-1
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Development Tools 15 SP3libarchive3.4.2-150200.4.15.1SUSE-SU-2022:4202-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5libarchive3.3.3-32.8.1SUSE-SU-2022:4296-1
openSUSELeap 15.3libarchive3.4.2-150200.4.15.1SUSE-SU-2022:4202-1
openSUSELeap 15.4, Leap Micro 5.3libarchive3.5.1-150400.3.12.1SUSE-SU-2022:4209-1
openSUSETumbleweedbsdtar3.6.2-1.1openSUSE-SU-2024:12588-1
AlmaLinux8bsdtar, libarchive, libarchive-devel3.3.3-5.el8ALSA-2023:3018
AlmaLinux9bsdtar, libarchive, libarchive-devel3.5.3-4.el9ALSA-2023:2532
Rocky Linux8libarchive0:3.3.3-5.el8RLSA-2023:3018
Alpinev3.14libarchive3.5.3-r1ALPINE-CVE-2022-36227
Alpinev3.15, v3.16libarchive3.6.1-r1ALPINE-CVE-2022-36227
Alpinev3.17, v3.18, v3.19 and 5 morelibarchive3.6.1-r2ALPINE-CVE-2022-36227
Azure Linux2libarchive3.6.1-2AZL-11470

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability can only be exploited in an out-of-memory condition or when a memory allocation limit is reached. Additionally, the only known security impact of this issue is a denial of service. Due to these conditions, this flaw was rated as having a low severity.

The out-of-memory condition is triggered when all physical memory, including swap space, is being used. Furthermore, depending on the configuration, this event can cause the out-of-memory killer (OOM-Killer) to be activated, terminating the application and preventing the NULL pointer dereference from being exploited.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libarchive-0:3.3.3-5.el8Fixed 2023-05-16RHSA-2023:3018
Red Hat Enterprise Linux 8.6 Extended Update Supportlibarchive-0:3.3.3-4.el8_6Fixed 2024-01-10RHSA-2024:0146
Red Hat Enterprise Linux 9libarchive-0:3.5.3-4.el9Fixed 2023-05-09RHSA-2023:2532
Red Hat Enterprise Linux 6libarchiveOut of support scope
Red Hat Enterprise Linux 7libarchiveOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-36227.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON