← Vulnerability feed

Vulnerability record · CVE-2021-40449 · published 13 October 2021

CVE-2021-40449: Windows Win32k use-after-free local privilege escalation

Microsoft · Windows 10 1507

CVE-2021-40449 is a use-after-free (CWE-416) in the Windows Win32k component that allows a local attacker to elevate privileges. It affects a broad set of Windows client and server releases, and Microsoft has published a patch. Because it is a kernel-level elevation flaw with public exploit code and confirmed in-the-wild use, it is a serious risk on unpatched systems.

7.8 CVSS 3.1 High CISA KEV since 17 Nov 2021 Known ransomware use EPSS 74% · top 0.5% CWE-416 · Use after free
7.8CVSS 3.1 base score, v2 4.6
74%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
19Affected product versions listed by NVD
5References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

Win32k Elevation of Privilege Vulnerability

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 17 September 2026. Confidence: high.

high priorityIt is a patched but actively exploited local privilege escalation flaw in CISA KEV with known ransomware use and very high EPSS, though it requires local access.

What it is

CVE-2021-40449 is a use-after-free (CWE-416) in the Windows Win32k component that allows a local attacker to elevate privileges. It affects a broad set of Windows client and server releases, and Microsoft has published a patch. Because it is a kernel-level elevation flaw with public exploit code and confirmed in-the-wild use, it is a serious risk on unpatched systems.

Impact

A local attacker who can run code on the host can exploit the flaw to gain higher privileges, typically SYSTEM, on the affected Windows machine. That access can then be used to disable defenses, persist, or move laterally.

Attack surface

The attack is local (CVSS vector AV:L) and requires low privileges (PR:L) with no user interaction (UI:N). It is reached by running crafted code on the target system, not over the network.

Exploitation

CVE-2021-40449 is listed in CISA KEV with a due date of 2021-12-01 and is flagged for known ransomware campaign use; EPSS 30-day probability is about 0.74 (99.5th percentile). Public exploit code is referenced by Packet Storm, so exploitation is both practical and observed.

What to do

  • Apply the Microsoft security update for CVE-2021-40449 on all affected Windows client and server versions.
  • Prioritize patching internet-facing and high-value systems, and any host where untrusted local code can run.
  • Restrict local logon and code execution rights to reduce the pool of users who can trigger the flaw.
  • Enable and tune EDR/AV to block known Win32k exploitation behavior and monitor for privilege escalation attempts.
  • Verify patch coverage across the full affected product list, including older Windows 7, 8.1, and Server 2008/2012 builds.

Detection

  • Monitor for unexpected processes gaining SYSTEM or high-integrity tokens shortly after user-level execution.
  • Hunt for known Win32k/NtGdiResetDC use-after-free exploitation patterns and crash artifacts in Win32k.
  • Correlate local privilege escalation events with subsequent defense evasion, persistence, or ransomware precursor activity.
  • Audit hosts for missing patches matching the affected Windows versions and flag unpatched endpoints.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2021-40449 to the Known Exploited Vulnerabilities catalog on 17 November 2021 as "Microsoft Windows Win32k Privilege Escalation Vulnerability". CISA reports known use in ransomware campaigns. Required action: Apply updates per vendor instructions. Federal deadline 1 December 2021.

Affected products

19 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-40449 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2020-0796Microsoft SMBv3 buffer overflow remote code executionCVE-2020-0796 is a remote code execution flaw in how Microsoft's SMB 3.1.1 protocol handles certain requests, caused by a memory buffer overflow (CWE…KEVEPSS 100%analysed9.8CVE-2026-33824Double free in Windows IKE Extension enables remote code executionA double free flaw (CWE-415) exists in the Windows IKE Extension, reachable over the network by an unauthenticated attacker. Successful exploitation …KEVEPSS 1.6%analysed9.8CVE-2021-31166Microsoft Windows HTTP Protocol Stack use-after-free RCEThe HTTP Protocol Stack in Microsoft Windows 10 2004/20H2 and Windows Server 2004/20H2 contains a use-after-free (CWE-416) that allows remote code ex…KEVEPSS 100%analysed9.8CVE-2017-8543Windows Search memory handling flaw allows remote code executionWindows Search fails to properly handle objects in memory, allowing an unauthenticated remote attacker to execute code on affected Windows systems. T…KEVEPSS 74%analysed8.8CVE-2026-21510Windows Shell protection mechanism failure allows security feature bypassWindows Shell contains a protection mechanism failure (CWE-693) that lets an unauthorized attacker bypass a security feature over a network. The flaw…KEVEPSS 24%analysed8.8CVE-2026-21513Microsoft MSHTML security feature bypass on WindowsCVE-2026-21513 is a protection mechanism failure (CWE-693) in the Microsoft MSHTML Framework that lets an unauthorized attacker bypass a security fea…KEVEPSS 16%analysed8.8CVE-2025-33073Windows SMB improper access control allows privilege elevationWindows SMB contains an improper access control flaw (CWE-284) that lets an authorized attacker elevate privileges over the network. Microsoft rates …KEVEPSS 83%analysed8.8CVE-2025-33053Microsoft Windows WebDAV Internet Shortcut File Path Control RCEWindows Internet Shortcut (.url) files allow external control of a file name or path, which an unauthorized attacker can abuse to execute code over a…KEVEPSS 87%analysed

Source: NIST National Vulnerability Database (record CVE-2021-40449), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.