Ubuntu 20.04 could be hacked using this security flaw

security
(Image credit: Shutterstock / Magura)

A security researcher claims to have accidentally discovered an "astonishingly straightforward way” to gain administrative powers on an Ubuntu 20.04 LTS installation.

The vulnerability was unearthed by GitHub’s Kevin Backhouse who’s been spending time to weed out security vulnerabilities in Ubuntu’s system services to make his favourite distro as secure as possible.

He admits that while he’s reported a few issues, most of them have been fairly trivial. That was until he unearthed this one. “It's unusual for a vulnerability on a modern operating system to be this easy to exploit,” writes Kevin. 

Trick for treat

Exploiting privilege escalation vulnerabilities is a fairly complicated process. However, Kevin discovered a mechanism to trick an Ubuntu installation to allow a standard user to create accounts with increased privileges.

Kevin has detailed the process in a blog and has also posted a video of the process, which is easy to replicate. Of course, as Kevin notes, an attacker would need physical access to the Ubuntu machine. The attack also exploits vulnerabilities in the Gnome Display Manager, which means it would only work on Ubuntu 20.04 desktop installations.

The vulnerability exploits two bugs in different components of an Ubuntu installation. One is a service that manages user accounts (accountsservice) and the other is the Gnome Display Manager (gdm3) that’s responsible for the login screen.

Ubuntu is not the only distro to use gdm3. However the vulnerability doesn’t affect others since Ubuntu uses a modified version of accountsservice. 

This also makes the vulnerability easy to fix, something which the Ubuntu developers have already done. If you are running Ubuntu 18.04, 20.04 or 20.10 you should immediately update the gdm3 package from the repositories.

TOPICS
Mayank Sharma

With almost two decades of writing and reporting on Linux, Mayank Sharma would like everyone to think he’s TechRadar Pro’s expert on the topic. Of course, he’s just as interested in other computing topics, particularly cybersecurity, cloud, containers, and coding.

Latest in Security
Insecure network with several red platforms connected through glowing data lines and a black hat hacker symbol
Coinbase targeted after recent Github attacks
hacker.jpeg
Key trusted Microsoft platform exploited to enable malware, experts warn
IBM office logo
IBM to provide platform for flagship cyber skills programme for girls
Oracle
Oracle denies data breach after hacker claims to hold six million records
Hacker silhouette working on a laptop with North Korean flag on the background
North Korea unveils new military unit targeting AI attacks
An image of network security icons for a network encircling a digital blue earth.
US government warns agencies to make sure their backups are safe from NAKIVO security issue
Latest in News
A phone showing a ChatGPT app error message
ChatGPT is down for many – here's what's going on
AirPods Max with USB-C in every color
Apple's AirPods Max with USB-C will get lossless audio in April, but you'll need to go wired
A woman sitting in a chair looking at a Windows 11 laptop
It looks like Microsoft might have thought better about banishing Copilot AI shortcut from Windows 11
US flags
US government IT contracts set to be centralized in new Trump order
Tesla Roadster 2
Tesla is still taking deposits on its long overdue Roadster, despite promising it would arrive in 2020
Samsung HW-Q990D soundbar with Halloween theme over the top
Samsung promises to repair soundbars bricked by its disastrous software update for free – but it'll probably involve shipping