Aug 2026· International Test Conference in Asia· pp. 1-6· 0 citations· 20 references
TL;DR
This paper implements a prototype of FFIProbe, a technique that enables dynamic analysis for effectively detecting memory safety bugs in multilingual Rust programs, and designs a custom heap allocator that proxies memory allocation requests from both Rust and foreign languages.
Abstract
Rust has emerged as a promising systems programming language for security-critical domains, offering effective protection against memory safety issues through its strong type system and ownership model. However, practical multilingual Rust applications that interact with unsafe languages such as C/C++ via the Foreign Function Interface (FFI) can undermine Rust’s security guarantees because the integration of disparate memory management mechanisms often circumvents Rust’s compiler safety checks, rendering the interaction boundaries highly error-prone.In this paper, we propose FFIProbe, a technique that enables dynamic analysis for effectively detecting memory safety bugs in multilingual Rust programs. Specifically, we utilize Rust’s mid-level intermediate representation (MIR) as the instrumentation target, statically instrument probe functions for raw pointer operations at multilingual interaction boundaries, and identify memory safety bugs arising from memory objects in illegal states during program execution. To facilitate accurate tracking of memory object states, we also design a custom heap allocator that proxies memory allocation requests from both Rust and foreign languages, while maintaining metadata for allocated memory objects to support probe functions in identifying bugs at runtime. We implement a prototype of FFIProbe and conduct extensive experiments to evaluate its practical effectiveness and performance on 2,635 real-world multilingual Rust packages. Our evaluation detects 43 memory safety bugs across 29 packages, while introducing an average runtime overhead of 25.6% and a memory overhead of 33.2%.
Rust has emerged as the leading system programming language, offering strong memory and type safety guarantees without compromising performance. This positions it as a compelling alternative to traditional languages like C and C++, which are susceptible to memory security bugs. However, manually transforming C to Rust...
Hung-Mao Chen, Xu He, Bo Lu et al.· arXiv.org· 0 citations
UnsafeChecker is presented, a compiler-integrated static analysis framework for detecting potential soundness violations in Rust safe abstractions, and outperforms several state-of-the-art tools, detecting 32 CVEs and covering 36 bugs with 51.6% alert-level precision.
Xi-Zhe Yin, Yao Zhang, Yang Feng et al.· 0 citations
Rust's type system protects safe code, but many low-level abstractions depend on internal unsafe operations whose correctness rests on memory and logical invariants. In struct-based abstractions, a sibling method may legally modify internal fields while invalidating a precondition required by another method's unsafe op...
Zi-Hao Rao, Yi-Lin Chen, Cheng-Jun Chen et al.· Proceedings of the 41st IEEE...· 0 citations
Memory-safety vulnerabilities remain a persistent source of security risk in critical software, much of which is implemented in memory-unsafe languages such as C and C++. Recent advances in programming languages, program analysis, and artificial intelligence have created new opportunities to modernize these legacy syst...
Hamed Okhravi, Brandt Ogden, Noah Luther et al.· 0 citations
Memory-unsafe languages remain the dominant root cause of severe software vulnerabilities, and national cybersecurity guidance now treats migration to memory-safe languages as a structural requirement. Automated C-to-Rust translation reports four to five percent runtime overhead, but on small programs that avoid dynami...
Juan P. Licona-Luque, L. Muñoz-Ubando, M. A. Romo-Chavero et al.· IEEE Access· 0 citations
This work presents zBulk, an automatic compartmentalization system that requires zero retrofitting to application code and paves the way for flexible fine-grained compartmentalization, and shows how to design zBulk, leveraging rustc's intermediate representations.
Maxim Ritter von Onciul, Phillip Raffeck, Peter Wägemann et al.· Programming Languages and Op...· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.