What is Windows Event Tracing for Windows (ETW)?
Event Tracing for Windows (ETW) is a high-performance kernel-mode logging and tracing infrastructure built into Windows that enables both the OS and applications to log diagnostic events at very high throughput with minimal overhead. ETW operates at the kernel level and manages session objects, provider registrations, and event buffers — all of which reside in kernel memory and are managed by the ETW subsystem running in kernel space. Because ETW session management involves creating, modifying, and destroying kernel objects, use-after-free vulnerabilities in ETW allow an attacker to access freed kernel memory — a classic pattern for achieving arbitrary kernel read/write and ultimately SYSTEM-level code execution.
Overview
CVE-2021-34486 is a use-after-free vulnerability (CWE-416) in the Windows Event Tracing for Windows (ETW) kernel subsystem, allowing a low-privileged local user to escalate to SYSTEM privileges. The UAF occurs in ETW's kernel-mode session management code: an ETW object is freed while a reference to it remains accessible, allowing an attacker to trigger a use of the freed memory region and corrupt kernel memory for privilege escalation. Microsoft patched this in August 2021 Patch Tuesday alongside several other Windows kernel LPE vulnerabilities. CISA added it to the KEV catalog in March 2022, reflecting confirmed exploitation in post-compromise attack chains.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
| Windows 10 (all versions) | Yes | August 2021 Patch Tuesday |
| Windows 11 | Yes | August 2021 Patch Tuesday |
| Windows Server 2016 | Yes | August 2021 Patch Tuesday |
| Windows Server 2019 | Yes | August 2021 Patch Tuesday |
| Windows Server 2022 | Yes | August 2021 Patch Tuesday |
Technical Details
- Root cause: Use-after-free (CWE-416) in the ETW kernel subsystem — an ETW session or provider kernel object is freed, but a stale pointer to the freed memory remains; attacker-controlled ETW operations trigger a subsequent access through the dangling pointer, corrupting kernel memory
- UAF exploitation: By controlling the memory allocation that fills the freed ETW object's location (heap spraying), an attacker can place attacker-controlled data at the address the dangling pointer references; when the kernel subsequently accesses this memory, it processes attacker-controlled data as a kernel object, enabling type confusion and ultimately arbitrary kernel code execution
- SYSTEM privileges: Kernel code execution via the ETW UAF provides full SYSTEM-level access — the highest privilege level on Windows, bypassing all user-mode security boundaries including UAC, process isolation, and protected process light (PPL)
- Attack prerequisites: Requires a low-privileged local account (PR:L) with no user interaction needed — standard for post-compromise escalation scenarios where an attacker has already obtained initial access
- ETW attack surface: ETW is accessible to all Windows processes through documented APIs (OpenTrace, StartTrace, ControlTrace), providing a legitimate and widely-available pathway to trigger the vulnerable kernel code path
Discovery
Reported to Microsoft and patched in August 2021 Patch Tuesday. The March 2022 CISA KEV addition — three days before the companion CVE-2021-34484 KEV entry — reflects parallel exploitation of multiple August 2021 kernel LPE vulnerabilities in the same post-compromise attack campaigns, suggesting that both CVEs were incorporated into exploitation toolkits simultaneously.
Exploitation Context
Windows ETW kernel UAF vulnerabilities are valuable post-exploitation tools because ETW APIs are universally available to low-privileged processes, making reliable exploitation straightforward once a working UAF primitive is established. Ransomware affiliates and intrusion operators who gain initial access through phishing or credential theft use kernel LPE vulnerabilities like CVE-2021-34486 to achieve SYSTEM before disabling endpoint detection tools, dumping credentials from LSASS, and moving laterally. The CISA KEV addition seven months after the August 2021 patch reflects the timeframe for exploitation evidence to surface in incident response investigations — a gap that represents significant exposure for organizations with delayed patch adoption.
Remediation
- Apply August 2021 Patch Tuesday updates — check the Microsoft Update Catalog for the KB number appropriate to your Windows version (KB5005033 for Windows 10 20H2/21H1 and equivalent)
- Verify patch installation:
systeminfo | findstr KBand confirm the relevant August 2021 KB is present - Enforce principle of least privilege for local accounts — limit which accounts have interactive or remote logon rights on servers to reduce the attack surface for post-exploitation LPE
- Enable Windows Defender Exploit Guard and Attack Surface Reduction (ASR) rules to constrain attacker behavior after initial access
- Deploy Endpoint Detection and Response (EDR) tooling capable of detecting kernel exploit behavior patterns — ETW UAF exploitation typically involves unusual kernel allocation patterns and ETW API sequences from non-system processes
- Monitor for privilege escalation indicators: unexpected SYSTEM token acquisition by user-mode processes, token impersonation from non-administrative contexts
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2021-34486 |
| Vendor / Product | Microsoft — Windows |
| NVD Published | 2021-08-12 |
| NVD Last Modified | 2025-10-30 |
| CVSS 3.1 Score | 7.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Severity | HIGH |
| CWE | CWE-416 find similar ↗ |
| CISA KEV Added | 2022-03-28 |
| CISA KEV Deadline | 2022-04-18 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2021-08-10 | Microsoft patches CVE-2021-34486 in August 2021 Patch Tuesday alongside multiple other Windows kernel LPE vulnerabilities |
| 2021-08-12 | CVE published |
| 2022-03-28 | Added to CISA Known Exploited Vulnerabilities catalog — seven months after patch, confirming post-compromise exploitation |
| 2022-04-18 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| Microsoft Security Advisory — CVE-2021-34486 | Vendor Advisory |
| NVD — CVE-2021-34486 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |