CVE-2026-32223 — Windows USB Printing Stack (usbprint.sys) Elevation of Privilege Vulnerability
Executive Summary
Heap-based buffer overflow in Windows USB Print Driver allows an unauthorized attacker to elevate privileges with a physical attack.
Overview
CVSS Vector
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
EPSS Score
Affected Products
| Product | KB Article | Severity | Impact | Restart Required |
|---|---|---|---|---|
| Windows 11 Version 24H2 for ARM64-based Systems | 5083769 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 Version 24H2 for x64-based Systems | 5083769 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 Version 25H2 for ARM64-based Systems | 5083769 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 Version 25H2 for x64-based Systems | 5083769 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 Version 26H1 for ARM64-based Systems | 5083768 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 version 26H1 for x64-based Systems | 5083768 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows Server 2025 | 5082063 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows Server 2025 (Server Core installation) | 5082063 (Security Update) |
Important | Elevation of Privilege | Yes |
Patches
| Article | Type | Restart |
|---|---|---|
5083769 |
Security Update | Yes |
5083768 |
Security Update | Yes |
5082063 |
Security Update | Yes |
Patch Diff
Heap buffer overflow in Windows USB printer driver (usbprint.sys). When processing IOCTL 0x220064, Make1284IdStringFromUsbStrings concatenates MFG and MDL USB string descriptors into a buffer whose size is determined by OutputBufferLength. The copy size can exceed the destination buffer, causing a controlled heap overflow in NonPagedPoolNx.
| Function | Address | Change | Note |
|---|---|---|---|
USBPRINT_ProcessIOCTL |
|
modified | Added validation of OutputBufferLength before processing IOCTL 0x220064 |
Make1284IdStringFromUsbStrings |
|
modified | Added bounds check to ensure MFG+MDL concatenation does not exceed destination buffer |
Root Cause Analysis
CVE-2026-32223 — Windows USB Printer Driver usbprint.sys Heap Buffer Overflow
Summary
| Product | Microsoft Windows — usbprint.sys (USB Printer Driver) |
|---|---|
| Vendor | Microsoft Corporation |
| Severity | CVSS v3.1 7.8 (High) |
| CVE Title | Windows USB Printer Driver Elevation of Privilege Vulnerability |
| CWE | CWE-122 (Heap-based Buffer Overflow) |
| Affected Versions | Windows 10/11 with USB printer support |
| Impact | Local EoP — low-privilege user with USB access → SYSTEM |
| Exploited ITW | No |
| Patch Date | 2026 (exact KB pending) |
Root Cause
Windows USB printer driver (usbprint.sys) processes IOCTL 0x220064 which
requests a 1284-compatible ID string from the printer’s USB string descriptors.
The function Make1284IdStringFromUsbStrings constructs this string by
concatenating the MFG (manufacturer) and MDL (model) USB string
descriptors:
// Simplified vulnerable path
MFG_len = strlen(MFG_string);
MDL_len = strlen(MDL_string);
copy_size = MFG_len + MDL_len + 11; // 11 bytes for "MFG:" + "MDL:" + separators
RtlStringCbPrintfA(dest_buffer, OutputBufferLength, "MFG:%s;MDL:%s;", MFG, MDL);
The destination buffer size is OutputBufferLength from the IOCTL request.
However, copy_size (the actual bytes written) can exceed
OutputBufferLength when MFG + MDL strings are long. The RtlStringCbPrintfA
call truncates based on OutputBufferLength, but subsequent operations or
intermediate copies may not be properly bounded — leading to a heap buffer
overflow.
The ENKI writeup describes exploitation using named-pipe pool feng shui to
corrupt POOL_HEADER and create a ghost chunk for arbitrary read/write in
NonPagedPoolNx.
The patch (verified in ghidriff diff — usbprint.sys 10.0.26100.7920 → 10.0.26100.8246)
- Modified:
Make1284IdStringFromUsbStrings(91 % match) — string construction path is now gated behind a feature flag. - Added:
Feature_64687419__private_IsEnabledDeviceUsageNoInlineFeature_64687419__private_IsEnabledFallback
- When
Feature_64687419is enabled,Make1284IdStringFromUsbStringsvalidates MFG / MDL string lengths against the output buffer size before callingRtlStringCbPrintfA. If the combined string would exceed the buffer, the function fails safely instead of truncating or overflowing.
Reaching the bug — local attack
Requires physical USB access or USB redirection (RDP/VM):
Attacker-controlled USB device (or virtual USB via RDP redirection)
│
▼
USB descriptors: MFG = "A"×N, MDL = "B"×N (long strings)
│
▼
Windows enumerates printer → loads usbprint.sys
│
▼
user process opens \\?\\USB#VID_...&PID_...\\...
│
▼
DeviceIoControl(IOCTL 0x220064, OutputBufferLength = small)
│
▼
usbprint!USBPRINT_ProcessIOCTL
│
▼
usbprint!Make1284IdStringFromUsbStrings
│ MFG_len + MDL_len + 11 > OutputBufferLength
▼
heap overflow in NonPagedPoolNx
| Element | Value |
|---|---|
| Device path | \Device\USBPDO-... (printer interface) |
| IOCTL | 0x220064 |
| Vulnerable functions | usbprint!USBPRINT_ProcessIOCTL, usbprint!Make1284IdStringFromUsbStrings |
| Allocation | NonPagedPoolNx (via USB driver stack) |
| Privileges | Physical USB access or USB redirection; no software privilege needed |
| Prerequisites | USB printer device (real or emulated) connected to target |
Detection engineering
- USB device control: Restrict USB printer devices via Device Guard / CSP policies in high-security environments.
- ETW:
Microsoft-Windows-USB-USBPORTandMicrosoft-Windows-USB-USBHUBproviders may log abnormal USB descriptor lengths. - Crash forensics: Heap corruption bugcheck in
usbprint!Make1284IdStringFromUsbStringswith long MFG/MDL strings in the USB descriptor cache. - Behavioral tell: Non-printer software opening USB printer devices and
issuing IOCTL
0x220064is anomalous.
References
Attack Path
Heap overflow from concatenating USB device strings into a buffer sized by the caller's output length
Derived from the patch delta: the checks added by the vendor identify which fields crossed a trust boundary unvalidated. Reachability and privilege are taken from the call chain in the RCA report.
Exploits & PoC
1 public PoCUnverified third-party code
Public proof-of-concept repositories aggregated from PoC-in-GitHub. They are not reviewed and may be incomplete, non-functional, or malicious — inspect the code before running anything.
| Repository | Stars | Published | Description |
|---|---|---|---|
| enki-kr/CVE-2026-32223-USBPrint-Exploit | 21 | 2026-04-15 | Proof-of-Concept exploit for CVE-2026-32223 |
Detection Rules
Acknowledgments
Jongseong Kim (nevul37) working with ENKI Whitehat
hao huang
Thanatos Tian & @2st__ with Diffract & Zhiniang Peng with HUST
Dongjun Kim (smiljun), working with ENKI WhiteHat
Donghyeon Oh
Jonghoi Kim