arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.12485cs.CRcs.SE
收藏

大规模发现CUDA漏洞的cuFuzz

Hunting CUDA Bugs at Scale with cuFuzz

NVIDIA(英伟达);Stanford University(斯坦福大学)

Mohamed Tarek Ibn ziad, Christos Kozyrakis

AI总结:

cuFuzz通过全程序模糊测试解决GPU模糊测试中的虚假阳性、缺乏设备端反馈和工具不兼容问题,发现43个新漏洞,包括非法内存访问和数据竞争。

摘要:

GPU在现代软件中扮演越来越重要的角色。然而,异构主机-设备执行模型和扩展的软件栈使GPU程序容易出现内存安全和并发漏洞,这些漏洞逃避静态分析。尽管模糊测试结合动态错误检查工具提供了可能的解决方案,但其在GPU上的应用仍不充分。本文识别了限制先前GPU模糊测试努力的三个主要障碍:(1)内核级模糊测试导致假阳性,(2)缺乏设备端覆盖引导反馈,(3)覆盖和清理工具之间的不兼容性。我们提出了cuFuzz,这是首个面向CUDA的模糊器,通过解决这些问题使GPU模糊测试变得可行。cuFuzz使用全程序模糊测试以避免独立模糊设备端内核导致的假阳性。它利用NVBit来仪器设备端指令,并将结果覆盖与编译器基于的主机覆盖合并。最后,cuFuzz通过在单独进程中执行主机端和设备端清理器,将清理与覆盖收集解耦。cuFuzz在14个CUDA程序中发现了43个之前未知的漏洞(19个在商业库中),包括非法内存访问、未初始化读取和数据竞争。cuFuzz在发现边沿和唯一输入方面比基线方法显著更多,特别是在闭源目标上。此外,我们量化了不同cuFuzz组件的执行时间开销,并添加了持久模式支持以提高整体模糊测试吞吐量。我们的结果表明,cuFuzz是GPU测试工具箱中有效且可部署的补充。cuFuzz在https://github.com/NVlabs/cuFuzz/上公开可用。

英文摘要:

GPUs play an increasingly important role in modern software. However, the heterogeneous host-device execution model and expanding software stacks make GPU programs prone to memory-safety and concurrency bugs that evade static analysis. While fuzz-testing, combined with dynamic error checking tools, offers a plausible solution, it remains underutilized for GPUs. In this work, we identify three main obstacles limiting prior GPU fuzzing efforts: (1) kernel-level fuzzing leading to false positives, (2) lack of device-side coverage-guided feedback, and (3) incompatibility between coverage and sanitization tools. We present cuFuzz, the first CUDA-oriented fuzzer that makes GPU fuzzing practical by addressing these obstacles. cuFuzz uses whole program fuzzing to avoid false positives from independently fuzzing device-side kernels. It leverages NVBit to instrument device-side instructions and merges the resultant coverage with compiler-based host coverage. Finally, cuFuzz decouples sanitization from coverage collection by executing host- and device-side sanitizers in separate processes. cuFuzz uncovers 43 previously unknown bugs (19 in commercial libraries) across 14 CUDA programs, including illegal memory accesses, uninitialized reads, and data races. cuFuzz achieves significantly more discovered edges and unique inputs compared to baseline approaches, especially on closed-source targets. Moreover, we quantify the execution time overheads of the different cuFuzz components and add persistent-mode support to improve the overall fuzzing throughput. Our results demonstrate that cuFuzz is an effective and deployable addition to the GPU testing toolbox. cuFuzz is publicly available at https://github.com/NVlabs/cuFuzz/.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