paperbot · PL 论文追踪

全部论文 待读 收藏

P2 UAFSan: an object-identifier-based dynamic approach for detecting use-after-free vulnerabilities

UAFSan:一种基于对象标识符的 use-after-free 漏洞动态检测方法
ISSTA Proceedings of the 30th ACM SIGSOFT International Symposium on Software Testing and Analysis2021匹配度 1/10 · 该论文提出的是运行时动态检测 use-after-free 漏洞的方法,属于传统程序分析与软件安全方向,并未涉及用户画像中的静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析等核心主题。虽然同属程序分析领域,但研究问题与方法均与用户当前追踪方向相距较远。引用 10 inbox
Binfa Gui, Wei Song, Jeff Huang
crossref: 2026-09-12

AI 速览

一句话:提出 UAFSan,通过为对象和指针分配唯一标识符并校验一致性,在运行时检测 use-after-free 漏洞。

释放后使用(use-after-free, UAF)漏洞严重威胁软件安全,且由于指针别名以及指针与对象之间的复杂关系,人工或静态分析难以检测。现有基于证据的动态检测方法通常只跟踪指针或对象来记录对象可用性,当被释放对象所占内存被重新分配后,这类记录会失效。本文提出 UAFSan:为每个新分配对象及其指针分配唯一标识符,并在指针解引用内存对象时,通过检查两者标识符是否一致来判断是否发生 UAF。作者实现了开源工具,并在大量流行基准和真实程序上评估。实验表明,UAFSan 能在合理开销下检出全部 UAF,而现有公开动态检测器均会漏报部分 UAF。

问题
UAF 漏洞因指针别名和指针-对象关系复杂而难以人工或静态检测;已有动态方法只跟踪指针或对象,内存重分配后记录失效,导致漏报。
方法
为每个新分配对象及其指针赋予唯一标识符,在指针解引用对象时校验对象与指针标识符的一致性,从而在运行时判定 UAF。
评估
在大量流行基准和真实程序上实现开源工具进行实验,结果显示 UAFSan 能检出所有 UAF、开销合理,并优于会漏报的现有公开动态检测器。
原文摘要(Abstract)

Use-After-Free (UAF) vulnerabilities constitute severe threats to software security. In contrast to other memory errors, UAFs are more difficult to detect through manual or static analysis due to pointer aliases and complicated relationships between pointers and objects. Existing evidence-based dynamic detection approaches only track either pointers or objects to record the availability of objects, which become invalid when the memory that stored the freed object is reallocated. To this end, we propose an approach UAFSan dedicated to comprehensively detecting UAFs at runtime. Specifically, we assign a unique identifier to each newly-allocated object and its pointers; when a pointer dereferences a memory object, we determine whether a UAF occurs by checking the consistency of their identifiers. We implement UAFSan in an open-source tool and evaluate it on a large collection of popular benchmarks and real-world programs. The experiment results demonstrate that UAFSan successfully detect all UAFs with reasonable overhead, whereas existing publicly-available dynamic detectors all miss certain UAFs.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot6644,
  title = {UAFSan: an object-identifier-based dynamic approach for detecting use-after-free vulnerabilities},
  author = {Binfa Gui and Wei Song and Jeff Huang},
  booktitle = {ISSTA},
  year = {2021},
  doi = {10.1145/3460319.3464835}
}