首页|基于悬空指针追踪的UAF漏洞检测方法研究

基于悬空指针追踪的UAF漏洞检测方法研究

扫码查看
随着UAF漏洞的关注度上升,其利用方式更加多样,对计算机系统造成的威胁愈发严重。因此,本文提出一个轻量级的UAF漏洞检测方案。该方案在LLVM IR的基础上收集被测试程序中所有可能的悬空指针;然后,对它们进行精准的数据流分析和控制流分析后,可以排除再次定义的指针,得到所有悬空指针;最后,对悬空指针进行可达性分析和数据流分析即可得到UAF漏洞的操作序列。该方案还通过2种方式减少系统开销:将过程间分析简化为过程内分析和结合数据流分析的别名分析算法。在开源的测试用例和真实程序上测试的实验结果表明,该方案可以快速、准确地识别出代码中的UAF漏洞,并报告危险的操作序列。
Research on use-after-free detection method based on the dangling pointer tracking
With the increasing attention paid to the UAF vulnerability,its exploitation methods have become more diverse and the threat posed to computer systems has become more serious.Therefore,this paper pro-poses a lightweight UAF vulnerability detection scheme.The scheme accumulates all possible dangling point-ers in the program under test based on LLVM IR,and then after performing accurate data flow analysis and control flow analysis on them,the redefined pointers can be excluded and all dangling pointers can be ob-tained.Finally,the operation sequence of the UAF vulnerability can be obtained by performing reachability analysis and data flow analysis on the dangling pointer.The scheme also reduces system overhead in two ways:simplifying inter-procedural analysis to intra-procedural analysis and combining alias analysis algo-rithms with data flow analysis.The experiment results tested on open-source test cases and real programs show that the scheme can quickly and accurately identify UAF vulnerabilities in the code and report the dan-gerous operation sequences.

Dangling pointerLLVMUAFVulnerability detection

许敏、胡勇、李新建

展开 >

四川大学网络空间安全学院,成都 610065

湖北中烟工业有限责任公司,武汉 430040

悬空指针 LLVM UAF 漏洞检测

国家重点研发计划项目

2021YGB3101800

2024

四川大学学报(自然科学版)
四川大学

四川大学学报(自然科学版)

CSTPCD北大核心
影响因子:0.358
ISSN:0490-6756
年,卷(期):2024.61(4)
  • 27