← Lab /Security & privacy

Cloud Files Minifilter race condition enables arbitrary file creation and privilege escalation

A TOCTOU race in HsmpOpCreatePlaceholders lets a low-privileged user create files anywhere on the system and achieve privilege escalation.

Security & privacy Exodus Intelligence 20 Oct 2025 Disclosure Prototype evidence

Published as “Microsoft Windows Cloud Files Minifilter TOCTOU Privilege Escalation”

Why it matters

The flaw lets attackers bypass Cloud Files restrictions and gain SYSTEM privileges via DLL side-loading.

Summary

The researchers discovered a time-of-check-to-time-of-use race in the Windows Cloud Files minifilter driver (cldflt.sys) where the filename is validated before being mapped into kernel space. Because the user-supplied buffer is mapped directly, an attacker can modify the relName after validation but before FltCreateFileEx2 is called, allowing arbitrary file creation. They built a multi-threaded proof-of-concept that races the rename to bypass validation and uses a junction to System32 for DLL side-loading, achieving SYSTEM privileges. The vulnerability (CVE-2025-55680) was patched in October 2025.

What they found 1

  1. A time window exists between filename validation and FltCreateFileEx2 where the relName can be altered, enabling arbitrary file creation.

    “Since mmapped_userspace_region is a mapped memory from a userspace buffer then it is possible that the user changes the file name stored in the mmapped_userspace_region.relName just before the FltCreateFileEx2() execution”

Caveats 3

  • The exploit requires precise timing and a multi-threaded race, making it non-trivial to trigger in the wild.
  • The vulnerability can be exploited by running multiple threads in parallel where one of them is responsible for monitoring if the file is created, while some others are running an endless loop to create a placeholder operation and the rest of the threads are changing bytes in the userspace buffer sent in the create placeholder operation (i.e. relName).
  • The exploit must register a directory as sync root directory, which can be done by invoking the CfRegisterSyncRoot() API. Then it must create a new directory, e.g. JUSTASTRING, in the sync root directory making it a junction to a not-writable directory such as C:WindowsSystem32.

What’s new here 4

  • Identified a TOCTOU race in the HsmpOpCreatePlaceholders function of cldflt.sys.
  • Demonstrated arbitrary file creation by altering the placeholder relName after validation.
  • Developed a multi-threaded exploit that achieves DLL side-loading privilege escalation.
  • Assigned CVE-2025-55680 and confirmed patch release.