this post was submitted on 29 Apr 2026
221 points (100.0% liked)

Linux

64958 readers
384 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] BradleyUffner@lemmy.world 6 points 20 hours ago* (last edited 20 hours ago) (1 children)

Does it have to actually be su? Couldn't this replace any other existing privileged program with the fake su in theory?

[–] sun_is_ra@sh.itjust.works 9 points 19 hours ago* (last edited 19 hours ago)

In order to use this exploit you need a program that has UID bit set and the file owned by the user you want to use itheir privilages.

For example su (among other commands) has that UID bit set and because the owner of the file is root then when you execute it, it always runs with root privileges

Most Android devices use SELinux (Security Enhanced Linux) which is configured in such way that you couldn't have root access even if you could run a program owned by root and has the UID bit set.

What you could do - in theory - is finding a process already running with root privileges and happened to be executing certain command periodically. you could then override that certain program in cache using this exploit to do what you want.