Amplifying Latency and Cost of LLM Inference via Rowhammer Attack
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) achieve high inference efficiency using optimized GPU kernels generated by just-in-time (JIT) compilation frameworks such as Triton. Triton compiles GPU kernels through an MLIR/LLVM-based pipeline. We investigate whether a Rowhammer-induced bit-flip in the CPU's DRAM can degrade GPU-based LLM inference performance while preserving output correctness. We present LLVMhammer, the first Rowhammer attack that causes LLM inference slowdown by inducing a bit-flip in Triton's compilation pipeline. A bit-flip in a performance-critical optimization pass causes Triton to generate a functionally identical but suboptimal GPU kernel. Since Triton caches the generated kernel on disk, a single successful bit-flip causes persistent slowdown across subsequent inference executions. Triton's target-independent stages are shared across GPU vendors, which makes our attack GPU vendor-agnostic. To identify exploitable bit-flip locations without manual inspection, we build Karnage, a tool that isolates useful bit-flip locations in Triton's target-independent compilation pipeline. We evaluate LLVMHammer across a diverse set of LLMs, including Qwen2.5-7B-Instruct, Llama-3.1-8B-Instruct, Mistral-7B-Instruct-v0.3, and Deepseek-llm-7B-chat, across NVIDIA RTX 4090 and AMD RX 7900 XTX GPUs. LLVMhammer increases inference latency of an LLM inference server running on a single GPU by 4-16%, which, in turn, can translate into additional annual operating costs at the scale of multi-GPU deployments. We further show that LLVMhammer can also corrupt LLM outputs across different GPU vendors, reducing BERTScore to as low as 25%, illustrating the broader security implications of bit-flips in Triton's compilation pipeline.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 25 of its 86 references that are in the map. Submitted 22 Oct 2026.
Builds on
25 of 86 references.
References · 25
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,718
- 2019Bit-Flip Attack: Crushing Neural Network with Progressive Bit Searchcited by 118
- 2024vAttention: Dynamic Memory Management for Serving LLMs without PagedAttentioncited by 105
- 2019Terminal Brain Damage: Exposing the Graceless Degradation in Deep Neural Networks Under Hardware Fault Attackscited by 61
- 2020DeepHammer: Depleting the Intelligence of Deep Neural Networks through Targeted Chain of Bit Flipscited by 61
- 2021DeepSteal: Advanced Model Extractions Leveraging Efficient Weight Stealing in Memoriescited by 43
- 2017Another Flip in the Wall of Rowhammer Defensescited by 14
- 2020TRRespass: Exploiting the Many Sides of Target Row Refreshcited by 14
- 2020DeepDyve: Dynamic Verification for Deep Neural Networkscited by 14
- 2025GPUHammer: Rowhammer Attacks on GPU Memories are Practicalcited by 12
- 2024GenBFA: An Evolutionary Optimization Approach to Bit-Flip Attacks on LLMscited by 11
13 more
- 2021Don't Knock! Rowhammer at the Backdoor of DNN Modelscited by 8
- 2025SBFA: Single Sneaky Bit Flip Attack to Break Large Language Modelscited by 8
- 2023Compiled Models, Built-In Exploits: Uncovering Pervasive Bit-Flip Attack Surfaces in DNN Executablescited by 5
- 2025BitHydra: Towards Bit-flip Inference Cost Attack against Large Language Modelscited by 4
- 2021SoftTRR: Protect Page Tables Against RowHammer Attacks using Software-only Target Row Refreshcited by 2
- 2024MOAT: Securely Mitigating Rowhammer with Per-Row Activation Counterscited by 2
- 2025When Mitigations Backfire: Timing Channel Attacks and Defense for PRAC-Based RowHammer Mitigationscited by 2
- 2025ObfusBFA: A Holistic Approach to Safeguarding DNNs from Different Types of Bit-Flip Attackscited by 2
- 2025FlipLLM: Efficient Bit-Flip Attacks on Multimodal LLMs using Reinforcement Learningcited by 2
- 2026GPUBreach: Privilege Escalation Attacks on GPUs using Rowhammercited by 2
- 2019JackHammer: Efficient Rowhammer on Heterogeneous FPGA-CPU Platformscited by 1
- 2025ColumnDisturb: Understanding Column-based Read Disturbance in Real DRAM Chips and Implications for Future Systemscited by 1
- 2025BitFlipScope: Scalable Fault Localization and Recovery for Bit-Flip Corruptions in LLMscited by 1
Built on by
Not cited yet.