Itdaily - Bug in Linux gives root access to local users

Bug in Linux gives root access to local users

Close-up of a blue-painted metal pipe with heavy rust and corrosion inside.

A new dangerous vulnerability in Linux allows local users to execute code with root privileges with fairly little effort. The bug was named dirty pipe.

Security researchers discovered a vulnerability in the Linux kernel. Dirty pipe, as the bug is called, allows users with limited local access to escalate their own privileges and execute code at the root level. The vulnerability affects Linux Kernel 5.8 and more recently, regardless of the specific distribution. Even Android would be susceptible to dirty pipe.

The bug is given code CVE-2022-0847. It allows users without privileges to inject data into read-only files. They can also overwrite them. By injecting their own data into sensitive files, a hacker can remove restrictions and escalate their access.

Easy to exploit

Security researcher Phith0n demonstrated how it is possible to manipulate the etc/passwd file so that the root user no longer has a password. Once successful, the attacker can run su root to gain access himself. Another researcher launched a public exploit that is even simpler.

The vulnerability was responsibly communicated to several maintainers on Feb. 20. Linux kernels 5.16.11, 5.15.26 and 5.10.102 contain a patch and are no longer vulnerable. However, the patch is relatively recent, so there undoubtedly still exists a multitude of servers currently running an outdated vulnerable version of Linux.

Since the bug is easy to exploit, you can be sure that criminals are ready to exploit dirty pipe. Fast patching, as usual, is the message.