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
    • AI 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-2021-3622

CVE-2021-3622: Redhat Hivex DOS Vulnerability

CVE-2021-3622 is a denial of service flaw in Redhat Hivex that allows attackers to trigger stack overflow via crafted Registry files. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-3622 Overview

A stack overflow vulnerability was discovered in the hivex library, which is used for reading and writing Windows Registry hive files. This flaw allows an attacker to provide a specially crafted Windows Registry (hive) file that causes the _get_children() function to recursively call itself without proper depth limits, leading to a stack overflow condition. The vulnerability primarily impacts system availability through denial of service.

Critical Impact

An attacker can crash applications using the hivex library by supplying a maliciously crafted Windows Registry hive file, causing a denial of service condition through uncontrolled recursion in ri-record processing.

Affected Products

  • Red Hat Hivex (all versions prior to patch)
  • Red Hat Enterprise Linux 6.0, 7.0, and 8.0
  • Red Hat Enterprise Linux Workstation 7.0
  • Fedora 33 and 34

Discovery Timeline

  • 2021-12-23 - CVE-2021-3622 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-3622

Vulnerability Analysis

The vulnerability exists in the hivex library's handling of Windows Registry hive files, specifically within the _get_children() function located in lib/node.c. When processing ri-records (registry index records) within a hive file, the function recursively processes child nodes without enforcing a maximum recursion depth. An attacker can exploit this by creating a malformed hive file with deeply nested or circular ri-record references, causing the function to recurse indefinitely until the stack is exhausted.

The hivex library is commonly used by tools like libguestfs for virtual machine disk image inspection and manipulation. Applications processing untrusted Registry hive files are particularly at risk from this vulnerability.

Root Cause

The root cause is a missing recursion depth limit in the _get_children() function when processing ri-records in Windows Registry hive files. The function did not track or limit the depth of recursive calls, making it susceptible to resource exhaustion attacks via specially crafted input files (CWE-400: Uncontrolled Resource Consumption).

Attack Vector

The attack requires user interaction where a victim must open or process a malicious Windows Registry hive file using an application that relies on the hivex library. The attack is network-deliverable, meaning the malicious file can be distributed via email, web downloads, or shared storage. Once processed, the crafted file triggers uncontrolled recursion in the ri-record parsing logic, exhausting the stack and causing the application to crash.

c
// Security patch limiting recursion depth in _get_children()
// Source: https://github.com/libguestfs/hivex/commit/771728218dac2fbf6997a7e53225e75a4c6b7255
 
static int _get_children (hive_h *h, hive_node_h blkoff,
                          offset_list *children, offset_list *blocks,
-                          int flags);
+                          int flags, unsigned depth);
static int check_child_is_nk_block (hive_h *h, hive_node_h child, int flags);
 
/* Iterate over children (ie. subkeys of a node), returning child

The patch introduces a depth parameter to the _get_children() function signature, enabling the function to track and limit recursion depth when processing ri-records.

Detection Methods for CVE-2021-3622

Indicators of Compromise

  • Unexpected crashes of applications using hivex library during Registry hive file processing
  • Stack overflow errors or segmentation faults in processes utilizing hivex functions
  • Presence of unusually structured Windows Registry hive files with abnormal ri-record nesting
  • Process termination events correlating with hive file operations in libguestfs or similar tools

Detection Strategies

  • Monitor for application crashes involving hivex library components or related tools like virt-inspector
  • Implement file integrity monitoring for unexpected Registry hive files in processing directories
  • Deploy endpoint detection rules to identify stack exhaustion patterns in processes handling hive files
  • Configure system logging to capture segmentation faults and abnormal process terminations

Monitoring Recommendations

  • Enable crash reporting and core dump analysis for applications utilizing the hivex library
  • Monitor system resource usage for unusual stack memory consumption patterns
  • Review application logs for hivex-related errors or processing failures
  • Implement alerting for repeated crashes of virtualization management tools that use libguestfs

How to Mitigate CVE-2021-3622

Immediate Actions Required

  • Update the hivex package to the patched version available from your distribution's repositories
  • Apply vendor-provided security updates for Red Hat Enterprise Linux and Fedora systems
  • Restrict processing of untrusted Windows Registry hive files until patches are applied
  • Review and audit applications that depend on hivex for handling user-supplied files

Patch Information

Red Hat and Fedora have released security updates addressing this vulnerability. The fix was implemented in commit 771728218dac2fbf6997a7e53225e75a4c6b7255 to the hivex repository, which adds a depth parameter to limit recursion in ri-record processing. Administrators should apply updates via their standard package management tools:

  • Red Hat Bug Report - Official bug tracking entry
  • GitHub Commit for Hivex - Source code fix
  • Red Hat Libguestfs Mailing List Announcement - Security advisory

Workarounds

  • Avoid processing Windows Registry hive files from untrusted sources until the patch is applied
  • Implement application-level sandboxing for hivex-dependent tools to contain potential crashes
  • Use process isolation and resource limits (ulimit) to mitigate impact of stack exhaustion
  • Consider containerizing applications that process untrusted hive files to limit blast radius
bash
# Apply security updates on Red Hat Enterprise Linux
sudo yum update hivex

# Apply security updates on Fedora
sudo dnf update hivex

# Verify installed hivex version
rpm -q hivex

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechRedhat Hivex

  • SeverityMEDIUM

  • CVSS Score4.3

  • EPSS Probability0.58%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-400
  • Technical References
  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • Red Hat Bug Report

  • GitHub Commit for Hivex

  • Red Hat Libguestfs Email
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer 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