HomeVulnerabilityRust Adoption Drives Android Reminiscence Security Bugs Beneath 20% for First Time

Rust Adoption Drives Android Reminiscence Security Bugs Beneath 20% for First Time

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 under 20% for the primary time.

“We adopted Rust for its security and are seeing a 1000x discount in reminiscence security vulnerability density in comparison with Android’s C and C++ code. However the largest shock was Rust’s impression on software program supply,” Google’s Jeff Vander Stoep mentioned. “With Rust modifications having a 4x decrease rollback price and spending 25% much less time in code evaluate, the safer path is now additionally the quicker one.”

The event comes somewhat over a yr 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.

DFIR Retainer Services

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 price, thereby bettering total improvement throughput.

See also  Okta’s new security commonplace to be adopted by Google, Microsoft

Google additionally mentioned it is planning to develop Rust’s “security and productiveness benefits” to different elements of the Android ecosystem, together with kernel, firmware, and significant first-party apps like Close by Presence, Message Layer Safety (MLS), and Chromium, which has had its parsers for PNG, JSON, and internet fonts changed with memory-safe implementations in Rust.

Moreover, it has emphasised the necessity for a defense-in-depth strategy, stating that the programming language’s built-in reminiscence security options are only one a part of a complete reminiscence security technique.

For example, 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 security replace for August 2025.

CIS Build Kits

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, reminiscent of buffer overflow, use after free, and double free, with out sacrificing efficiency.

See also  macOS 14 Sonoma Patches 60 Vulnerabilities

Emphasizing that unsafe Rust is “already actually fairly protected,” Google mentioned the vulnerability density is considerably decrease versus C and C++, including that the incorporation of an “unsafe” code block in Rust would not robotically disable the programming language’s security checks.

“Whereas C and C++ will persist, and each software program and {hardware} security mechanisms stay essential for layered protection, the transition to Rust is a special strategy the place the safer path can be demonstrably extra environment friendly,” it mentioned.

- Advertisment -spot_img
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular