Windows NTFS Extended Attributes Buffer Overflow Privilege Escalation
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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
4 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.