CVE-2021-40449: Win32k NtGdiResetDC Use-After-Free Privilege Escalation
- Vendor
- Microsoft Corporation
CVE-2021-40449 is a use-after-free vulnerability in the Windows Win32k NtGdiResetDC API that permits local privilege escalation. Exploitation requires local access with low privileges and no user interaction. The public CallbackHell exploit has been used to elevate privileges, write to kernel memory, and bypass endpoint security monitoring. The vulnerability was exploited as a zero-day in activity associated with MysterySnail and subsequently used in MATA campaigns. Microsoft released a fix in October 2021.
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 allows a low-privileged local attacker to elevate privileges and write to kernel memory. Observed exploitation has enabled interference with kernel callback monitoring used by endpoint security products. The vulnerability can also disclose kernel module addresses.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by limiting execution of untrusted code on endpoints, restricting local user ability to run arbitrary binaries, and tightening application control policies. Monitor for abnormal privilege-escalation behavior involving Win32k and suspicious attempts to tamper with kernel callback-based security telemetry. Harden endpoints with least-privilege controls, EDR tamper protection, and detection rules for known public exploit tradecraft associated with this flaw. These measures only reduce risk and do not eliminate the vulnerability; patching is the definitive fix.
Remediation
Patch, then assume compromise.
Apply the Microsoft Windows security updates released in October 2021 that address CVE-2021-40449, or applicable superseding updates. Specific affected Windows versions and update identifiers are not available in the supplied information.
Exploits
7 exploits validated by Mallory's analysis.
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-40449 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 17, 2021.
- Is there a public exploit for CVE-2021-40449?
- Yes. Mallory tracks 7 public exploits or proofs of concept for CVE-2021-40449, the earliest disclosed Oct 12, 2021.
- Is there a patch for CVE-2021-40449?
- Apply the Microsoft Windows security updates released in October 2021 that address CVE-2021-40449, or applicable superseding updates. Specific affected Windows versions and update identifiers are not available in the supplied information.
- What products are affected by CVE-2021-40449?
- Microsoft Corporation Windows 10 1507, Microsoft Corporation Windows 10 1607, Microsoft Corporation Windows 10 1809, Microsoft Corporation Windows 10 1909, Microsoft Corporation Windows 10 2004, and at least 17 more.
- How severe is CVE-2021-40449?
- CVE-2021-40449 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 81.9% (100th 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.