Article Details
Scrape Timestamp (UTC): 2025-11-17 06:04:19.597
Source: https://thehackernews.com/2025/11/rust-adoption-drives-android-memory.html
Original Article Text
Click to Toggle View
Rust Adoption Drives Android Memory Safety Bugs Below 20% for First Time. Google has disclosed that the company's continued adoption of the Rust programming language in Android has resulted in the number of memory safety vulnerabilities falling below 20% for the first time. "We adopted Rust for its security and are seeing a 1000x reduction in memory safety vulnerability density compared to Android's C and C++ code. But the biggest surprise was Rust's impact on software delivery," Google's Jeff Vander Stoep said. "With Rust changes having a 4x lower rollback rate and spending 25% less time in code review, the safer path is now also the faster one." The development comes a little over a year after the tech giant disclosed that its transition to Rust led to a decline in memory safety vulnerabilities from 223 in 2019 to less than 50 in 2024. The company pointed out that Rust code requires fewer revisions, necessitating about 20% fewer revisions than their C++ counterparts, and has contributed to a decreased rollback rate, thereby improving overall development throughput. Google also said it's planning to expand Rust's "security and productivity advantages" to other parts of the Android ecosystem, including kernel, firmware, and critical first-party apps like Nearby Presence, Message Layer Security (MLS), and Chromium, which has had its parsers for PNG, JSON, and web fonts replaced with memory-safe implementations in Rust. Furthermore, it has emphasized the need for a defense-in-depth approach, stating that the programming language's built-in memory safety features are just one part of a comprehensive memory safety strategy. As an example, Google highlighted its discovery of a memory safety vulnerability (CVE-2025-48530, CVSS score: 8.1) in CrabbyAVIF, an AVIF (AV1 Image File) parser/decoder implementation in unsafe Rust, that could have resulted in remote code execution. While the linear buffer overflow flaw never made it into a public release, it was patched by Google as part of its Android security update for August 2025. Further analysis of the "near-miss" vulnerability found that it was rendered non-exploitable by Scudo, a dynamic user-mode memory allocator in Android that's designed to combat heap-related vulnerabilities, such as buffer overflow, use after free, and double free, without sacrificing performance. Emphasizing that unsafe Rust is "already really quite safe," Google said the vulnerability density is significantly lower as opposed to C and C++, adding that the incorporation of an "unsafe" code block in Rust doesn't automatically disable the programming language's safety checks. "While C and C++ will persist, and both software and hardware safety mechanisms remain critical for layered defense, the transition to Rust is a different approach where the more secure path is also demonstrably more efficient," it said.
Daily Brief Summary
Google announced a reduction in Android memory safety vulnerabilities to below 20% due to adopting the Rust programming language, enhancing security and efficiency.
Rust's implementation resulted in a 1000x reduction in memory safety vulnerability density compared to Android's previous C and C++ codebases.
The transition to Rust has improved software delivery, with changes experiencing a 4x lower rollback rate and 25% less time in code review.
Google plans to extend Rust's security benefits to other Android components, including kernel, firmware, and critical apps like Nearby Presence and Chromium.
A memory safety vulnerability (CVE-2025-48530) in an unsafe Rust implementation was patched before public release, demonstrating Rust's robust safety features.
The incident underscores the importance of layered defense strategies, combining Rust's built-in safety with other security mechanisms like Scudo.
Despite Rust's advantages, Google acknowledges that C and C++ will continue to play roles in Android's development, emphasizing a balanced approach to security.