Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2022-21958

CVE-2022-21958: Windows ReFS RCE Vulnerability

CVE-2022-21958 is a remote code execution vulnerability in Windows Resilient File System (ReFS) that enables attackers to execute arbitrary code. This article covers the technical details, affected Windows versions, and mitigation.

Published: February 11, 2026

CVE-2022-21958 Overview

CVE-2022-21958 is a Remote Code Execution vulnerability affecting the Windows Resilient File System (ReFS) component across a wide range of Microsoft Windows operating systems. This vulnerability requires physical access to an affected system to exploit, allowing an attacker to execute arbitrary code with elevated privileges once they gain physical access to a vulnerable machine.

ReFS (Resilient File System) is Microsoft's modern file system designed for data availability, scalability, and integrity. A flaw in the ReFS driver allows attackers with physical access to craft malicious input that triggers code execution in the context of the operating system kernel.

Critical Impact

Successful exploitation allows attackers with physical access to execute arbitrary code, potentially gaining complete control over the affected system with the ability to read, modify, or delete data and install persistent malware.

Affected Products

  • Microsoft Windows 10 (all versions including 1607, 1809, 1909, 20H2, 21H1, 21H2)
  • Microsoft Windows 11 (x64 and ARM64)
  • Microsoft Windows 8.1 and Windows RT 8.1
  • Microsoft Windows Server 2012, 2012 R2, 2016, 2019, 2022, and 20H2

Discovery Timeline

  • January 11, 2022 - CVE-2022-21958 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-21958

Vulnerability Analysis

This vulnerability exists within the Windows Resilient File System (ReFS) driver, which handles file system operations for ReFS-formatted volumes. The flaw allows an attacker with physical access to the system to execute arbitrary code at the kernel level, bypassing standard security controls.

The attack requires physical access to the target machine, meaning an attacker must be able to interact directly with the hardware. Once physical access is obtained, the attacker can leverage this vulnerability to compromise the system's integrity, confidentiality, and availability completely. The exploitation does not require authentication or user interaction, making it particularly dangerous in scenarios where physical security controls are weak.

Root Cause

While Microsoft has not disclosed specific technical details about the root cause (classified as NVD-CWE-noinfo), vulnerabilities of this nature in file system drivers typically stem from improper validation of file system metadata, buffer handling errors when processing malformed ReFS structures, or memory corruption issues triggered by crafted file system images.

The ReFS driver operates at the kernel level with elevated privileges. Any code execution vulnerability in this component inherently provides attackers with kernel-level access, enabling complete system compromise.

Attack Vector

The physical attack vector (AV:P) indicates that exploitation requires direct physical access to the target system. Attack scenarios include:

An attacker could connect a malicious USB storage device formatted with a crafted ReFS volume that exploits the vulnerability when Windows attempts to mount or parse the file system. Alternatively, an attacker with physical access to an unlocked or booted system could mount a malicious disk image or connect external storage containing the exploit payload.

The vulnerability requires no privileges on the target system and no user interaction beyond the automatic file system parsing that occurs when storage devices are connected.

Detection Methods for CVE-2022-21958

Indicators of Compromise

  • Unexpected ReFS volume mount operations or file system driver activity
  • Unusual kernel-mode crashes or blue screens related to refs.sys driver
  • Unauthorized external storage device connections in Windows Event Logs
  • Suspicious processes spawned with SYSTEM privileges following storage device connections

Detection Strategies

  • Monitor Windows Event Logs for ReFS-related errors or unexpected volume mount events (Event IDs in the storage subsystem category)
  • Implement endpoint detection rules for suspicious kernel driver behavior and unexpected code execution from file system operations
  • Deploy USB device control policies to alert on unauthorized removable media connections
  • Configure SentinelOne to detect anomalous kernel-mode activity and privilege escalation attempts

Monitoring Recommendations

  • Enable detailed logging for Plug and Play events and storage device connections
  • Monitor for ReFS driver (refs.sys) crashes or exceptions using Windows Error Reporting
  • Implement physical security monitoring and access controls for sensitive systems
  • Use SentinelOne's behavioral AI to detect post-exploitation activity such as persistence mechanisms or lateral movement

How to Mitigate CVE-2022-21958

Immediate Actions Required

  • Apply the latest Microsoft security updates from January 2022 Patch Tuesday immediately
  • Restrict physical access to critical systems and implement strong physical security controls
  • Disable auto-mount functionality for removable storage devices where operationally feasible
  • Implement USB device control policies to prevent unauthorized storage device connections

Patch Information

Microsoft released security patches addressing this vulnerability as part of the January 2022 security updates. Organizations should download and apply the appropriate cumulative update for their Windows version from the Microsoft Update Guide or through Windows Update and WSUS.

For detailed patch information and affected version-specific updates, refer to the Microsoft Security Advisory for CVE-2022-21958.

Workarounds

  • Implement strict physical access controls to prevent unauthorized persons from accessing vulnerable systems
  • Configure Group Policy to disable automatic mounting of removable storage: Computer Configuration > Administrative Templates > System > Removable Storage Access
  • Use BitLocker or similar full-disk encryption to protect systems in case of physical compromise
  • Deploy USB device whitelisting to only allow known, trusted storage devices
bash
# Disable automatic mounting of new volumes via registry
reg add "HKLM\SYSTEM\CurrentControlSet\Services\MountMgr" /v NoAutoMount /t REG_DWORD /d 1 /f

# Verify the setting is applied
reg query "HKLM\SYSTEM\CurrentControlSet\Services\MountMgr" /v NoAutoMount

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWindows

  • SeverityMEDIUM

  • CVSS Score6.8

  • EPSS Probability2.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Microsoft Update Guide CVE-2022-21958

  • Microsoft Security Advisory CVE-2022-21958
  • Related CVEs
  • CVE-2026-33826: Windows Active Directory RCE Vulnerability

  • CVE-2026-32183: Windows Snipping Tool RCE Vulnerability

  • CVE-2026-32149: Windows Hyper-V RCE Vulnerability

  • CVE-2026-31995: Openclaw Command Injection 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