Patchfirst
CVE-2021-40449 KEVRansomwarePublic exploit High · 7.8 EPSS 81.9%

Microsoft Windows Win32k Privilege Escalation Vulnerability

Microsoft · Windows

Summary

The Win32k component of Microsoft Windows contains a privilege escalation flaw classified as a use-after-free condition. An attacker with local access and low-privileged credentials on the system could exploit it without any user interaction to gain elevated privileges.

Official description · NVD

Win32k Elevation of Privilege Vulnerability

Breakdown
78.4 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
6/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

  3. What can follow

First seen exploited 1 day before it was disclosed. Public exploit code (Metasploit) was available 1 day before disclosure.

  1. First seen exploitedVulnCheck KEV evidencePublic exploit codeMetasploit1 day before
  2. Disclosedday 0
  3. Added to CISA KEVknown ransomware use; EU database agrees+35 days

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

8 , grouped by in kill-chain order 8

Initial AccessTA0001

Phishing T1566
MITRE CTID mapping of the KEV entry · how it is exploited

This vulnerability is exploited by an attacker who has obtained administrative console access on the target system. The vulnerability lies in the Win32k driver, specifically in the NtGdiResetDC function, due to improper handling of user-mode callbacks. This vulnerability has been exploited by threat actors to gain elevated privileges on Windows servers. Attackers leveraged this flaw to execute arbitrary kernel commands, allowing them to manipulate system processes and deploy additional malware to perform further malicious activities. The exploit in question is actively being used in the wild, primarily in espionage campaigns. It involves triggering a use-after-free condition by executing the ResetDC function a second time for the same handle during a callback. Once the vulnerability is exploited, attackers can manipulate memory to perform arbitrary kernel function calls with controlled parameters. This allows them to achieve their objectives, such as reading and writing kernel memory, with the same permissions as the compromised system's user.

ExecutionTA0002

MITRE CTID mapping of the KEV entry · follow-on activity

Privilege EscalationTA0004

MITRE CTID mapping of the KEV entry · primary impact

Stealth

MITRE CTID mapping of the KEV entry · follow-on activity

DiscoveryTA0007

MITRE CTID mapping of the KEV entry · follow-on activity
MITRE CTID mapping of the KEV entry · follow-on activity

Command and ControlTA0011

Web Protocols T1071.001
MITRE CTID mapping of the KEV entry · follow-on activity

This vulnerability is exploited by an attacker who has obtained administrative console access on the target system. The vulnerability lies in the Win32k driver, specifically in the NtGdiResetDC function, due to improper handling of user-mode callbacks. This vulnerability has been exploited by threat actors to gain elevated privileges on Windows servers. Attackers leveraged this flaw to execute arbitrary kernel commands, allowing them to manipulate system processes and potentially deploy additional malware or perform further malicious activities. The exploit in question is actively being used in the wild, primarily in espionage campaigns. It involves triggering a use-after-free condition by executing the ResetDC function a second time for the same handle during a callback. Once the vulnerability is exploited, attackers can manipulate memory to perform arbitrary kernel function calls with controlled parameters. This allows them to achieve their objectives, such as reading and writing kernel memory, with the same permissions as the compromised system's user.

MITRE CTID mapping of the KEV entry · follow-on activity

Detection

0 rules for this CVE · 273 general rules for its techniques

Rules for this CVE

0 that reference CVE-2021-40449 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

PhishingT156614 general rules
Exploitation for Privilege EscalationT106831 general rules
Windows Command ShellT1059.00346 general rules
Obfuscated Files or InformationT102795 general rules
System Network Configuration DiscoveryT101612 general rules
System Information DiscoveryT108233 general rules
Web ProtocolsT1071.00142 general rules

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

3 links, grouped by NVD tag (2 duplicates merged)
↑ ↓ chooseEnter openEsc close