Executive Summary

Heap-based buffer overflow in Kernel Streaming WOW Thunk Service Driver allows an authorized attacker to elevate privileges locally.

Overview

7.8
CVSS HIGH
Important
MS Severity
Not Exploited
MS Exploit Status
Less Likely
MS Exploit Likelihood
Category Elevation of Privilege
Released Aug 12 2025
Last Updated Aug 12 2025
Publicly Disclosed No
CISA KEV Not Listed
Known Exploits None Known
EPSS Score 0.00703 — 0.50125 percentile
NVD CVSS 7.8 HIGH — matches MSRC

Verified Attribution

Report-backed
Verified binaryksthunk.sys
FunctionCKSAutomationThunk::HandleArrayProperty
WeaknessCWE-122
SourceCrowdfense
NoteKernel Streaming WOW thunk: getter for KSPROPERTY_VPCONFIG_DDRAWSURFACEHANDLE doesn't check OutputBufferLength vs BytesReturned -> non-paged heap overflow. Patch adds length check.

Binary/function confirmed from a public vendor or researcher report; this pin overrides the keyword heuristic.

CVSS Vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
ATTACK VECTOR
Local
ATTACK COMPLEXITY
Low
PRIVILEGES REQUIRED
Low
USER INTERACTION
None
SCOPE
Unchanged
CONFIDENTIALITY
High
INTEGRITY
High
AVAILABILITY
High
EXPLOIT CODE MATURITY
Unproven
REMEDIATION LEVEL
Official Fix
REPORT CONFIDENCE
Confirmed
Temporal Score: 6.8

EPSS Score

0.00703
probability of exploitation in the next 30 days
0.50125 percentile - updated 2026-08-14
View on FIRST.org

Affected Products

25 affected products
Product KB Article Severity Impact Restart Required
Windows 10 for 32-bit Systems 5063889 (SecurityUpdate) Important Elevation of Privilege Yes
Windows 10 for x64-based Systems 5063889 (SecurityUpdate) Important Elevation of Privilege Yes
Windows 10 Version 1607 for 32-bit Systems 5063871 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 1607 for x64-based Systems 5063871 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 1809 for 32-bit Systems 5063877 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 1809 for x64-based Systems 5063877 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 21H2 for 32-bit Systems 5063709 (SecurityUpdate) Important Elevation of Privilege Yes
Windows 10 Version 21H2 for ARM64-based Systems 5063709 (SecurityUpdate) Important Elevation of Privilege Yes
Windows 10 Version 21H2 for x64-based Systems 5063709 (SecurityUpdate) Important Elevation of Privilege Yes
Windows 10 Version 22H2 for 32-bit Systems 5063709 (SecurityUpdate) Important Elevation of Privilege Yes
Windows 10 Version 22H2 for ARM64-based Systems 5063709 (SecurityUpdate) Important Elevation of Privilege Yes
Windows 10 Version 22H2 for x64-based Systems 5063709 (SecurityUpdate) Important Elevation of Privilege Yes
Windows 11 Version 22H2 for ARM64-based Systems 5063875 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 22H2 for x64-based Systems 5063875 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 23H2 for ARM64-based Systems 5063875 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 23H2 for x64-based Systems 5063875 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 24H2 for ARM64-based Systems 5063878 (Security Update) 5064010 (SecurityHotpatchUpdate) Important Elevation of Privilege 5062553 Base: 7.8 Temporal: 6.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 10.0.26100.4946 10.0.26100.4851 Yes None Windows 11 Version 24H2 for x64-based Systems 5063878 (Security Update) 5064010 (SecurityHotpatchUpdate) Important Elevation of Privilege 5062553 Base: 7.8 Temporal: 6.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 10.0.26100.4946 10.0.26100.4851 Yes None Windows Server 2008 for 32-bit Systems Service Pack 2 5063888 (MonthlyRollup) 5063948 (SecurityOnly) Important Elevation of Privilege 5062624 Base: 7.8 Temporal: 6.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.0.6003.23471 Yes None Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation) 5063888 (MonthlyRollup) 5063948 (SecurityOnly) Important Elevation of Privilege 5062624 Base: 7.8 Temporal: 6.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.0.6003.23471 Yes None Windows Server 2008 for x64-based Systems Service Pack 2 5063888 (MonthlyRollup) 5063948 (SecurityOnly) Important Elevation of Privilege 5062624 Base: 7.8 Temporal: 6.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.0.6003.23471 Yes None Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation) 5063888 (MonthlyRollup) 5063948 (SecurityOnly) Important Elevation of Privilege 5062624 Base: 7.8 Temporal: 6.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.0.6003.23471 Yes None Windows Server 2008 R2 for x64-based Systems Service Pack 1 5063947 (MonthlyRollup) 5063927 (SecurityOnly) Important Elevation of Privilege 5062632 Base: 7.8 Temporal: 6.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.1.7601.27872 Yes None Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation) 5063947 (MonthlyRollup) 5063927 (SecurityOnly) Important Elevation of Privilege 5062632 Base: 7.8 Temporal: 6.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.1.7601.27872 Yes None Windows Server 2012 5063906 (MonthlyRollup) Important Elevation of Privilege Yes
Windows Server 2012 (Server Core installation) 5063906 (MonthlyRollup) Important Elevation of Privilege Yes
Windows Server 2012 R2 5063950 (MonthlyRollup) Important Elevation of Privilege Yes
Windows Server 2012 R2 (Server Core installation) 5063950 (MonthlyRollup) Important Elevation of Privilege Yes
Windows Server 2016 5063871 (Security Update) Important Elevation of Privilege Yes
Windows Server 2016 (Server Core installation) 5063871 (Security Update) Important Elevation of Privilege Yes
Windows Server 2019 5063877 (Security Update) Important Elevation of Privilege Yes
Windows Server 2019 (Server Core installation) 5063877 (Security Update) Important Elevation of Privilege Yes
Windows Server 2022 5063880 (SecurityUpdate) 5063812 (SecurityHotpatchUpdate) Important Elevation of Privilege 5062572 Base: 7.8 Temporal: 6.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 10.0.20348.4052 10.0.20348.3989 Yes None Windows Server 2022 (Server Core installation) 5063880 (SecurityUpdate) 5063812 (SecurityHotpatchUpdate) Important Elevation of Privilege 5062572 Base: 7.8 Temporal: 6.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 10.0.20348.4052 10.0.20348.3989 Yes None Windows Server 2022, 23H2 Edition (Server Core installation) 5063899 (SecurityUpdate) Important Elevation of Privilege Yes

