|
|
Log in / Subscribe / Register

Permissions problem on affected distros

Permissions problem on affected distros

Posted Apr 30, 2026 4:19 UTC (Thu) by wtarreau (subscriber, #51152)
Parent article: A security bug in AEAD sockets

> f=g.open("/usr/bin/su",0)

On my servers:
$ find / -xdev -perm -4000 -printf "%M %p\n" 2>/dev/null
-rwsr-x--x /bin/mount
-rws--x--x /bin/ping
-rws--x--x /bin/ping6
-rwsr-x--x /bin/su
-rwsr-x--x /bin/umount
-r-sr-x--x /usr/bin/crontab
-rwsr-x--x /usr/bin/passwd
---s--x--x /usr/bin/sudo

IMHO there is zero reason for leaving a setuid binary world-readable. I started doing this 30 years ago after I found myself as a student able to disassemble them to attack them (though with availability of standard distros nowadays this is no longer a protection), but it still protects against local rootkits that search for patterns or signatures to deliver a different payload. And here it will just make the exploit fail since an unprivileged user doesn't have the permissions to open the file. With that said, it's sufficient to find *one* setuid binary to enable the exploit but on a sane system there should be zero both setuid and world readable.

Looking at my systems on Slackware, most setuid binaries (including /bin/su) are not readable either, though some are. Thus the "every distro since 2017" on the site is a bit exaggerated, it's probably "most major distros".


to post comments

Permissions problem on affected distros

Posted Apr 30, 2026 4:38 UTC (Thu) by sam_c (subscriber, #139836) [Link] (1 responses)

Note that the PoC relies on suid binaries, but it is not required for this. It can poison any file, like /etc/passwd in https://github.com/rootsecdev/cve_2026_31431/blob/main/ex...

Your suggestion is probably wise to follow nonetheless, though.

Permissions problem on affected distros

Posted Apr 30, 2026 6:14 UTC (Thu) by wtarreau (subscriber, #51152) [Link]

Ah yes, /etc/passwd indeed remains a great target for this :-)

Permissions problem on affected distros

Posted Apr 30, 2026 6:16 UTC (Thu) by k3ninho (subscriber, #50375) [Link]

They note that the containerisation technologies also mean it's any write can cross the boundary, even from an unprivileged container.

K3n.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds