The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-36227

CVE-2022-36227: Libarchive Use-After-Free Vulnerability

CVE-2022-36227 is a use-after-free vulnerability in Libarchive before version 3.6.2 that involves NULL pointer dereference risks. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 18, 2026

CVE-2022-36227 Overview

CVE-2022-36227 is a NULL Pointer Dereference vulnerability affecting libarchive versions prior to 3.6.2. The vulnerability exists because the software does not check for an error after calling the calloc function, which can return a NULL pointer if the function fails. This leads to a resultant NULL pointer dereference condition.

While the security impact is debated among researchers—with some noting that in rare circumstances where NULL is equivalent to the 0x0 memory address and privileged code can access it, writing or reading memory may be possible, potentially leading to code execution—the vulnerability nonetheless represents a significant stability and security concern for applications utilizing libarchive for archive processing operations.

Critical Impact

This NULL pointer dereference vulnerability in libarchive can cause application crashes and potential denial of service. In rare edge cases involving privileged code accessing 0x0 memory, code execution may be theoretically possible.

Affected Products

  • libarchive versions before 3.6.2
  • Debian Linux 10.0
  • Fedora 37
  • Splunk Universal Forwarder (multiple versions including 9.1.0)

Discovery Timeline

  • 2022-11-22 - CVE-2022-36227 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2022-36227

Vulnerability Analysis

The vulnerability stems from improper error handling in libarchive's memory allocation routines. When calloc is called to allocate memory for archive operations, the return value is not validated before use. The calloc function can fail and return NULL under various conditions including memory exhaustion, extremely large allocation requests, or system resource constraints.

When this NULL pointer is subsequently dereferenced in the code path, it triggers undefined behavior. On most modern operating systems with memory protection, this results in a segmentation fault and program termination. However, the CVE description notes that in specialized environments where NULL maps to accessible memory at address 0x0, more severe consequences could theoretically occur.

The vulnerable code pattern exists in the archive write functionality, specifically in archive_write.c. Applications that process untrusted archive files or operate under memory-constrained conditions are at elevated risk.

Root Cause

The root cause is a missing NULL check after the calloc memory allocation call (CWE-476: NULL Pointer Dereference). The software assumes that memory allocation will always succeed and proceeds to use the returned pointer without validation. This violates secure coding practices that mandate checking return values from functions that can fail.

The issue is compounded by the fact that libarchive is widely used as a library in numerous applications and operating systems, amplifying the potential attack surface.

Attack Vector

This vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker could potentially trigger the vulnerability by:

  1. Providing a specially crafted archive file that causes libarchive to attempt large or numerous memory allocations
  2. Exploiting memory pressure conditions on the target system to cause calloc to fail
  3. Targeting applications that process archives from untrusted sources

The network attack vector makes this vulnerability particularly concerning for services that automatically process uploaded archives or extract files from remote sources.

The vulnerability manifests when calloc fails and returns NULL, but the code continues execution without validating this return value. The subsequent operations on the NULL pointer cause the crash or undefined behavior. For technical details, see the GitHub code reference and GitHub Issue #1754.

Detection Methods for CVE-2022-36227

Indicators of Compromise

  • Application crashes or segmentation faults in processes using libarchive during archive operations
  • Unexpected service terminations when processing archive files
  • Core dumps containing references to libarchive functions and NULL pointer access
  • Repeated failures in archive extraction or creation workflows

Detection Strategies

  • Monitor for segmentation fault signals (SIGSEGV) in applications linked against libarchive
  • Implement version checking for libarchive installations to identify versions prior to 3.6.2
  • Deploy memory monitoring to detect abnormal allocation patterns that could trigger the vulnerability
  • Use SentinelOne's behavioral detection to identify crash patterns consistent with NULL pointer dereference exploitation

Monitoring Recommendations

  • Enable crash reporting and core dump collection for applications using libarchive
  • Monitor system logs for repeated application failures during archive processing
  • Implement application-level health checks for services that depend on libarchive functionality
  • Track resource utilization to identify potential memory exhaustion attacks that could trigger the vulnerability

How to Mitigate CVE-2022-36227

Immediate Actions Required

  • Update libarchive to version 3.6.2 or later immediately
  • Identify all applications and services in your environment that depend on libarchive
  • Prioritize patching systems that process archives from untrusted sources
  • Apply vendor-specific patches from Debian, Fedora, Gentoo, and Splunk as applicable

Patch Information

The vulnerability is fixed in libarchive version 3.6.2 and later. Multiple Linux distributions have released security updates:

  • Debian: Security advisory available for Debian LTS - see Debian LTS Announcement January 2023 and Debian LTS Announcement November 2024
  • Fedora: Package update released for Fedora 37 - see Fedora Package Announcement
  • Gentoo: Security advisory GLSA 2023-09-14 issued - see Gentoo GLSA 2023-09-14
  • Splunk: Update Universal Forwarder to patched versions

Consult the Gentoo Bug Report #882521 for additional technical details.

Workarounds

  • Implement input validation to limit archive sizes and prevent processing of extremely large archives
  • Deploy resource limits (ulimits) to prevent memory exhaustion scenarios that could trigger allocation failures
  • Isolate archive processing in sandboxed environments to contain potential exploitation
  • Consider using application-level memory overcommit settings to reduce calloc failure likelihood in controlled environments
bash
# Configuration example
# Check installed libarchive version
bsdtar --version

# Update libarchive on Debian/Ubuntu
sudo apt update && sudo apt install libarchive-tools libarchive13

# Update libarchive on Fedora
sudo dnf update libarchive

# Update libarchive on Gentoo
sudo emerge --sync && sudo emerge -uDN app-arch/libarchive

# Set resource limits to reduce exploitation risk
ulimit -v 2097152  # Limit virtual memory to 2GB

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLibarchive

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.42%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • GitHub Code Reference v3.0.0a

  • Debian LTS Announcement January 2023

  • Fedora Package Announcement

  • Gentoo GLSA 2023-09-14

  • Debian LTS Announcement November 2024
  • Vendor Resources
  • Gentoo Bug Report #882521

  • GitHub Issue #1754
  • Related CVEs
  • CVE-2021-36976: Libarchive Use-After-Free Vulnerability

  • CVE-2026-5745: libarchive NULL Pointer DoS Vulnerability

  • CVE-2026-5121: libarchive RCE Vulnerability

  • CVE-2026-4426: libarchive DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English