Google Adopts Rust for Android, Slashes Memory Safety Vulnerabilities by 68%
September 25, 2024Google's recent decision to adopt Rust, a memory-safe programming language, for new Android code has significantly reduced memory safety vulnerabilities.
Despite these advancements, Google acknowledges that a fully scalable and sustainable solution for managing risks has yet to be achieved.
The strategy aims to prevent the introduction of new vulnerabilities, leading to an exponential improvement in the overall safety of existing code.
Memory safety flaws are particularly severe and more likely to be exploited remotely, prompting a shift in development practices.
The US Cybersecurity and Infrastructure Agency (CISA) has advocated for the adoption of memory-safe languages, highlighting that many critical open-source projects still rely on memory-unsafe languages.
Google's focus on Safe Coding principles for new features enhances security and is both scalable and cost-effective.
This transition to memory-safe languages represents a significant shift in Google's security approach, moving from reactive patching to proactive measures.
Google outlines four main stages in addressing memory safety flaws: reactive patching, proactive mitigations, proactive vulnerability discovery, and high-assurance prevention through secure coding practices.
Research indicates that the average lifetime of a vulnerability is around four years, with most vulnerabilities found in new or recently modified code.
To avoid extensive rewrites, Google is working on interoperability between Rust, C++, and Kotlin, which will help eliminate certain classes of vulnerabilities.
The decline in vulnerabilities is attributed to the natural decay of vulnerabilities as code is reviewed and updated over time.
Since 2022, Google has reported a consistent decline in total memory safety vulnerabilities, with a reduction of over 68% in five years, positioning Android below the 70% vulnerability rate found in Chromium.
Summary based on 6 sources
Get a daily email with more Tech stories
Sources
TechRadar pro • Sep 26, 2024
Google hails move to Rust for huge drop in memory vulnerabilitiesBleepingComputer • Sep 25, 2024
Google sees 68% drop in Android memory safety flaws over 5 yearsThe Hacker News • Sep 25, 2024
Google's Shift to Rust Programming Cuts Android Memory Vulnerabilities by 52%The Register • Sep 25, 2024
Google's Rust belts bugs out of Android, helps kill off unsafe code substantially