Most Viewed Content:

OpenAI Launched Assistants API, Allowing Developers to Customize AI Assistants with One Click

At today's OpenAI's first developer conference, OpenAI launched the...

Toyota responds to continued production cuts in the next 3 months: easing pressure on dealer earnings

In response to the news that "production will continue...

India’s censorship body gave power to remove pirated Movies from platforms

India’s Ministry of Information and Broadcasting announced that its...

Google Says Android Memory Safety Vulnerabilities Dropped Significantly After Using Rust Language

Last year, Google made Rust the default code for new code in the Android Open Source Project (AOSP), a move that appears to be paying off as Google says memory security vulnerabilities in Android have been reduced by more than half.

Image source Pexels

Google says that “the number of memory security vulnerabilities has dropped significantly over the last few years/versions”. Specifically, the number of memory security vulnerabilities has dropped from 223 to 85 per year between 2019 and 2022. Memory security vulnerabilities are now 35% of the total vulnerabilities in Android, compared to 76% four years ago. In fact, “2022 is the first year in which memory security vulnerabilities do not make up the majority of Android vulnerabilities.”

Android 13 is the first version of Android to include mostly new code in a memory-safe language, with the Rust language accounting for 21% of all new native code in this version, including the Ultra Wide Band (UWB) stack, DNS-over-HTTP3, Keystore2, Android’s Virtualization Framework (AVF), and “various other components and their open-source dependencies”.

In addition to Rust, Google’s other memory-safe languages for Android include Java and Kotlin, which is compatible with Java. C and C++ are still the dominant languages in AOSP, but Android 13 is the first version where most of the new code comes from memory-safe languages.

Android security software engineer Jeffrey Vander Stoep pointed out that the Android team plans to increase the use of Rust, although there are no plans to completely abandon C and C++ in system programming. “Rust isn’t the answer to everything, and there are areas where C/C++ will continue to be the most practical development choice, at least for a while,” he noted in a tweet. Reduce this over time while continuing to scale our Rust usage and continue investing in and deploying improvements to C/C++.”

Vander Stoep pointed out that correlation does not equate to causation, but the percentage of memory safety vulnerabilities does correlate closely with the language used by the new code.

He went on to point out that in Android 13, there are a total of 1.5 million lines of Rust code, accounting for about 21% of all new code. So far, Google hasn’t found any memory safety flaws in Android’s Rust code. Vander Stoep noted, “This shows that Rust is fulfilling its intended purpose of preventing Android’s most common vulnerabilities. In many C/C++ components of Android (such as media, Bluetooth, NFC, etc.), the historical vulnerability density is greater than 1/ kLOC (one vulnerability per thousand lines of code). Based on this historical vulnerability density, using Rust has likely prevented hundreds of vulnerabilities.”

Google sees moving away from C/C++ as a challenge but is moving forward with the project for Android. However, it does not use the Rust language on Chrome.

It is reported that Rust is a system programming language that focuses on security, especially concurrency security, and supports multi-paradigm languages such as functional, imperative, and generic programming paradigms. Rust is syntactically similar to C++, but the designers wanted to provide better memory safety while maintaining performance.

Latest

Preview of Volkswagen’s new concept car debuting at Beijing Auto Show

Recently, we learned from the official Volkswagen China that...

More information on GAC Aion AY5 revealed, to unveil at Beijing Auto Show

GAC Aion will release a new pure electric SUV...

Citroen C3 Aircross compact SUV available in fuel, hybrid and electric variants

Citroen a subsidiary of Stellantis, recently previewed a new...

Smart #5 concept car manuscript released: To unveil on April 25

Smart China today released the manuscript drawing of the...

Newsletter

Don't miss

Preview of Volkswagen’s new concept car debuting at Beijing Auto Show

Recently, we learned from the official Volkswagen China that...

More information on GAC Aion AY5 revealed, to unveil at Beijing Auto Show

GAC Aion will release a new pure electric SUV...

Citroen C3 Aircross compact SUV available in fuel, hybrid and electric variants

Citroen a subsidiary of Stellantis, recently previewed a new...

Smart #5 concept car manuscript released: To unveil on April 25

Smart China today released the manuscript drawing of the...

iQOO Z9 and Z9 Turbo phones will be equipped with 1.5K Huaxing C8 screen

iQOO officially announced today that the upcoming iQOO Z9...
James Lopez
James Lopezhttps://www.techgoing.com
James Lopez joined Techgoing as Senior News Editor in 2022. He's been a tech blogger since before the word was invented, and will never log off.

Report: 25% of Samsung Galaxy S24 Users Bought Phone for Galaxy AI Features

Samsung’s Galaxy AI marketing can basically be considered a success. The latest research report pointed out that 25% of Galaxy S24 series phone consumers...

Hongqi’s new large sedan L1 declaration, 3.0T / 4.0T hybrid added

The new Hongqi L1 sedan appeared in the latest batch of new car declaration lists of the Ministry of Industry and Information Technology. The...

Vivo Y series new device specs exposed: Snapdragon 7 Gen 3, 6000mAh battery

Blogger @digitalchat.com broke the news today about the configuration of the new Vivo Y series phones: 6.78-inch 1.5K OLED screen: 2800 x 1260, CSOT C8...