Microsoft Windows Cloud Files Mini Filter Driver CldiStreamPrepareRequestForMoreProcessing Type Confusion vulnerability
A race condition in the Windows Cloud Files mini-filter driver lets one thread's abort routine walk a request list while another thread has temporarily inserted a stack-based sentinel entry into it. The abort routine treats that sentinel as a real request object, so it dereferences attacker-influenced stack data and writes through a bogus pointer, crashing the kernel and potentially giving a write primitive.
Originally disclosed on Cisco Talos
A type confusion vulnerability exists in the CldiStreamPrepareRequestForMoreProcessing functionality of Windows Cloud Files Mini Filter Driver (version(s): 10.0.26100.8457 (WinBuild.160101.0800) and 10.0.26100.8655 (WinBuild.160101.0800)). A specially crafted sequence of Cloud Filter API calls can lead to type…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the abort walker assumes every entry in the intrusive request list is embedded in a request object at a fixed offset, without accounting for the temporary stack sentinel that another code path inserts into the same list while the lock is dropped.
Impact
The bug causes a kernel crash and may provide a write primitive if the fake request fields can be influenced, though the report only demonstrates the crash.
What the attacker needed
Local access to the machine; ability to register a cloud provider; ability to create a placeholder file; race between abort and disconnect calls
How it was found
- Register a cloud provider and create a dehydrated placeholder file.
- Attempt to read the placeholder so the fetch-data callback fires, and do not respond, leaving a pending request.
- Call the abort operation with zeroed provider, sync root, stream and request keys so it walks all connections and requests.
- Concurrently call the disconnect sync root API to enter the pending hydration processing path that inserts the stack sentinel.
- The abort walker picks up the sentinel, computes a fake request from the stack, and dereferences its queue context pointer, causing a kernel crash.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A kernel driver keeps a list of pending file requests. One part of the driver briefly adds a marker to that list to keep its own loop safe, but another part of the driver does not know about the marker and mistakes it for a real request. It then reads and writes memory based on that mistake, which crashes the machine and could, in principle, be steered into a controlled write.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.