CVE-2022-21882 — Microsoft Win32k Privilege Escalation Vulnerability

CVE-2022-21882

Microsoft Windows Win32k — Local Privilege Escalation to SYSTEM via Kernel Driver Out-of-Bounds Write

What is Microsoft Win32k?

Win32k.sys is a Windows kernel-mode driver that implements the GUI subsystem — handling window management, GDI graphics, and user interface operations for all Windows applications. Because Win32k runs in kernel mode with the highest privilege level, vulnerabilities in it enable local privilege escalation (LPE) from a limited user account to SYSTEM. Win32k LPE vulnerabilities are consistently among the most exploited Windows vulnerabilities, commonly chained with code execution exploits to achieve full system compromise.

Overview

CVE-2022-21882 is a high-severity Win32k privilege escalation vulnerability (CWE-787, CVSS 7.0) in Microsoft Windows. A local attacker with low privileges can exploit an out-of-bounds write in the Win32k kernel driver to escalate to SYSTEM privileges. Patched in January 2022 Patch Tuesday, the vulnerability was confirmed actively exploited — CISA added it to KEV on February 4, 2022.

Affected Versions

Product Vulnerable Fixed
Windows 10, 11 All versions before January 2022 patch KB5009543 / KB5009566
Windows Server 2019, 2022 All versions before January 2022 patch January 2022 cumulative update

Technical Details

The vulnerability (CWE-787: Out-of-bounds Write) exists in the Win32k.sys kernel driver. An out-of-bounds write in a Win32k GUI processing code path allows a local attacker with low privileges to corrupt kernel data structures — such as a process token or security descriptor — enabling escalation from a limited user account to NT AUTHORITY\SYSTEM.

The attack requires local code execution but no user interaction and minimal privileges. CVE-2022-21882 is typically used as the second stage in a two-stage attack: a remote code execution vulnerability provides initial access in a sandboxed or low-privilege context, then the Win32k LPE elevates that access to SYSTEM for full machine control.

The CVSS attack complexity of High reflects that triggering the vulnerability reliably may require specific timing conditions (race condition) or particular system state.

Discovery

Discovered by security researchers and reported to Microsoft. Active exploitation was confirmed approximately three weeks after the January 2022 Patch Tuesday fix — suggesting rapid reverse engineering of the patch or pre-existing knowledge of the bug.

Exploitation Context

Win32k privilege escalation vulnerabilities are a consistent component of Windows attack chains:

  • Ransomware deployment: After initial access, ransomware operators use LPE to achieve SYSTEM privileges for disabling AV, encrypting system files, and modifying boot records
  • Lateral movement: SYSTEM-level access enables credential harvesting from LSASS and remote code execution across the domain
  • APT persistence: Nation-state actors use Win32k LPE to escape browser sandboxes or elevate initial footholds to full machine control
  • Post-exploitation frameworks: C2 frameworks include Win32k LPE modules for privilege escalation workflows

Remediation

  1. Apply January 2022 Patch Tuesday: Install the cumulative update via Windows Update or WSUS — KB5009543 for Windows 10, KB5009566 for Windows 11.
  2. Prioritize patch deployment: Win32k LPE is actively exploited and commonly used in multi-stage attack chains targeting enterprise environments.
  3. Enable Attack Surface Reduction: Microsoft Defender ASR rules can block certain exploitation patterns.
  4. Deploy EDR: Endpoint Detection and Response solutions detect privilege escalation attempts through behavioral anomaly detection.

Key Details

PropertyValue
CVE ID CVE-2022-21882
Vendor / Product Microsoft — Win32k
NVD Published2022-01-11
NVD Last Modified2025-10-30
CVSS 3.1 Score7
CVSS 3.1 VectorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
SeverityHIGH
CWE CWE-787 find similar ↗
CISA KEV Added2022-02-04
CISA KEV Deadline2022-02-18
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-02-18. Apply updates per vendor instructions.

Timeline

DateEvent
2022-01-11Microsoft patched CVE-2022-21882 in January 2022 Patch Tuesday
2022-02-04CISA added to KEV; active exploitation confirmed
2022-02-18CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2022-21882 Vulnerability Database
CISA KEV Catalog Entry US Government
Microsoft Security Update Guide — CVE-2022-21882 Vendor Advisory