Search papers, labs, and topics across Lattice.
This paper investigates the vulnerability of shared KV-cache blocks in LLM serving systems to adversarial bit flips, drawing parallels to the Rowhammer attack on GPU DRAM. The authors characterize the impact of these bit flips through software fault injection, revealing three critical properties: silent divergence of outputs, selective propagation of errors to requests sharing the targeted prefix, and persistent accumulation of damage over time. A proposed checksum-based countermeasure effectively mitigates the risk by detecting single-bit corruption, thereby limiting cumulative damage while maintaining low overhead.
Silent divergence in LLM outputs can mask adversarial bit flips, allowing undetected exploitation of shared KV-cache vulnerabilities.
Rowhammer on GPU DRAM has enabled adversarial bit flips in model weights; shared KV-cache blocks in LLM serving systems present an analogous but previously unexamined target. In vLLM's Prefix Caching, these blocks exist as a single physical copy without integrity protection. Using software fault injection under ideal bit targeting, we characterize worst-case severity and identify three properties: (1) Silent divergence - 13 of 16 BF16 bit positions produce coherent but altered outputs, indistinguishable from legitimate responses without a clean baseline. (2) Selective propagation - only requests sharing the targeted prefix are affected. (3) Persistent accumulation - no temporal decay occurs, so cumulative damage grows linearly with subsequent requests. Together, these constitute a threat profile distinct from weight corruption: silent divergence and selective propagation enable detection evasion; persistent accumulation then proceeds unchecked, yielding damage amplification bounded only by how long the block remains cached. A checksum-based countermeasure detects any single-bit corruption at scheduling time, bounding cumulative damage to one batch independent of the block's cache lifetime, with negligible overhead. These results argue for integrity protection of prefix blocks before end-to-end exploitation is demonstrated.