AI Security AI安全 8h ago Updated 2h ago 更新于 2小时前 45

New GPUThor Rowhammer Defeats ECC on NVIDIA RTX A6000 to Gain Host Root Access 新型GPUThor Rowhammer攻击击败ECC,在NVIDIA RTX A6000上获取主机Root权限

GPUThor is a Rowhammer attack by University of Toronto researchers that defeats ECC on NVIDIA RTX A4000/A5000/A6000 GPUs with GDDR6 memory, achieving up to 377,552 bit flips per gigabyte The attack uses non-uniform hammering to overwhelm Target Row Refresh (TRR) defenses by activating aggressor rows far more frequently than decoy rows, exploiting warp-level memory access merging at the GPU memory controller GPUThor enables both denial-of-service and privilege escalation to host root, using tripl GPUThor攻击成功击败NVIDIA RTX A6000/A5000等Ampere系列GPU的ECC保护,实现大规模位翻转(最高377,552次/GB) 攻击采用非均匀hammering技术,通过差异化激活 aggressor row 与 decoy row 绕过Target Row Refresh (TRR)防御 利用SECDED ECC的误校正漏洞产生静默数据损坏(SDC),结合GPUBreach技术实现从GPU到宿主机的root权限提升 攻击需非特权CUDA内核执行权限,可通过GPU共享或多租户环境发起,已报告给NVIDIA及主要云厂商

65
Hot 热度
70
Quality 质量
55
Impact 影响力

Analysis 深度分析

TL;DR

  • GPUThor is a Rowhammer attack by University of Toronto researchers that defeats ECC on NVIDIA RTX A4000/A5000/A6000 GPUs with GDDR6 memory, achieving up to 377,552 bit flips per gigabyte
  • The attack uses non-uniform hammering to overwhelm Target Row Refresh (TRR) defenses by activating aggressor rows far more frequently than decoy rows, exploiting warp-level memory access merging at the GPU memory controller
  • GPUThor enables both denial-of-service and privilege escalation to host root, using triple-bit silent data corruption (SDC) with IOMMU enabled and double-bit detectable uncorrectable errors (DUE) with IOMMU disabled
  • NVIDIA's recommended ECC mitigation is bypassed through ECC mis-correction (3 mis-corrected bits causing SDC) and a ~10 ms lazy DUE servicing window that allows attackers to consume corrupted data before the GPU is killed
  • The vulnerability is limited to specific Ampere-class GDDR6 workstation GPUs; newer memory types (GDDR6X, HBM2e) and datacenter GPUs showed no bit flips under the same attack patterns

Why It Matters

GPUThor represents a significant escalation in GPU-side physical and logical attack surfaces, demonstrating that workstation GPUs commonly deployed in multi-tenant cloud and shared computing environments are vulnerable to cross-tenant privilege escalation. The findings expose a critical gap between NVIDIA's ECC-based mitigation recommendations and the reality of ECC mis-correction and lazy error handling, directly impacting cloud providers, AI training infrastructures, and any organization running untrusted CUDA workloads on affected hardware.

Technical Details

  • Non-uniform hammering technique: GPUThor exploits the fact that repeated memory accesses within a single warp (32 threads) are merged into one DRAM activation at the memory controller, while accesses from different warps to different cache lines in the same row remain separate. The attack distributes hammering across warps to maximize aggressor row activations while minimizing decoy row activations, swamping the TRR defense that typically refreshes approximately once every 72 refresh intervals on these GDDR6 parts.
  • ECC defeat mechanism: The SECDED (Single Error Correct, Double Error Detect) ECC on these GPUs mis-corrects when three bits are flipped in a protected chunk, producing silent data corruption (SDC) instead of flagging an error. Over four cards with ECC disabled, campaigns produced 387 double-bit flips and 2 triple-bit flips at 16-byte granularity. With ECC enabled, the attack generated detectable uncorrectable errors (DUE) averaging one every two hours, each aborting all GPU kernels.
  • Privilege escalation chain: Reusing exploit code from the earlier GPUBreach research, the attack corrupts page table entries by hammering rows adjacent to vulnerable page-table entries, redirecting a page-frame number into CPU memory. With triple-bit SDC and IOMMU enabled, host root was obtained. With double-bit DUE and IOMMU disabled, the ~10 ms lazy servicing window allows the attacker's kernel to consume corrupted data before the GPU is killed, enabling page-table repointing and credential structure overwrites.
  • Performance and scope: End-to-end privilege escalation completed in 1.1 minutes on the RTX A6000. The RTX A5000 was the most susceptible card at 377,552 flips per gigabyte—23,597× GPUHammer's rate and ~500× GDDRHammer's rate. Vulnerable GPUs include RTX A6000 (48 GB), A5000 (24 GB), A4500 (20 GB), and A4000 (16 GB). No bit flips were observed on A10, L4, L40, RTX 4090 (GDDR6X), or A30 (HBM2e).
  • Server-class implications: Ampere server GPUs and newer carry Error Containment and Dynamic Page Offlining, but still rely on SECDED-level ECC, meaning SDC-based escalation remains viable. RAS Repair on some Blackwell GPUs increases the time required for DUE-based exploitation but does not prevent it. The A100 and H100 were not tested.

