Android phones are now more secure, thanks to Rust. Rust is a new programming language that helps make Android phones more secure. It was created by Mozilla, the same company that created Firefox, and it’s designed to help developers create safer software. Android is one of the most popular mobile operating systems in the world, and it’s used on millions of devices. Rust helps make Android more secure by making it easier for developers to create safe software. Rust is a new programming language that was created by Mozilla. It’s designed to help developers create safer software. ..
Google published a blog post on its security blog this week, explaining that memory safety vulnerabilities — where buffer overflows and other similar problems in code can allow other software to break out of sandboxes and cause problems — are on the decline in Android phones. The company said, “we see that the number of memory safety vulnerabilities have dropped considerably over the past few years/releases. From 2019 to 2022 the annual number of memory safety vulnerabilities dropped from 223 down to 85.”
So, why the drop in security problems? Google was quick to note that “correlation doesn’t necessarily mean causation,” but the likely culprit is the decision to write much of Android’s newer code in the Rust programming language, rather than older languages like C or C++. Rust enforces memory safety, drastically reducing the possibility of security problems related to memory.
Google revealed in the blog post, “From 2019 to 2022 it has dropped from 76% down to 35% of Android’s total vulnerabilities. 2022 is the first year where memory safety vulnerabilities do not represent a majority of Android’s vulnerabilities.” Rust is still not most of the new code added each year, but it the percentage of Rust code is gradually increasing. Google also noted that, so far, zero security problems have been discovered in Android’s Rust code.
There are still many other possible security problems outside of memory safety issues, but it seems like Android phones and tablets are safer because of the transition to Rust. That’s certainly worth celebrating.
Source: Google Security Blog