CVE-2021-31956: Windows NTFS Extended Attributes Buffer Overflow Privilege Escalation
- Vendor
- Microsoft Corporation
CVE-2021-31956 is a heap-based buffer overflow in the Windows NTFS kernel driver's NtfsQueryEaUserEaList function. Improper handling of integer underflow during extended-attribute output-buffer length checks permits corruption of paged-pool memory. Exploits combine this corruption with Windows Notification Facility objects to obtain arbitrary kernel-memory read and write capabilities and elevate a process to SYSTEM privileges. The vulnerability was exploited as a zero-day in PuzzleMaker attacks and subsequently incorporated into the Magnitude exploit kit.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation enables local privilege escalation to SYSTEM and arbitrary kernel-memory access. In observed browser exploit chains, it enabled escape from the Chrome sandbox after an initial browser compromise. SYSTEM token theft permits attacker-controlled processes to operate with elevated privileges; observed chains used the resulting access for malware execution, including Magniber ransomware deployment.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by limiting opportunities for local code execution and sandboxed code execution on affected hosts. Prioritize hardening of browsers and other applications that process untrusted content, restrict user ability to open untrusted files, minimize local administrative and interactive access, and use endpoint controls capable of detecting kernel exploitation behavior and anomalous privilege escalation. These measures do not eliminate the flaw but can reduce the likelihood of successful exploitation until patches are deployed.
Remediation
Patch, then assume compromise.
Apply the applicable Microsoft Windows security updates released on June 8, 2021, which patched CVE-2021-31956, or subsequent cumulative updates containing the fix.
Exploits
4 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-31956 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
- Is there a public exploit for CVE-2021-31956?
- Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2021-31956, the earliest disclosed Sep 2, 2022.
- Is there a patch for CVE-2021-31956?
- Apply the applicable Microsoft Windows security updates released on June 8, 2021, which patched CVE-2021-31956, or subsequent cumulative updates containing the fix.
- What products are affected by CVE-2021-31956?
- Microsoft Corporation Windows 10, Microsoft Corporation Windows 10 1507, Microsoft Corporation Windows 10 1607, Microsoft Corporation Windows 10 1809, Microsoft Corporation Windows 10 1909, and at least 15 more.
- How severe is CVE-2021-31956?
- CVE-2021-31956 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 22.3% (98th percentile) as of Oct 16, 2026.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.