Industry Insight

  • Cloud providers and GPU-as-a-service platforms should immediately audit deployments of Ampere-class workstation GPUs (A4000-A6000) for cross-tenant co-location, as the attack requires only unprivileged CUDA kernel execution—readily achievable in shared GPU environments. Disabling cross-tenant GPU sharing and enforcing strict workload isolation are the most effective immediate mitigations.
  • NVIDIA's reliance on System-Level ECC as the primary mitigation is insufficient given the demonstrated ECC mis-correction and lazy DUE handling; organizations should implement additional layers such as IOMMU enforcement, continuous ECC error counter monitoring, and runtime anomaly detection for uncorrectable error rates exceeding baseline thresholds.
  • The vulnerability landscape for GPU computing is expanding beyond software-side attacks into hardware-level memory corruption, paralleling trends seen in CPU Rowhammer research. AI practitioners and infrastructure teams should treat GPU memory integrity as a first-class security concern, incorporating hardware vulnerability assessments into procurement and deployment decisions, particularly for multi-tenant and untrusted workload scenarios.

TL;DR

  • GPUThor攻击成功击败NVIDIA RTX A6000/A5000等Ampere系列GPU的ECC保护,实现大规模位翻转(最高377,552次/GB)
  • 攻击采用非均匀hammering技术,通过差异化激活 aggressor row 与 decoy row 绕过Target Row Refresh (TRR)防御
  • 利用SECDED ECC的误校正漏洞产生静默数据损坏(SDC),结合GPUBreach技术实现从GPU到宿主机的root权限提升
  • 攻击需非特权CUDA内核执行权限,可通过GPU共享或多租户环境发起,已报告给NVIDIA及主要云厂商

为什么值得看

GPUThor揭示了GPU硬件安全层面的重大缺陷,证明传统ECC保护在多租户GPU环境中存在致命盲区。该研究对AI基础设施、云计算服务和GPU虚拟化安全架构具有深远影响,提醒行业重新评估GPU隔离机制。

技术解析

  • 非均匀hammering机制:GPUThor的核心创新在于差异化访问模式——aggressor row被激活频率远高于decoy row,从而淹没TRR防御。利用GPU warp特性,同一warp内重复访问被合并为单次DRAM激活,不同warp对同行不同cache line的访问则保持独立激活。
  • ECC绕过与位翻转规模:在RTX A5000上实现377,552次/GB位翻转,是前作GPUHammer的23,597倍。SECDED ECC仅能纠正单比特错误,研究发现其会误校正三比特错误导致SDC,产生387个双比特翻转和2个三比特翻转。
  • 权限提升路径:通过GPUBreach复用技术,先将页表置入易受攻击的行,再hammer翻转页表项的页帧号,使第二内核可访问进程外内存。IOMMU启用时用三比特SDC获取root,IOMMU禁用时用双比特DUE实现提权。
  • 时间窗口利用:NVIDIA GPU对DUE采用延迟处理,产生约10ms时间窗口,攻击者可在GPU被终止前消费损坏数据。完整权限提升仅需1.1分钟,而定位可利用多比特错误约需4天。
  • 漏洞范围:仅影响A4000-A6000系列GDDR6 GPU,GDDR6X、HBM2e及更新GDDR6因TRR实现差异不受影响。A100/H100未测试,但服务器级Ampere及Blackwell GPU仍依赖SECDED,SDC路径理论上仍可行。

行业启示

  • 多租户GPU安全需重构:云服务商应重新评估GPU共享隔离机制,避免跨租户GPU共置,并强制启用System-Level ECC作为基础防护。
  • 监控与响应机制:部署ECC错误计数器实时监控,建立DUE/SDC告警体系,对异常位翻转率及时隔离故障GPU。
  • 硬件设计改进方向:厂商需优化TRR实现策略(如提高刷新频率),考虑升级至更强大的ECC方案(如Chipkill),并缩短DUE处理延迟以消除可利用时间窗口。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 GPU GPU Research 科学研究