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-31956

CVE-2021-31956: Windows 10 1507 Privilege Escalation Flaw

CVE-2021-31956 is a privilege escalation vulnerability in Windows NTFS that enables attackers to gain elevated system privileges. This article covers the technical details, affected Windows versions, and mitigation strategies.

Updated: May 16, 2026

CVE-2021-31956 Overview

CVE-2021-31956 is an elevation of privilege vulnerability in the Windows NTFS file system driver. The flaw stems from an integer underflow [CWE-191] in ntfs.sys triggered through the NtfsQueryEaUserEaList function when processing Extended Attributes. A local authenticated attacker can leverage this condition to corrupt kernel memory and execute code with SYSTEM privileges. CISA added CVE-2021-31956 to the Known Exploited Vulnerabilities catalog, and the issue was chained with a Chromium zero-day in the PuzzleMaker attack campaign reported by Kaspersky in mid-2021. The vulnerability affects every supported Windows client and server release at the time of disclosure, including Windows 10, Windows 8.1, Windows 7, and Windows Server 2008 through 2019.

Critical Impact

Authenticated local attackers can escalate to SYSTEM by exploiting an NTFS integer underflow, enabling full kernel-mode compromise and persistence. Active exploitation has been confirmed by CISA.

Affected Products

  • Microsoft Windows 10 (versions 1507, 1607, 1809, 1909, 2004, 20H2, 21H1)
  • Microsoft Windows 7 SP1, Windows 8.1, Windows RT 8.1
  • Microsoft Windows Server 2008, 2012, 2016, 2019, Server 2004, Server 20H2

Discovery Timeline

  • 2021-06-08 - CVE-2021-31956 published to NVD and patched in Microsoft's June 2021 Patch Tuesday
  • 2026-01-13 - Last updated in NVD database

Technical Details for CVE-2021-31956

Vulnerability Analysis

The vulnerability resides in the NTFS driver's handling of Extended Attribute (EA) queries. When a caller invokes NtQueryEaFile with a user-supplied EaList, the kernel routes the request through NtfsQueryEaUserEaList in ntfs.sys. The function calculates the remaining output buffer space using a 32-bit length subtraction without validating that the EA entry's padded size is smaller than the available output length. When the padded length exceeds the remaining buffer size, the subtraction wraps around, producing a very large unsigned value.

The driver then proceeds to copy attacker-controlled EA data into a paged pool allocation using the underflowed length as its bounds check. The result is an out-of-bounds write into adjacent pool memory. Skilled attackers shape the paged pool layout using Windows Notification Facility (WNF) objects and pipe attributes to overwrite a chosen WNF state data structure, ultimately gaining arbitrary kernel read/write primitives.

Root Cause

The root cause is an integer underflow [CWE-191] in NTFS Extended Attribute parsing. The length arithmetic uses unchecked unsigned subtraction, allowing the size validation to be bypassed when a crafted EA list is supplied.

Attack Vector

Exploitation requires local access and low-privileged code execution. The attacker creates a file, writes a malicious set of Extended Attributes, and then calls NtQueryEaFile with a specially crafted EaList parameter. No user interaction is required. The resulting kernel pool corruption is converted into SYSTEM-level code execution, typically as the second stage of a sandbox-escape or post-exploitation chain.

The vulnerability mechanism is documented in detail in the Microsoft Security Advisory CVE-2021-31956 and in public research describing the PuzzleMaker campaign.

Detection Methods for CVE-2021-31956

Indicators of Compromise

  • Unexpected child processes spawned by browser renderer processes or other sandboxed applications running as SYSTEM
  • Suspicious creation or modification of Extended Attributes on NTFS files by unprivileged user processes
  • Presence of dropped payloads associated with the PuzzleMaker activity cluster in %ProgramData% or %TEMP%
  • Kernel pool corruption crashes (BSOD with BAD_POOL_HEADER or KERNEL_MODE_HEAP_CORRUPTION) immediately following EA query activity

Detection Strategies

  • Monitor for processes invoking NtQueryEaFile or NtSetEaFile against files containing oversized or malformed EA records
  • Hunt for token manipulation events where a low-integrity process suddenly executes with SYSTEM token attributes
  • Correlate browser sandbox escapes with subsequent privileged process creation within short time windows
  • Inspect Microsoft-Windows-Kernel-General and Sysmon Event ID 1 logs for anomalous parent-child chains originating from sandboxed processes

Monitoring Recommendations

  • Enable kernel pool corruption telemetry and forward WER crash reports to a central SIEM for analysis
  • Track patch compliance for the June 2021 cumulative update across every Windows host in the environment
  • Alert on local privilege escalation behaviors such as access token duplication from winlogon.exe or lsass.exe by non-system processes

How to Mitigate CVE-2021-31956

Immediate Actions Required

  • Apply the June 2021 (or later) Microsoft cumulative security update to every affected Windows client and server
  • Audit endpoints listed in the CISA Known Exploited Vulnerabilities Catalog entry and prioritize remediation per BOD 22-01
  • Restrict local logon and remove unnecessary local accounts on high-value servers to reduce the attacker prerequisite
  • Validate that endpoint protection is enforcing kernel exploit mitigations and reporting tamper attempts

Patch Information

Microsoft addressed CVE-2021-31956 in the June 8, 2021 Patch Tuesday release. Refer to the Microsoft Security Advisory CVE-2021-31956 for the specific KB articles applicable to each Windows version. Systems that have received any cumulative update from June 2021 onward are protected.

Workarounds

  • No official vendor workaround exists; patching is the only complete remediation
  • Limit local code execution on sensitive hosts by enforcing application allow-listing through Windows Defender Application Control or AppLocker
  • Enable Hypervisor-protected Code Integrity (HVCI) and Credential Guard to raise the cost of kernel exploitation
  • Decommission or isolate end-of-life Windows 7 and Server 2008 systems that cannot receive current updates
bash
# Verify patch installation for the June 2021 rollup on a Windows host
wmic qfe list brief /format:table | findstr /I "KB5003637 KB5003646 KB5003635 KB5003638 KB5003671 KB5003667"

# Confirm HVCI is enabled to mitigate kernel exploitation
powershell -Command "Get-CimInstance -ClassName Win32_DeviceGuard -Namespace root\Microsoft\Windows\DeviceGuard | Select-Object SecurityServicesRunning"

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechMicrosoft Windows

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability90.72%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-191
  • Technical References
  • CISA Known Exploited Vulnerability Catalog
  • Vendor Resources
  • Microsoft Security Advisory CVE-2021-31956
  • Related CVEs
  • CVE-2026-21241: Windows 11 23h2 Privilege Escalation Flaw

  • CVE-2025-68154: Systeminformation Library RCE Vulnerability

  • CVE-2025-4056: Gnome Glib DOS Vulnerability on Windows

  • CVE-2025-64298: Mirion Biodose/nmis Info Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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