Impact of Rust Adoption on Android Memory Safety
Regulatory & Policy · 2 sources · Updated 5mo ago · First seen Nov 18, 2025

Google has reported a significant reduction in memory safety vulnerabilities in Android, attributing this improvement to the adoption of the Rust programming language. According to Google, the proportion of memory safety bugs in Android has dropped below 20% for the first time, with Rust code demonstrating a 1000x reduction in vulnerability density compared to C and C++. The transition to Rust has also led to operational benefits, such as a lower rollback rate and faster code review cycles, and Google plans to expand Rust's use to additional components of the Android ecosystem, including the kernel, firmware, and key applications.
Security experts emphasize that secure coding should focus on principles like secure by default and secure by design, rather than simply identifying vulnerabilities. The integration of Rust into Android's codebase exemplifies how adopting memory-safe languages can serve as a practical application of these secure coding principles, reducing the burden on developers and improving overall software security. Google's experience also highlights the importance of a defense-in-depth approach, as even memory-safe languages like Rust can have vulnerabilities if unsafe code is used, as demonstrated by the discovery and patching of a buffer overflow in the CrabbyAVIF parser before public release.

