低语像素:利用现代 GPU 中未初始化寄存器访问的漏洞
Whispering Pixels: Exploiting Uninitialized Register Accesses in Modern GPUs
AI总结:
本文发现并展示了 Apple、NVIDIA 和 Qualcomm GPU 中因着色器执行前寄存器未初始化而导致的数据泄漏漏洞,并实现了对像素数据、CNN 中间数据及 LLM 输出的泄漏与重建攻击。
摘要:
图形处理单元(GPU)已经超越了其传统的图形渲染用途,如今也作为加速无处不在的非图形渲染任务的强大平台。其中一项重要任务是神经网络推理,它处理大量个人数据,如音频、文本或图像。因此,GPU 已成为处理大量潜在机密数据的关键组成部分,这引起了安全研究人员的兴趣。这导致近年来在 GPU 中发现了各种漏洞。在本文中,我们揭示了 GPU 中另一类漏洞:我们发现一些 GPU 实现在着色器执行前缺乏适当的寄存器初始化例程,导致先前执行的着色器内核的寄存器内容意外泄漏。我们在三大主要厂商——Apple、NVIDIA 和 Qualcomm——的产品上展示了上述漏洞的存在。由于 GPU 固件中存在不透明的调度和寄存器重映射算法,该漏洞给攻击者带来了独特的挑战,使泄漏数据的重建变得复杂。为了说明该缺陷在现实世界中的影响,我们展示了如何解决这些挑战以攻击 GPU 上的各种工作负载。首先,我们展示了未初始化寄存器如何泄漏由片段着色器处理的任意像素数据。我们进一步对卷积神经网络(CNN)的中间数据实施了信息泄漏攻击,并展示了该攻击泄漏和重建大型语言模型(LLM)输出的能力。
英文摘要:
Graphic Processing Units (GPUs) have transcended their traditional use-case of rendering graphics and nowadays also serve as a powerful platform for accelerating ubiquitous, non-graphical rendering tasks. One prominent task is inference of neural networks, which process vast amounts of personal data, such as audio, text or images. Thus, GPUs became integral components for handling vast amounts of potentially confidential data, which has awakened the interest of security researchers. This lead to the discovery of various vulnerabilities in GPUs in recent years. In this paper, we uncover yet another vulnerability class in GPUs: We found that some GPU implementations lack proper register initialization routines before shader execution, leading to unintended register content leakage of previously executed shader kernels. We showcase the existence of the aforementioned vulnerability on products of 3 major vendors - Apple, NVIDIA and Qualcomm. The vulnerability poses unique challenges to an adversary due to opaque scheduling and register remapping algorithms present in the GPU firmware, complicating the reconstruction of leaked data. In order to illustrate the real-world impact of this flaw, we showcase how these challenges can be solved for attacking various workloads on the GPU. First, we showcase how uninitialized registers leak arbitrary pixel data processed by fragment shaders. We further implement information leakage attacks on intermediate data of Convolutional Neural Networks (CNNs) and present the attack's capability to leak and reconstruct the output of Large Language Models (LLMs).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。