Skip to content

All posts

IT security, AI inference, Cloud

Tenant isolation now runs through GPU memory

A Cloudflare AI service returned 155 responses containing other customers' data because stale pages in GPU memory were read again. What buyers of inference should take into the contract: tenant isolation also lives in shared GPU memory, and the provider has to prove it.

For almost two weeks this summer, some customers of a large cloud AI service received answers that contained pieces of other customers’ requests. Cloudflare’s incident report, published on 26 October together with the maintainers of the open-source inference engine SGLang, puts the number at 155 responses from one model on Workers AI between 27 August and 9 September. Only very long prompts, above 681,280 tokens, triggered it. An outside security researcher reported the problem. Cloudflare says that, after excluding its own and the researcher’s tests, the affected requests look like ordinary long-context use, and that it found no evidence of deliberate exploitation. The report is unusually candid about what went wrong in testing, which is what makes it worth reading. If this can happen to a provider of that size, it can happen to anyone serving many customers on the same GPUs.

Picture the offer on your desk for an AI platform, whether a model API from a hyperscaler or a sovereign provider in Germany. The security annex covers network segmentation, roles and permissions, encryption and an EU data centre, and your data protection officer has signed off. Nothing in it says how the provider keeps your prompt from sitting in GPU memory next to another customer’s and being read back out.

What actually broke

While a model reads a prompt, it stores intermediate results so it does not have to recompute them for every word of the answer; that store is the KV cache, and it lives in GPU memory. Large services often split the work: one group of GPUs reads the prompt (prefill), another generates the answer (decode), and the KV cache is shipped between them over the network. The cache is divided into fixed-size pages that belong to one request after another. According to Cloudflare, those pages are not zeroed between requests; the next request simply overwrites them, which the company describes as common practice and necessary for performance. That leaves the engine responsible for tracking who owns which page.

That tracking failed. The model advertised a context window of 1,048,576 tokens, while the cache on the prefill GPUs held only 681,280. Cloudflare knew about the gap before launch and expected the engine to reject prompts that did not fit. Instead, in the split setup, a rejected prompt continued as a placeholder, and decode read old pages still holding earlier requests’ data. The customer received HTTP 200 and a coherent reply. Before launch, Cloudflare says, it had only checked status codes and performance, not what the answers said.

SGLang’s disclosure adds a related class of bugs around aborted transfers and notes that such mix-ups leave no error and no log line behind. Teams running SGLang themselves will find the fixes in versions 0.5.21 to 0.5.23, depending on the transfer backend; Cloudflare recommends 0.5.22 or later.

Below the network

Tenant isolation for inference is not settled in the network and IAM alone. It is also settled in shared GPU memory, on pages nobody clears, by software that has to keep perfect books. A penetration test against the API will not see it, and neither will a data centre certificate. Our reading is that buyers should treat KV cache isolation as its own test item, the way they would ask whether a database really keeps tenants apart.

Cloudflare’s own fix shows what evidence can look like. Before any change to a split prefill/decode deployment ships, it now checks on the running engine that the cache can hold the full context window. Before restoring the model, it also ran canary-marker tests: requests carrying tagged content that must never surface in anyone else’s response. A provider who can show something comparable has an answer. One who points to network segments is answering a different question.

When an AI service runs many customers on the same GPUs, tenant isolation runs through GPU memory too, and before we sign an inference contract the provider has to show how it keeps our data apart there and how it tests that before every release.

How does your inference provider prove that tenants are kept apart in the KV cache, and when did it last test that?