A vulnerability exists within win32k that can be leveraged by an attacker to escalate privileges to those of NT AUTHORITY\SYSTEM. The flaw exists in how the WndExtra field of a window can be manipulated into being treated as an offset despite being populated by an attacker-controlled value. This can be leveraged to achieve an out of bounds write operation, eventually leading to privilege escalation. This flaw was originally identified as CVE-2021-1732 and was patched by Microsoft on February 9th, 2021. In early 2022, a technique to bypass the patch was identified and assigned CVE-2022-21882. The root cause is is the same for both vulnerabilities. This exploit combines the patch bypass with the original exploit to function on a wider range of Windows 10 targets.
Exploit database
Vulnerability
CVE-2022-21882
Win32k Elevation of Privilege Vulnerability
Vulnerability details
- Score
- 7.0
- Severity
- high
CVSS 3.1 · microsoft
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:CDescription
Win32k Elevation of Privilege Vulnerability
CVE ProgramExploit source choices
11 sourcesWin32k ConsoleControl Offset Confusion
2021-02-09cve_2022_21882_win32k.rb
ascotbe/kernelhub
:palm_tree:Linux、macOS、Windows Kernel privilege escalation vulnerability collection, with compilation environment, demo GIF map, vulnerability details, executable file (提权漏洞合集)
2020-08-091,837 files · 3,202 stars
al1ex/windowselevation
Windows Elevation(持续更新)
2021-03-291,045 files · 665 stars
kalendsi/cve-2022-21882
win32k LPE
2022-01-2710 files · 461 stars
l4ys/cve-2022-21882
l4ys/cve-2022-21882 source repository
2022-02-033 files · 196 stars
sailay1996/cve-2022-21882-poc
lpe poc for cve-2022-21882
2022-02-0715 files · 49 stars
cvedb/awesome-cve-repo
cvedb/awesome-cve-repo source repository
2023-03-237 files · 9 stars
david-honisch/cve-2022-21882
CVE-2022-21882
2022-02-0112 files · 8 stars
r1l4-i3pur1l4/cve-2022-21882
r1l4-i3pur1l4/cve-2022-21882 source repository
2022-02-144 files · 6 stars
cvedb/top
cvedb/top source repository
2023-03-1911 files · 2 stars
d4n-sec/d4n-sec.github.io
Generated personal blog
2026-11-06385 files · 0 stars