Patches

8 patches
Article Type Restart
5063889 SecurityUpdate Yes
5063871 Security Update Yes
5063877 Security Update Yes
5063709 SecurityUpdate Yes
5063875 Security Update Yes
5063906 MonthlyRollup Yes
5063950 MonthlyRollup Yes
5063899 SecurityUpdate Yes

Patch Diff

ghidriff · ksthunk.sys (KB5063878)

Non-paged-pool heap overflow (CWE-122) in the Kernel Streaming WOW Thunk driver ksthunk.sys, reachable from a 32-bit (WOW64) user process via IOCTL_KS_PROPERTY. CKSThunkDevice::DispatchIoctl -> CKSAutomationThunk::ThunkPropertyIrp dispatches KS property sets (KSPROPSETID_VPConfig/VPVBIConfig); the KSPROPERTY_VPCONFIG_DDRAWSURFACEHANDLE (0xE) handler CKSAutomationThunk::HandleArrayProperty is vulnerable. In the getter path it queries the device for the element count (KsSynchronousIoControlDevice), allocates, reads the array, then copies it into SystemOutputBuffer - but OutputBufferLength is only checked against 0, not against BytesReturned/count*element_size, so a device returning more than the output buffer holds overflows the non-paged allocation. IN-HOUSE ghidriff of ksthunk.sys 10.0.26100.4768 -> .4946 (Aug 12 2025) confirms the fix: HandleArrayProperty adds a check that count*4 <= OutputBufferLength (lVar5+8) before the copy and diverts to RtlLogUnexpectedCodepath when it doesn't fit - gated behind CFR flag Feature_4034713912. Credit: aleksandr.k & voidsec (Crowdfense).

