The Adoption of Memory-Safe Code Has Increased Android’s Security

Published:

Cyber Warriors Conclave — nine editions, one cyber safe nation

Memory Safety Improvements in Android: A Secure-By-Design Approach pays off

The number of memory-related vulnerabilities in Android has seen a significant decrease over the past five years, thanks to Google’s adoption of a secure-by-design approach that prioritizes memory-safe languages like Rust for new code.

According to a recent blog post by researchers from Google’s Android and security teams, memory safety issues such as buffer overflows and use-after-free bugs now only make up 24% of all Android vulnerabilities, compared to 76% in 2019. The total number of Android memory-related vulnerabilities for 2024 is projected to be 36, which is half the number from last year and a vast improvement from the 223 flaws reported in 2019.

The transition to memory-safe languages like Rust has been instrumental in reducing memory-related bugs in Android. While traditional programming languages like C and C++ allow for direct memory manipulation, leading to potential errors, memory-safe languages feature automatic memory management and built-in safety checks. This shift has been gradual, with Google introducing Rust support in Android 12 and increasing the use of the language in subsequent versions.

Google’s approach involves using memory-safe languages for new features while making bug fixes to existing code written in memory-unsafe languages. The company aims to gradually transition to memory-safe languages over time, recognizing the importance of improving memory safety to enhance overall security. With a decline in memory-related vulnerabilities, Google’s secure-by-design approach seems to be paying off, setting a positive trend for the future of Android security.

Cyber Warriors Conclave Chapter X — Beyond the Ballroom

Related articles

Recent articles

US Senator Requests NSA Guidance on Best Practices for VPN Use Against Foreign Surveillance

A prominent US senator is urging the National Security Agency (NSA) to provide public guidance on best practices for using virtual private networks (VPNs)...

Cisco Patches Critical Nexus 9000 Vulnerability Allowing Remote Code Execution as Root

Cisco has released patches to address a critical security flaw affecting 10 Silicon One-based Nexus 9000 switches that could allow an unauthenticated, remote attacker...

BREEZE COMET Threat Actor Targets Brazilian Financial Sector with Sophisticated Attacks

BREEZE COMET: A Rising Threat to Brazil's Financial Sector In 2024, Mandiant began investigating a series of cyber compromises targeting Brazilian financial services, retail, and...

Dropbox Reports Compromise of 5,000 Accounts Due to Legacy Login Vulnerability

Dropbox has reported that approximately 5,000 accounts were compromised last month due to a legacy login vulnerability associated with Lenovo IDs. This breach allowed...