Unzeroed disk blocks let Cloudflare Containers leak old data
In short
- Cloudflare says a storage setting that skipped wiping disk space let a customer on its Containers service read leftover data from other customers' earlier containers on the same server. A 4 KiB write into a reused 64 KiB block left the other 60 KiB holding the previous owner's bytes.
- A researcher, Oren Yomtov of Accomplish, reported it on 4 September 2026. Cloudflare's postmortem of 24 September says the fix finished rolling out across the fleet on 7 September (cleanup of old data ended 19 September), needed no customer action, and that it found no sign anyone else exploited it.
64 KiB size of a storage block in the affected pools; 60 KiB left unwritten, and possibly old, after a 4 KiB write; 18 of 24 placements where the researchers saw residual data; 7 September 2026 fleet-wide rollout complete
What went wrong in Cloudflare Containers?
Cloudflare Containers run customers' programs on shared servers. Each container sits in its own Firecracker virtual machine (a small, isolated virtual computer) and gets a writable root disk built with Linux's device mapper thin provisioning, "dm-thin". Cloudflare says customers cannot choose the host.
Thin provisioning hands out real disk space only when a virtual disk first writes to a region. When a container's disk is deleted, its blocks go back into a pool that serves several customer accounts. In the affected pools those blocks were 64 KiB each.
The pool was configured with an option called skip_block_zeroing. With it, dm-thin does not wipe a newly handed-out block. A full 64 KiB write overwrites everything, but a smaller write changes only its own part, and the rest can keep what the previous owner stored.
How did the researchers read other customers' leftovers?
Cloudflare describes the proof of concept in these steps:
- Create a container on a Workers Paid account and open its root disk, /dev/vdc.
- Read the disk and record a baseline. Unused regions read as zeroes, because dm-thin returns zeroes for space it has not allocated.
- Find 64 KiB-aligned regions that are free space in the container's own ext4 filesystem, and write one 4 KiB block into each.
- Each write makes dm-thin allocate a real 64 KiB block from the shared pool. Read the blocks again and examine only the 60 KiB the new container never wrote.
The researchers needed a way to show those bytes came from someone else. Cloudflare says they used ext4 directory block checksums, which tie a block to its filesystem and file. Across six production placements, none of the 5,614 testable directory blocks belonged to the researchers' own filesystem, and 2,700 distinct foreign directory inodes (the records that identify files and folders) turned up. As a check, the method correctly attributed all 162 blocks the researchers had deliberately created and deleted in their own test filesystem.
Overall they saw residual material on 18 of 24 placements and 20 of 22 underlying nodes across four continents. The block types included directory structures, database pages and complete SQLite databases. Cloudflare says the researchers' scripts output only counts and format checks, that their submission contained no third-party filenames, credentials or recovered content, and that they confirmed they securely deleted what they had recovered.
What could an attacker actually get?
Cloudflare says a Workers Paid customer could have recovered filesystem metadata, directory structures, database pages and application data from blocks earlier containers had used. The limits it states: the attacker could not pick a victim, host or data, could not reach a disk still in use, and nothing guaranteed any residue would be there. What came back depended on where workloads were placed and which freed blocks were reassigned. The researchers did not show changes to another customer's live data or any effect on availability.
Cloudflare also says Cloudflare Sandboxes, which are built on Containers, were affected.
How did Cloudflare fix it?
It took two steps, because the first was not enough on its own.
- Turn zeroing back on. Cloudflare removed skip_block_zeroing from the pool configuration across the fleet, restoring dm-thin's default of clearing new blocks before a container sees them. The researchers independently confirmed their proof of concept stopped working.
- Clean up old disks. Zeroing does not clean blocks already mapped into existing disks. Running container disks, and each host's cache of prepared image snapshots, could still carry residue, and a new container could inherit it without any new allocation. So Cloudflare retired all running container disks, drained hosts in off-peak hours, restarted the virtual machines and cleared each host's image cache so everything was rebuilt from zeroed blocks.
4 Sep 2026, 15:26 UTC: Report received through HackerOne. 4 Sep, 18:45 UTC: Cloudflare opens a security incident and confirms the production setup behind the flaw. 4 Sep, 21:27 UTC: Runtime fix and its reuse test merged; rollout starts at 23:15 UTC. 7 Sep, 06:13 UTC: Rollout complete; clearing of old pool data begins. 14 Sep: Researchers report the proof of concept no longer works (10:50 UTC); bounty awarded (12:52 UTC). 19 Sep, 15:03 UTC: Cleanup of all pre-mitigation cached snapshots finished.
Did anyone else exploit it?
Cloudflare says it reviewed retained disk-I/O telemetry, using the proof of concept and its own reproduction as reference. The signature is a small write followed by a much larger read. It found activity from the researchers and its own engineers doing authorised validation, and nothing else matching the technique. The post limits this to "the historical disk-I/O telemetry available to us" and to "this specific attack vector". It is Cloudflare's own finding and we could not check it.
What is thin provisioning, and why does zeroing matter?
Our explanation. Think of a storage unit with 16 small shelves per box. A new tenant gets a box that may have been used before. Wiping it costs time on every handover, which is why a setting to skip it exists. If the new tenant only fills one shelf, the other 15 still show the last tenant's things. In the post's numbers, 64 KiB divided by 4 KiB is 16 slots; one written leaves 60 KiB. Multi-tenancy means many customers share the same machines, so the wipe between tenants is part of the wall that keeps them apart.
What this does not tell us
Cloudflare's post does not say how long the setting had been in place, how many customers' data sat in reused blocks, or the bounty amount. Whether any data was in fact read by a third party rests on Cloudflare's telemetry review. We did not see the researchers' own report.
Terms in plain English
- Multi-tenant: many customers' workloads running on the same shared machines.
- Thin provisioning: giving a virtual disk real space only when it first writes there.
- Zeroing: overwriting a block with zeroes before reuse, so old contents cannot be read.
- Firecracker: software that runs each container inside a lightweight virtual machine.
- KiB: 1,024 bytes.
- Residual data: old bytes left in storage after its previous user is finished.
Sources
- How Cloudflare addressed a cross-tenant data exposure vulnerability in Containers, Cloudflare Blog, 24 September 2026
Sources
Related stories
- Cloudflare brings full post-quantum switch forward to 2027
- Cloudflare releases five open-weight models built on Qwen
- nginx2root: five nginx bugs, one in every release since 2015 and exploitable with HTTP/2 alone, chained with a Linux kernel flaw to get root; Cloudflare says its proxy blocks the worst
- Cloudflare releases open Clairic models that pull data from PDFs
- Cloudflare says a hosted AI model leaked other customers' text
- Cloudflare releases Clef-omni, an open model for audio and video
More from Vulnerability Research
- Check Point VPN certificate flaw is exploited days after its fix
- AI agents help factor 260-digit RSA-260 on GPUs, Cognition says
- A remote Spectre attack leaked a secret from Cloudflare Workers
- A 60-second implant intercepts a 737's cockpit data in lab test
- NeuralHash gives different faces the same hash, a study finds