Skip to main content
Vulnerability Database/CVE-2024-21445

CVE-2024-21445: Windows USB Print Driver Privilege Escalation

CVE-2024-21445 is a privilege escalation vulnerability in Windows 10 21H2 USB Print Driver that allows attackers to gain elevated system privileges. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-21445 Overview

CVE-2024-21445 is an elevation of privilege vulnerability in the Windows USB Print Driver. A local, authenticated attacker can exploit the flaw to gain SYSTEM-level privileges on affected Windows 10, Windows 11, and Windows Server 2022 hosts. Microsoft classifies the issue as high severity and attributes it to a double free [CWE-415] and a concurrent execution race condition [CWE-362] in the USB print driver. Successful exploitation yields high impact to confidentiality, integrity, and availability of the host. Attack complexity is high because the attacker must win a timing-dependent race within the driver.

Critical Impact

Local authenticated attackers who win a race condition in the Windows USB Print Driver can elevate privileges to SYSTEM and fully compromise the host.

Affected Products

  • Microsoft Windows 10 (21H2, 22H2)
  • Microsoft Windows 11 (21H2, 22H2, 23H2)
  • Microsoft Windows Server 2022 and Windows Server 2022 23H2

Discovery Timeline

  • 2024-03-12 - CVE-2024-21445 published to NVD by Microsoft
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-21445

Vulnerability Analysis

The vulnerability resides in the Windows USB Print Driver, a kernel-mode component that services printer traffic over USB. Microsoft attributes the flaw to two weaknesses working in combination: a double free [CWE-415] and a race condition [CWE-362]. An attacker running code locally with low privileges can trigger concurrent operations in the driver that free the same memory object twice. Winning the race corrupts kernel memory structures and enables arbitrary code execution in the kernel. From that position, the attacker runs code as NT AUTHORITY\SYSTEM. The attack requires local access and does not require user interaction, but the required timing precision makes reliable exploitation harder than a straightforward memory corruption bug.

Root Cause

The root cause is improper synchronization around object lifetime management inside the USB print driver. When two threads operate on the same driver object concurrently, both code paths can reach the free routine for a shared allocation. The resulting double free leaves a dangling kernel pointer that attackers can reclaim with controlled data.

Attack Vector

Exploitation is local. An authenticated user, or malware executing in a standard user context, interacts with the USB print driver interface and schedules competing operations to trigger the race window. No remote network vector exists, and no user interaction from a separate victim is needed. Successful exploitation is a classic second-stage primitive used after initial access to achieve privilege escalation and establish persistence.

No public proof-of-concept code is referenced in the enriched data for CVE-2024-21445. Review the Microsoft Security Update Guide for authoritative technical details.

Detection Methods for CVE-2024-21445

Indicators of Compromise

  • Unexpected kernel crashes or bugchecks referencing the USB print driver stack, which may indicate failed exploitation attempts.
  • Standard user processes spawning child processes under the SYSTEM account on hosts that have not been patched.
  • Loading or interacting with USB print class drivers from processes that do not legitimately handle printing.

Detection Strategies

  • Monitor for process token elevations where a non-privileged parent process produces a SYSTEM-level child.
  • Alert on kernel-mode crashes tagged to USB print components and correlate them with the acting user session.
  • Baseline normal use of print driver IOCTLs and flag outlier processes that issue high-frequency or concurrent requests.

Monitoring Recommendations

  • Collect Windows kernel crash telemetry (WER, minidumps) into a central data lake for retrospective hunting.
  • Enable Microsoft-Windows-PrintService operational and admin event channels and forward them to the SIEM.
  • Track installation of unsigned or unexpected USB print drivers using Code Integrity events (Event ID 3077 and related).

How to Mitigate CVE-2024-21445

Immediate Actions Required

  • Apply the March 2024 Microsoft security update that addresses CVE-2024-21445 to all affected Windows 10, Windows 11, and Windows Server 2022 systems.
  • Prioritize patching on multi-user systems, shared workstations, and jump hosts where local privilege escalation has the largest blast radius.
  • Audit which systems have the USB print driver loaded and confirm patch state through configuration management tooling.

Patch Information

Microsoft released a security update that remediates the double free and race condition in the Windows USB Print Driver. Patch guidance and KB mappings per Windows build are available in the Microsoft Security Update Guide for CVE-2024-21445.

Workarounds

  • Restrict local logon rights and limit the number of standard users on sensitive hosts to reduce the pool of potential attackers.
  • Disable or block installation of USB print devices via Group Policy on servers and endpoints that do not require USB printing.
  • Enforce Windows Defender Application Control or AppLocker to prevent execution of untrusted binaries that could trigger the race.
bash
# Example: block installation of USB printer device setup classes via Group Policy
# Computer Configuration > Administrative Templates > System > Device Installation
# > Device Installation Restrictions > Prevent installation of devices using drivers
# that match these device setup classes
#
# USB Printer device setup class GUID:
# {4d36e979-e325-11ce-bfc1-08002be10318}  (Printers)
#
# PowerShell check for pending Windows Updates addressing CVE-2024-21445:
Get-HotFix | Sort-Object -Property InstalledOn -Descending | Select-Object -First 20

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.