Google has disclosed that the corporate’s continued adoption of the Rust programming language in Android has resulted within the variety of reminiscence security vulnerabilities falling beneath 20% of complete vulnerabilities for the primary time.
“We adopted Rust for its safety and are seeing a 1000x discount in reminiscence security vulnerability density in comparison with Android’s C and C++ code. However the greatest shock was Rust’s affect on software program supply,” Google’s Jeff Vander Stoep mentioned. “With Rust modifications having a 4x decrease rollback fee and spending 25% much less time in code evaluation, the safer path is now additionally the quicker one.”
The event comes a bit of over a 12 months after the tech big disclosed that its transition to Rust led to a decline in reminiscence security vulnerabilities from 223 in 2019 to lower than 50 in 2024.
The corporate identified that Rust code requires fewer revisions, necessitating about 20% fewer revisions than their C++ counterparts, and has contributed to a decreased rollback fee, thereby bettering general improvement throughput.
Google additionally mentioned it is planning to broaden Rust’s “safety and productiveness benefits” to different components of the Android ecosystem, together with kernel, firmware, and important first-party apps like Close by Presence, Message Layer Safety (MLS), and Chromium, which has had its parsers for PNG, JSON, and net fonts changed with memory-safe implementations in Rust.
Moreover, it has emphasised the necessity for a defense-in-depth method, stating that the programming language’s built-in reminiscence security options are only one a part of a complete reminiscence security technique.
For instance, Google highlighted its discovery of a reminiscence security vulnerability (CVE-2025-48530, CVSS rating: 8.1) in CrabbyAVIF, an AVIF (AV1 Picture File) parser/decoder implementation in unsafe Rust, that might have resulted in distant code execution. Whereas the linear buffer overflow flaw by no means made it right into a public launch, it was patched by Google as a part of its Android safety replace for August 2025.
Additional evaluation of the “near-miss” vulnerability discovered that it was rendered non-exploitable by Scudo, a dynamic user-mode reminiscence allocator in Android that is designed to fight heap-related vulnerabilities, similar to buffer overflow, use after free, and double free, with out sacrificing efficiency.
Emphasizing that unsafe Rust is “already actually fairly secure,” Google mentioned the vulnerability density is considerably decrease versus C and C++, including that the incorporation of an “unsafe” code block in Rust does not mechanically disable the programming language’s security checks.
“Whereas C and C++ will persist, and each software program and {hardware} security mechanisms stay important for layered protection, the transition to Rust is a distinct method the place the safer path can be demonstrably extra environment friendly,” it mentioned.

