跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2003.03296 (cs)
[提交于 2020年4月12日 (v1),最后修订于 2021年2月25日 (此版本, v6)]

标题:Memory-Safety Challenge Considered Solved? An In-Depth Study with All Rust CVEs

作者:Hui Xu, Zhuangbin Chen, Mingshen Sun, Yangfan Zhou, Michael Lyu
查看论文《Memory-Safety Challenge Considered Solved? An In-Depth Study with All Rust CVEs》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Rust is an emerging programing language that aims at preventing memory-safety bugs without sacrificing much efficiency. The claimed property is very attractive to developers, and many projects start using the language. However, can Rust achieve the memory-safety promise? This paper studies the question by surveying 186 real-world bug reports collected from several origins which contain all existing Rust CVEs (common vulnerability and exposures) of memory-safety issues by 2020-12-31. We manually analyze each bug and extract their culprit patterns. Our analysis result shows that Rust can keep its promise that all memory-safety bugs require unsafe code, and many memory-safety bugs in our dataset are mild soundness issues that only leave a possibility to write memory-safety bugs without unsafe code. Furthermore, we summarize three typical categories of memory-safety bugs, including automatic memory reclaim, unsound function, and unsound generic or trait. While automatic memory claim bugs are related to the side effect of Rust newly-adopted ownership-based resource management scheme, unsound function reveals the essential challenge of Rust development for avoiding unsound code, and unsound generic or trait intensifies the risk of introducing unsoundness. Based on these findings, we propose two promising directions towards improving the security of Rust development, including several best practices of using specific APIs and methods to detect particular bugs involving unsafe code. Our work intends to raise more discussions regarding the memory-safety issues of Rust and facilitate the maturity of the language.
主题: 程序设计语言 (cs.PL); 密码学与安全 (cs.CR); 软件工程 (cs.SE)
引用方式: arXiv:2003.03296 [cs.PL]
  (或者 arXiv:2003.03296v6 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2003.03296

提交历史

来自:Hui Xu
[v2] 2020年4月12日 星期日 14:44:13 UTC
[v4] 2020年9月30日 星期三 06:57:44 UTC
[v6] 2021年2月25日 星期四 01:45:19 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2021-02
切换浏览方式为:
cs.PL
cs.CR
cs.SE

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站