2026 · CCS 2026
Mitigating Code Injection Attacks on Modern GPUs
ACM Conference on Computer and Communications Security
Abstract
Once specialized for graphics acceleration, Graphics Processing Units (GPUs) now serve as foundational components of parallel computing, driving advancements from immersive gaming to generative Artificial Intelligence (AI). However, while their computational capabilities have expanded dramatically, GPU security has lagged behind their expanding functionality. Recent studies reveal that GPUs remain susceptible to memory corruption attacks, a gap amplified by their reliance on memory-unsafe programming frameworks, such as CUDA. Although contemporary GPUs incorporate basic defenses like ASLR and stack canaries, the absence of hardware-enforced Data Execution Prevention (DEP) leaves them critically exposed to code-injection attacks, undermining the implementation of a robust W⊕X security policy. This work analyzes the potential of code-injection attacks on NVIDIA GPUs, executed independently of CPU vulnerabilities, in the presence of ASLR and stack canary protections. To address this gap, we design and implement a software-based DEP mechanism, a critical enabler of the W⊕X policy, to enforce strict memory permissions, eliminating executable-writable memory regions, and thereby neutralizing code-injection attacks. Our solution operates transparently alongside proprietary vendor toolchains and software components while maintaining compatibility with precompiled libraries. Empirical evaluations across diverse benchmarks on three different NVIDIA GPU architectures show that our approach incurs minimal overhead, with average runtime and memory overheads of less than 0.5%.