arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.12900cs.CR
收藏

C语言时间存储安全的胖指针

Fat Pointers for Temporal Memory Safety of C

Jie Zhou, John Criswell, Michael Hicks

摘要:

临时内存安全漏洞,特别是释放后使用和双重释放漏洞,对C程序构成了重大的安全威胁。利用这些漏洞的现实攻击使攻击者能够读取和写入任意内存位置,从而导致对机密性、完整性和可用性的灾难性侵犯。许多先前的解决方案将临时存储器安全改进到C,但是它们都招致高性能开销和/或错过检测某些类型的临时存储器安全错误。在本文中,我们提出了一个时间记忆安全的解决方案,既有效又全面。具体来说,我们扩展了C语言的一个空间安全的扩展,它具有时间安全的指针。这些是通过结合两种技术实现的:胖指针和动态键锁检查。我们表明,脂肪指针的解决方案显着提高了运行时间和内存开销相比,不相交的元数据的方法,提供相同级别的保护。经验的程序数据和实践经验移植现实世界的应用程序,我们还表明,我们的解决方案是实用的向后兼容性-一个主要的抱怨胖指针。

英文摘要:

Temporal memory safety bugs, especially use-after-free and double free bugs, pose a major security threat to C programs. Real-world exploits utilizing these bugs enable attackers to read and write arbitrary memory locations, causing disastrous violations of confidentiality, integrity, and availability. Many previous solutions retrofit temporal memory safety to C, but they all either incur high performance overhead and/or miss detecting certain types of temporal memory safety bugs. In this paper, we propose a temporal memory safety solution that is both efficient and comprehensive. Specifically, we extend Checked C, a spatially-safe extension to C, with temporally-safe pointers. These are implemented by combining two techniques: fat pointers and dynamic key-lock checks. We show that the fat-pointer solution significantly improves running time and memory overhead compared to the disjoint-metadata approach that provides the same level of protection. With empirical program data and hands-on experience porting real-world applications, we also show that our solution is practical in terms of backward compatibility -- one of the major complaints about fat pointers.

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

↑