CVE DatabaseCVE-2021-31956
한국어 권고문 →
CVE-2021-319567.8/HIGHCISA KEVCWE-191CWE-191

Windows NTFS Kernel Integer Underflow (CWE-191) Local Privilege Escalation Vulnerability (CVE-2021-31956) Technical Analysis and Mitigation Guide

⚡ Jump to Patch
Affected Vendors
microsoft
Affected Components
windows, windows_server
Published Date
2021-06-08
CVSS v3.1
7.8
HIGH
EPSS (30d)
22.3%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

NTFS file system driver in Windows 10, Windows 11, and Windows Server families

Impact

Local attackers can trigger kernel memory corruption to execute arbitrary code with SYSTEM privileges

Mitigation

Immediately apply the official Microsoft Latest Cumulative Update (LCU) and restrict local access

Affected Products & Version Scope

Windows 10, Windows 11, Windows Server 2016, 2019, 2022, and other Windows OS versions utilizing the NTFS file system (prior to June 2021 patch)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

This vulnerability was addressed in the June 2021 Microsoft Security Update. Use the following PowerShell commands to force-install the latest cumulative updates.

powershell
# Install and import the Windows Update module to apply the latest patches
Install-Module PSWindowsUpdate -Force -Verbose
Get-WindowsUpdate -AcceptAll -Install -AutoReboot

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, restrict local interactive logon rights and harden file system permissions to prevent unauthorized users from creating malicious files in shared directories.

cmd
:: Restrict write permissions on temporary directories to Administrators and SYSTEM only
icacls 'C:\Temp' /inheritance:r /grant:r 'Administrators':(OI)(CI)(F) /grant:r 'SYSTEM':(OI)(CI)(F)

3. Log Audit & IoC Verification Commands

Verify the current version of the ntfs.sys driver and audit security event logs for potential privilege escalation indicators.

powershell
# Check the file version of the NTFS driver to verify patch status
$NtfsPath = '$env:windir\System32\drivers\
tfs.sys'
$NtfsVersion = (Get-Item $NtfsPath).VersionInfo.FileVersion
Write-Host 'Current NTFS Driver Version:' $NtfsVersion

# Audit Security Event Logs for suspicious elevated logon sessions (Event ID 4624)
Get-WinEvent -FilterHashtable @{LogName='Security'; ID=4624} -MaxEvents 50 | 
    Where-Object {$_.Properties.Value -eq '6'} | 
    Format-Table TimeCreated, Message -AutoSize
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
As this vulnerability is actively exploited in the wild, immediately apply the latest Windows Cumulative Updates to secure your endpoints and servers.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2021-31956) is an integer underflow vulnerability (CWE-191) residing within the Windows NTFS file system driver (ntfs.sys). When the NTFS driver processes specially crafted Extended Attributes (EA) or malformed file system metadata structures, a lack of proper validation during buffer size calculations leads to an integer underflow. This underflow results in a heap-based buffer overflow in the Kernel Pool memory space when copying data into an undersized buffer.

2. Exploitation Mechanics & Attack Scenario

An attacker must first obtain local execution capabilities with low privileges on the target system. 1) The attacker creates a file or directory containing maliciously structured Extended Attributes (EA). 2) The attacker invokes system calls such as NtSetEaFile or NtQueryEaFile to force the kernel to parse the crafted file. 3) An integer underflow occurs inside ntfs.sys during size calculation, triggering an out-of-bounds write operation in the kernel pool. 4) By corrupting adjacent kernel pool chunks, the attacker manipulates kernel structures (such as process tokens) to elevate their privileges to NT AUTHORITY\SYSTEM.

3. Infrastructure & Business Impact

This vulnerability is cataloged in CISA's Known Exploited Vulnerabilities (KEV), indicating active exploitation in the wild by advanced threat actors. Local Privilege Escalation (EoP) vulnerabilities are critical components of multi-stage attack chains. Once initial access is gained via phishing or web exploits, attackers leverage this vulnerability to compromise domain controllers and critical servers, leading to full infrastructure takeover and potential ransomware deployment.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-31956)

FAQ

Q1. How critical is CVE-2021-31956 and is it actively exploited in the wild?

CVE-2021-31956 is rated CVSS 7.8 (HIGH) with a 30-day EPSS exploitation probability of 22.3%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-31956?

Primary impacted vendors include microsoft across windows, windows_server. Scope summary: Windows 10, Windows 11, Windows Server 2016, 2019, 2022, and other Windows OS versions utilizing the NTFS file system (prior to June 2021 patch)

Q3. What temporary mitigations or workarounds exist for CVE-2021-31956 before patching?

[Mitigation] Immediately apply the official Microsoft Latest Cumulative Update (LCU) and restrict local access Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-31956

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (microsoft)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-31956 Windows NTFS Kernel Integer Underflow (CWE-191) Local Privilege Escalation Vulnerability (CVE-2021-31956) Technical Analysis and Mitigation Guide (CVSS 7.8) - Patch & Workaround | CVE Pulse