Google has announced a significant milestone in its Android development, with the adoption of the Rust programming language now contributing to memory safety vulnerabilities falling below 20% for the first time. This shift represents a substantial improvement in the security posture of the widely used mobile operating system.
The company revealed that the integration of Rust has led to a remarkable 1000x reduction in memory safety vulnerability density when compared to Android’s legacy C and C++ code. Jeff Vander Stoep, speaking for Google, highlighted not only the security benefits but also an unexpected boost in software delivery efficiency, noting a four-fold decrease in rollback rates and a 25% reduction in code review time, suggesting that a more secure development path is also a faster one.
Android’s Rust Transition Yields Dramatic Memory Safety Improvements
This latest announcement builds upon progress shared by Google just over a year ago, when the tech giant first detailed the impact of its transition to Rust. At that time, they reported a decline in memory safety vulnerabilities from 223 in 2019 to less than 50 by 2024. The continued adoption of Rust has now pushed this figure below the 20% threshold, a clear indicator of the programming language’s effectiveness in mitigating common security flaws.
In addition to reducing the incidence of vulnerabilities, Google has observed that Rust code requires fewer revisions. According to their findings, approximately 20% fewer revisions are needed for Rust code compared to its C++ counterparts. This efficiency, coupled with a decreased rollback rate, has demonstrably improved the overall development throughput for the Android platform.
Expanding Rust’s Influence Across the Android Ecosystem
Google has expressed its intention to extend the security and productivity advantages offered by Rust to other critical areas of the Android ecosystem. Future plans include integrating Rust into the kernel, firmware, and key first-party applications such as Nearby Presence and Message Layer Security (MLS). Furthermore, Chromium, the browser engine underpinning Android’s web capabilities, has already seen its parsers for PNG, JSON, and web fonts replaced with memory-safe implementations written in Rust.
The company also stressed the importance of a comprehensive defense-in-depth strategy, emphasizing that Rust’s built-in memory safety features are merely one component of a larger security framework. This multi-layered approach is crucial for robust mobile security.
Unsafe Rust and Advanced Allocation Safeguards
Illustrating the nuances of memory safety, Google detailed the discovery of CVE-2025-48530, a memory safety vulnerability with a CVSS score of 8.1 found in CrabbyAVIF, an AVIF parser and decoder implemented in what is termed “unsafe Rust.” This flaw, which could have potentially led to remote code execution, was identified before its inclusion in a public release and was subsequently patched by Google as part of its August 2025 Android security update. The vulnerability was ultimately rendered non-exploitable due to Scudo, Android’s dynamic user-mode memory allocator, which is specifically designed to combat heap-related vulnerabilities like buffer overflows and use-after-free errors without compromising performance.
Google clarified that even “unsafe Rust” code is significantly safer than comparable C and C++ code. The presence of an “unsafe” code block in Rust does not deactivate the language’s inherent safety checks. This means that while C and C++ will continue to be used and hardware and software safety mechanisms remain vital, the strategic move towards Rust in Android development offers a path that is not only more secure but also demonstrably more efficient.
Looking ahead, the ongoing integration of Rust across the Android platform is expected to further solidify its security foundation. While the complete transition will take time, the trend indicates a continued reduction in memory safety vulnerabilities, reinforcing Android’s position as a more secure mobile operating system. Developers and security professionals will be watching for the impact of Rust’s adoption in other critical system components.

