Metraipolis › archive › dc_f83a51554418
UnsafeChecker: Finding Soundness Bugs in Rust Safe Abstractions — arXiv:2609.09641
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.09641
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T11:20:42.886Z
- SHA-256 of the archived text
b329c055708bd861e11aa65afffb5fd284b1330966795c895fe084918aeb4772- Stable URL of this page
https://metraipolis.com/documento/dc_f83a51554418
How to cite
UnsafeChecker: Finding Soundness Bugs in Rust Safe Abstractions — arXiv:2609.09641 — arXiv (en), https://arxiv.org/abs/2609.09641 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_f83a51554418 (Metraipolis archive dc_f83a51554418, sha256 b329c055708bd861e11aa65afffb5fd284b1330966795c895fe084918aeb4772)
BibTeX
@misc{dcf83a51554418,
title = {UnsafeChecker: Finding Soundness Bugs in Rust Safe Abstractions — arXiv:2609.09641},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.09641},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_f83a51554418; sha256 b329c055708bd861e11aa65afffb5fd284b1330966795c895fe084918aeb4772},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.09641. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Rust guarantees memory safety without garbage collection through a strict ownership and borrowing system. However, for low-level systems programming, many widely used libraries rely on the unsafe keyword. These libraries encapsulate raw-pointer operations behind safe APIs to form safe abstractions. A single mistake in this internal unsafe code can break its safety contract, rendering the abstraction unsound and allowing safe clients to trigger undefined behavior. Detecting these potential soundness violations is challenging. Existing static analysis tools for C/C++ ignore Rust-specific safety contracts, while current Rust tools lack the deep semantic modeling required to track the contexts that raw pointers erase. To address this gap, we present UnsafeChecker, a compiler-integrated static analysis framework for detecting potential soundness violations in Rust safe abstractions. UnsafeChecker analyzes Rust MIR using a flow-sensitive abstract interpretation that maintains a shared state with three components: ownership, object validity, and layout. Each warning rule consumes the subset of facts needed for the corresponding Rust safety obligation. UnsafeChecker reports both instruction-level undefined behavior and boundary-level contract violations that may escape through safe APIs. We evaluate UnsafeChecker on a benchmark of 46 RustSec vulnerabilities, which contain 53 ground-truth bugs. UnsafeChecker outperforms several state-of-the-art tools, detecting 32 CVEs and covering 36 bugs (67.9% recall) with 51.6% alert-level precision. Furthermore, in a large-scale scan of real-world crates on this http URL , UnsafeChecker uncovered 114 previously unknown bugs across 83 crates, with 45 confirmed and 27 already fixed by maintainers. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-10 in cs.PL). Categorie arXiv: Programming Languages (cs.PL). Pagina del lavoro: https://arxiv.org/abs/2609.09641 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-16T10:57:13.863Z dalla pagina https://arxiv.org/catchup/cs.PL/2026-09-10?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).