CVE-2024-38215 — Windows Cloud Files Mini Filter Driver Elevation of Privilege Vulnerability
Executive Summary
None
Overview
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
EPSS Score
Affected Products
| Product | KB Article | Severity | Impact | Restart Required |
|---|---|---|---|---|
| Windows 10 Version 1809 for 32-bit Systems | 5041578 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 1809 for x64-based Systems | 5041578 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 21H2 for 32-bit Systems | 5041580 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 21H2 for ARM64-based Systems | 5041580 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 21H2 for x64-based Systems | 5041580 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 22H2 for 32-bit Systems | 5041580 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 22H2 for ARM64-based Systems | 5041580 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 22H2 for x64-based Systems | 5041580 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 version 21H2 for ARM64-based Systems | 5041592 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 version 21H2 for x64-based Systems | 5041592 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 Version 22H2 for ARM64-based Systems | 5041585 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 Version 22H2 for x64-based Systems | 5041585 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 Version 23H2 for ARM64-based Systems | 5041585 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 Version 23H2 for x64-based Systems | 5041585 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 Version 24H2 for ARM64-based Systems | 5041571 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 Version 24H2 for x64-based Systems | 5041571 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows Server 2019 | 5041578 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows Server 2019 (Server Core installation) | 5041578 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows Server 2022 | 5041160 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows Server 2022 (Server Core installation) | 5041160 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows Server 2022, 23H2 Edition (Server Core installation) | 5041573 (Security Update) |
Important | Elevation of Privilege | Yes |
Patches
| Article | Type | Restart |
|---|---|---|
5041578 |
Security Update | Yes |
5041580 |
Security Update | Yes |
5041592 |
Security Update | Yes |
5041585 |
Security Update | Yes |
5041571 |
Security Update | Yes |
5041160 |
Security Update | Yes |
5041573 |
Security Update | Yes |
Patch Diff
Integer overflow (CWE-190) in the Windows Cloud Files minifilter cldflt.sys hydration-restart / placeholder-create path, local EoP to SYSTEM. cldflt.sys processes messages from the user-mode Cloud Files provider over its communication port; CldiPortProcessRestartHydration parses offset/count fields out of the provider message, and HsmpOpCreatePlaceholders builds placeholder buffers from user input. PRE: the offset/count fields were used to size/index buffers without overflow checks, so a crafted message could wrap an offset+count computation (integer overflow) and drive out-of-bounds access in the kernel minifilter. Diff of cldflt.sys 10.0.26100.1301 -> .1455 (Aug 13 2024, KB5041571) confirms the fix: gated behind CFR flags Feature_2175866168 / Feature_1314816318, CldiPortProcessRestartHydration adds bounds and wrap-detection checks on the message offset/count fields (e.g. requiring count offsets to be >= header size + entry_count*8+0x10, and detecting sum wraps via 'uVar1 = base + count; if (uVar1 < count) reject', plus 'uVar2 < uVar1' upper bounds), and HsmpOpCreatePlaceholders is hardened (IoAllocateMdl + ProbeForRead around the user buffer, bounded ExAllocatePool2) so the overflow can no longer occur.
| Function | Address | Change | Note |
|---|---|---|---|
CldiPortProcessRestartHydration |
code change |
code (offset/count overflow + bounds checks added, CFR-gated) | Post (Feature_2175866168): validates the provider-message offset/count fields - lower bounds (>= entry_count*8+0x10), sum-wrap detection (base+count < count -> reject) and upper bounds (total <= buffer) before use. |
HsmpOpCreatePlaceholders |
code change |
code (user-buffer probing/bounded alloc) | Post: IoAllocateMdl(param_4,param_5) + ProbeForRead(param_4,param_5) around the user buffer and bounded ExAllocatePool2(0x4000) - hardening the placeholder-creation input handling. |
HsmFltProcessConvertPlaceholder / HsmFltProcessUpdatePlaceholder / CldiPortProcessAckNotification |
code change |
code (related placeholder/port paths updated) | Updated alongside under the same gate. |
Feature_2175866168 / Feature_1314816318 |
gate |
added (CFR gate) | CFR flags gating the overflow/bounds validation; the original unchecked path still ships when disabled. |
Root Cause Analysis
CVE-2024-38215 — Windows Cloud Files Mini Filter cldflt.sys Integer Overflow in the Hydration-Restart / Placeholder-Create Path
Summary
| Product | Windows — cldflt.sys (Cloud Files Mini Filter Driver; on-demand files) |
| CVE ID | CVE-2024-38215 |
| Impact | Elevation of Privilege (to SYSTEM) |
| MSRC severity | Important |
| CVSS | 7.8 / 6.8 — 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 |
| CWE | CWE-190: Integer Overflow or Wraparound |
| Delivery | Local — a crafted Cloud Files provider port message |
| KB / Fixed build | KB5041571 — cldflt.sys 10.0.26100.1455 (Win11 24H2 x64) |
| Patch Date | August 13, 2024 (2024-Aug) |
| Pre-patch binary | cldflt.sys 10.0.26100.1301 — SHA256 828bf27aff3ea99b6ece4afe1bbbe5ee65c324e203ab1dcc301cb7c5dd6f5313 |
| Post-patch binary | cldflt.sys 10.0.26100.1455 — SHA256 26457170162d32f5e1d752af1b80bae05dd0137a4154e09d2b8311e7afda4641 |
| Feature flag | Feature_2175866168 / Feature_1314816318 — CFR-gated |
| Exploitability | Exploitation Less Likely; not publicly disclosed; not exploited (per MSRC) |
Sourcing note: the OS fixed build is
.1457; thecldflt.sysbinary shipped in KB5041571 is versioned.1455(driver version trails the OS build). Pre =.1301.
Product Description
cldflt.sys is the Cloud Files Mini Filter (kernel side of OneDrive / cloud
on-demand files). It exchanges messages with the user-mode Cloud Files provider over
its communication port. CldiPortProcessRestartHydration parses offset/count fields
from a provider message (to resume file hydration), and HsmpOpCreatePlaceholders
builds placeholder buffers from user-supplied input.
Vulnerability Summary
Pre-patch, the offset/count fields carried in the provider message were used to size
and index kernel buffers without overflow checks. A crafted message could set an
offset+count so their sum wraps (integer overflow, CWE-190), producing an
under-sized or mis-indexed access when the driver processed the hydration-restart or
placeholder-creation request. Because cldflt runs in the kernel and the port is
reachable by a local user, the resulting out-of-bounds access is a local
elevation-of-privilege primitive to SYSTEM (per the MSRC FAQ).
Prerequisites and Constraints
- Local, low-privileged (
PR:L,AV:L,AC:L): send a crafted message to the Cloud Files communication port (or drive the provider path). - Set offset/count fields so
offset + countwraps orcountexceeds the buffer. - Result: an integer overflow drives OOB access in the kernel minifilter.
Vulnerability Details
Root Cause
Message-supplied offset/count values were used in size/index arithmetic without validating for wraparound or against the buffer bounds.
The patch (confirmed — diff, .1301 → .1455)
Gated behind Feature_2175866168 / Feature_1314816318,
CldiPortProcessRestartHydration adds lower-bound, wrap-detection and upper-bound
checks on the message offset/count fields, and HsmpOpCreatePlaceholders probes the
user buffer and uses a bounded allocation:
// CldiPortProcessRestartHydration (10.0.26100.1455) — PATCHED (from our diff)
// require offset fields >= header + entry_count*8 + 0x10, and detect wraps:
if ( count != 0 &&
(count < (uint)entry_count * 8 + 0x10 || total < count) ) reject;
uVar1 = base + count;
if ( uVar1 < count || total < uVar1 ) reject; // *** wrap + upper bound ***
// HsmpOpCreatePlaceholders (10.0.26100.1455) — PATCHED:
mdl = IoAllocateMdl(userBuf, userLen, 0, 0);
ProbeForRead(userBuf, userLen); // validate the user buffer
p = ExAllocatePool2(0x100, 0x4000, 'RsHt'); // bounded allocation
With wrap-detection (base + count < count) and upper-bound checks on the
message-supplied offsets (and probing of the user buffer), the overflow can no longer
occur.
Patch Completeness Assessment
CFR-gated behind Feature_2175866168 / Feature_1314816318. The checks run only
when the flags are enabled; the original unchecked path still ships when disabled.
Verify the flags are enabled to confirm the fix is live.
Detection Guidance
Behavioural. Cloud Files provider port messages with offset/count fields near
UINT boundaries; OOB / pool-corruption bugchecks in
cldflt!CldiPortProcessRestartHydration / HsmpOpCreatePlaceholders on
unpatched/flag-disabled builds.
Config. The fix is CFR-gated — confirm Feature_2175866168 /
Feature_1314816318 are enabled.
References
- MSRC advisory — CVE-2024-38215 (Windows Cloud Files Mini Filter Driver Elevation of Privilege), released 2024-08-13, KB5041571.
- Full binary diff:
/data/patch_diffs/cldflt_sys-cve-2024-38215-ghidriff.md
Attack Path
A crafted Cloud Files provider message wraps an offset+count computation, driving OOB access
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
Ezrakiez with MatrixCup