Pre-patch version 10.0.26100.4768 Download
Post-patch version 10.0.26100.4946 Download
Function Address Change Note
CKSAutomationThunk::HandleArrayProperty code change code (output-length check added, CFR-gated) Pre: getter copies the device array into SystemOutputBuffer checking OutputBufferLength only != 0. Post (Feature_4034713912): computes count*4 and requires it <= OutputBufferLength (*(uint*)(lVar5+8)); if the buffer is too small it calls RtlLogUnexpectedCodepath and does not copy. Gains a call to NTOSKRNL.EXE::RtlLogUnexpectedCodepath vs pre.
Feature_4034713912 new flag added (CFR gate) New Controlled Feature Rollout flag introduced by this patch; gates the OutputBufferLength validation in HandleArrayProperty. Both branches ship in .4946.
View full diff report View RCA report

Root Cause Analysis

CVE-2025-53149 — Windows Kernel Streaming WOW Thunk ksthunk.sys Heap Overflow in CKSAutomationThunk::HandleArrayProperty


Summary

Product Microsoft Windows — ksthunk.sys (Kernel Streaming WOW Thunk Service Driver)
CVE ID CVE-2025-53149
Impact Elevation of Privilege
MSRC severity Important
CWE CWE-122: Heap-based Buffer Overflow (non-paged pool)
Patch Date August 12, 2025
Pre-patch binary ksthunk.sys 10.0.26100.4768 (Jul 2025) — SHA256 31248ae43f53ffb1446ec95a078f9e56e14ccc556654fcb72c93dc3cb7406088
Post-patch binary ksthunk.sys 10.0.26100.4946 (Aug 12 2025 fix) — SHA256 d7eba221b250de0c08bb829212261ddc3126588e931ea2e226d97d13f37f930e
Feature flag Feature_4034713912 — the fix is CFR-gated

Product Description

ksthunk.sys — the Kernel Streaming WOW Thunk Service — is the 64-bit kernel driver that translates Kernel Streaming (KS) requests between 32-bit (WOW64) user-mode applications and 64-bit kernel media drivers. Its IOCTL path CKSThunkDevice::DispatchIoctl routes IOCTL_KS_PROPERTY from a WOW64 caller through CKSAutomationThunk::ThunkPropertyIrp, which dispatches KS property sets including KSPROPSETID_VPConfig / KSPROPSETID_VPVBIConfig. The KSPROPERTY_VPCONFIG_DDRAWSURFACEHANDLE item (index 0xE) is handled by CKSAutomationThunk::HandleArrayProperty. Any 32-bit process can drive this path, so a bug here is a local elevation-of-privilege primitive.


Vulnerability Summary

HandleArrayProperty receives kernel copies of the input/output buffers (allocated non-paged by ks!KspPropertyHandler). In the getter path it asks the device how many bytes to return (first KsSynchronousIoControlDevice), allocates, reads the array (second call), then copies the array into SystemOutputBuffer — but OutputBufferLength was only checked against 0, not against the number of bytes actually returned:

// CKSAutomationThunk::HandleArrayProperty (getter) — PRE-PATCH (per Crowdfense)
KsSynchronousIoControlDevice(..., &BytesReturned);   // device says how many bytes
... allocate, second call reads the array ...
if (OutputBufferLength != 0) {
    for (i = 0; i < count; i++)                       // copies count*elem bytes
        SystemOutputBuffer[i] = array[i];             // *** OutputBufferLength not vs BytesReturned ***
}

When the device returns more elements than fit in OutputBufferLength, the copy loop writes past the non-paged output allocation — a controlled non-paged-pool heap overflow.


Prerequisites and Constraints

  • Local session running a 32-bit (WOW64) process able to DeviceIoControl a KS device with IOCTL_KS_PROPERTY.
  • The target must expose a device with the KSPROPSETID_VPConfig / KSPROPSETID_VPVBIConfig property set carrying the KSPROPERTY_VPCONFIG_DDRAWSURFACEHANDLE item (legacy video-port); Crowdfense could reach the function but not complete the copy without such a device.
  • Overflow is in non-paged pool; the copied bytes come from the device array, so exploitability depends on the present device.

Vulnerability Details

Call Chain

32-bit (WOW64) user process:
  DeviceIoControl(hDevice, IOCTL_KS_PROPERTY, KSPROPERTY{Set=VPConfig, Id=DDRAWSURFACEHANDLE, Flags=GET})
        ↓
ksthunk.sys:
  CKSThunkDevice::DispatchIoctl  (usermode && wow64)
    → CKSAutomationThunk::ThunkPropertyIrp
      → CKSAutomationThunk::HandleArrayProperty   [*** non-paged pool overflow (getter) ***]

