cd /news/ai-safety/kvguard-a-kv-cache-safety-checker-fo… · home › topics › ai-safety › article
[ARTICLE · art-164485] src=arxiv.org ↗ pub= topic=ai-safety verified=true sentiment=↑ positive

KVGuard: A KV Cache Safety Checker for LLM Serving Systems

A November 4, 2026 arXiv paper presents KVGuard, a memory-safety checker for KV cache management in LLM serving systems that catches double-free, use-after-free, out-of-bounds access, uninitialized read and permission violations which existing CUDA-level sanitizers miss. A prototype on vLLM and SGLang covered all 29 historical real-world KV cache safety bugs from the two systems' patch histories and found 8 previously unknown violations with no false positives, adding 3.0% and 7.4% geomean TPOT overhead on Qwen 2.5 14B and at most 0.11% KV cache memory overhead — two orders of magnitude below NVIDIA Compute Sanitizer on the same workloads. KVGuard tracks a compact shadow block per physical KV block recording per-request permission and per-entry initialization, firing each check at the boundary that introduced the violation rather than reporting downstream output corruption many requests later.

read2 min views1 publishedNov 5, 2026
KVGuard: A KV Cache Safety Checker for LLM Serving Systems
Image: source
  [Submitted on 4 Nov 2026]


[View PDF](https://arxiv.org/pdf/2611.06138)

[HTML (experimental)](https://arxiv.org/html/2611.06138v1)

Abstract:Modern LLM serving systems manage the KV cache through PagedAttention, a custom GPU allocator that partitions a single CUDA-allocated region into fixed-size physical blocks and maps each request to those blocks through a CPU-built block table. This block-based design exposes a previously unstudied class of memory safety bugs in the KV cache, including double-free, use-after-free, out-of-bounds access, uninitialized read, and permission violation, which silently corrupt outputs or break request isolation without ever crashing the system. Existing memory sanitizers cannot detect them, because they reason about CUDA-level addresses rather than KV cache blocks, requests, and block tables, and their redzone- and quarantine-based designs do not fit the scarce GPU memory budget of LLM serving. This paper presents KVGuard, the first systematic memory-safety abstraction for KV cache management in LLM serving systems. KVGuard maintains a compact shadow block for each physical KV block, recording per-request permission and per-entry initialization, and uses this metadata to perform five safety checks across the PagedAttention workflow, spanning CPU allocation, block table construction and translation, and GPU-side block table lookup and KV entry access. Each check fires at the boundary that introduced the violation, enabling early detection during development rather than reporting downstream output corruption many requests later. A prototype of KVGuard on vLLM and SGLang covers all 29 historical real-world KV cache safety bugs collected from the two systems' patch histories. KVGuard further found 8 previously unknown safety violations while reporting no false positives. It adds 3.0% and 7.4% geomean TPOT overhead on Qwen 2.5 14B on vLLM and SGLang and at most 0.11% of the KV cache in memory overhead, two orders of magnitude below NVIDIA Compute Sanitizer on the same workloads.

Additional Features

References & Citations

...

Bibliographic Explorer

(What is the Explorer?) Connected Papers

(What is Connected Papers?) Litmaps

(What is Litmaps?) scite Smart Citations

(What are Smart Citations?) alphaXiv

(What is alphaXiv?) CatalyzeX Code Finder for Papers

(What is CatalyzeX?) DagsHub

(What is DagsHub?) Gotit.pub

(What is GotitPub?) Hugging Face

(What is Huggingface?) ScienceCast

(What is ScienceCast?) Influence Flower

(What are Influence Flowers?) CORE Recommender

(What is CORE?) arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

── more in #ai-safety 4 stories · sorted by recency
── more on @kvguard 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/kvguard-a-kv-cache-s…] indexed:0 read:2min 2026-11-05 · —