Root Cause

The getter trusts the device-returned element count for the copy but validates OutputBufferLength only against zero — never against the BytesReturned / count * element_size it is about to write. A device that returns more than the caller’s output buffer holds overflows the allocation.

The patch (confirmed — diff, .4768 → .4946)

Gated behind Feature_4034713912, the getter now validates the required size against OutputBufferLength before the copy and diverts to RtlLogUnexpectedCodepath when it does not fit:

// CKSAutomationThunk::HandleArrayProperty (10.0.26100.4946) — PATCHED
// uVar9 = element count; lVar5+8 = OutputBufferLength
if ((uint)*puVar3 <= uVar9) {
    uVar8 = (ulonglong)uVar9 << 2;                    // count * 4 bytes
    if ((uVar8 < 0x100000000) && ((uint)uVar8 <= *(uint *)(lVar5 + 8)))  // <= OutputBufferLength
        goto LAB_0;                                    // fits -> proceed
}
RtlLogUnexpectedCodepath(&local_50);                   // *** too small -> bail, no copy ***

count * 4 (the bytes to be written) must be <= OutputBufferLength; otherwise the routine logs the unexpected code path and does not copy — eliminating the overflow.

Patch Completeness Assessment

The fix is CFR-gated behind Feature_4034713912. The bounds check runs only when the flag is enabled; disabled, the patched binary retains the original unchecked copy. Patch state is not determined by file version alone — the same runtime-gated pattern seen across this corpus.


Detection Guidance

Crash signature. Non-paged-pool corruption bugchecks in ksthunk!CKSAutomationThunk::HandleArrayProperty, from WOW64 processes issuing IOCTL_KS_PROPERTY with KSPROPSETID_VPConfig/VPVBIConfig. Special Pool on ksthunk.sys makes the overrun observable.

Behavioural. 32-bit processes driving KS video-port property GETs on devices exposing KSPROPERTY_VPCONFIG_DDRAWSURFACEHANDLE — an uncommon legacy path.

Config. The fix is CFR-gated: confirm Feature_4034713912 is enabled to verify the corrected path is live.


References

  • Crowdfense — Heap-based buffer overflow in Kernel Streaming WOW Thunk Service Driver – CVE-2025-53149 (aleksandr.k, voidsec).
  • MSRC advisory — CVE-2025-53149
  • Full binary diff: /data/patch_diffs/ksthunk_sys-cve-2025-53149-ghidriff.md

Attack Path

A KS video-port array GET copies more device bytes than the output buffer holds, overflowing non-paged pool

Attack path for CVE-2025-53149 A KS video-port array GET copies more device bytes than the output buffer holds, overflowing non-paged pool 01 — ENTRY 32-bit (WOW64) user process issues IOCTL_KS_PROPERTY to a KS device ksthunk.sys thunks KS requests from 32-bit apps to 64-bit media drivers. CKSThunkDevice::DispatchIoctl routes usermode+wow64 property IRPs to CKSAutomationThunk::ThunkPropertyIrp. 02 — CONTROLLED INPUT Requests KSPROPSETID_VPConfig / DDRAWSURFACEHANDLE with a small output buffer (GET) The KSPROPERTY_VPCONFIG_DDRAWSURFACEHANDLE (index 0xE) item is handled by CKSAutomationThunk::HandleArrayProperty; the caller controls OutputBufferLength. 03 — PATH HandleArrayProperty asks the device for the array, allocates, and copies it into SystemOutputBuffer A first KsSynchronousIoControlDevice returns the element count/BytesReturned; a second reads the array; then the array is copied into the non-paged SystemOutputBuffer. 04 — MISSING CHECK OutputBufferLength is checked only against 0, not against the returned size The copy loop writes count*element_size bytes without verifying that fits OutputBufferLength, so a device returning more elements than the buffer holds overruns the allocation. 05 — PRIMITIVE Non-paged pool heap overflow -> elevation of privilege The copy overflows the non-paged output allocation with device-sourced bytes; groomed pool yields controlled kernel corruption. The Aug 2025 fix requires count*4 <= OutputBufferLength before copying (else RtlLogUnexpectedCodepath), gated behind CFR flag Feature_4034713912.

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

Detection Rules

Acknowledgments