Live data from Hacker News

New Linux udisks flaw lets attackers get root on major Linux distros

bleepingcomputer.com

191–200 of 287 posts

Re: New Linux udisks flaw lets attackers get root on major Linux distros

#191

Awww. I was just about to gloat about Slackware avoiding another round of security holes due to its long avoidance of PAM, but it got introduced in 2020. :-( It looks like some software projects are now entirely reliant upon PAM for authentication and don't support shadow passwords anymore. What a travesty. It's sort of like what happened with Systemd, where so many apps now entirely depend on Systemd, you can't run…

> reliant upon PAM for authentication and don't support shadow passwords PAM supports a shadow password file as its default configuration. Did you mean something else?

They mean that they can't use shadow passwords wihout PAM (i.e. the way most unix systems worked circa 1990).

Re: New Linux udisks flaw lets attackers get root on major Linux distros

#192
post #112
post #82

Another case of environment variables causing LPE. Wonder if we'll ever end up with something more robust for passing details between processes than parsing ambient settings from strings.

NO, this is NOT environment variables. It's the wrong argument to a tool, but the suid part has nothing to do with environment variables or cleaning the env up. PLEASE STOP SPREADING FUD.

Relax, someone else already explained it without shouting.

Re: New Linux udisks flaw lets attackers get root on major Linux distros

#193
post #70
post #6

Earlier quoted context omitted.

Local root privilege escalation is mostly irrelevant these days. It’s only useful as part of an exploit chain, really. It’s not like shell servers are still around.

this type of exploits are goldmines for attackers, it means they have a window of a few month to years to turn any basic access into root. It doesn't have to be a super complex exploit chain, anyone running wordpress botnets it going to add this to their arsenal

Usually they don't need to be root to access and exfiltrate data anyway.

Re: New Linux udisks flaw lets attackers get root on major Linux distros

#195

Local privesc, don't care. If anyone still thinks that they can draw a security boundary anywhere with a shared kernel, they should really look at kernel CVE database (and be horrified). For every fancy titled exploit there are twenty that you've never heard of. You can sort of do it if you carefully structure your program to restrict syscall use and then use some minimal and well audited syscall filtering layer to h…

The way I deal with this at work is: we both work for a person who can fire us for looking at them funny. The threat of dismissal is sufficient for us to expect our peers to be rude neighbors but not criminal ones. If the divisions get big enough that this gets blurry, well then it’s simple enough to ask for private VMs/separate Kube clusters. The Conway’s Law aspects of server maintenance cycles when you report to separate directors/VPs is self evident.

And of course collocating different classes of work can lead to a bug in a low priority task taking down a high priority one. So those also shouldn’t run in the same partition. Once you’ve taken both of those into account, you’ve already added some security in depth. It’s hard even to escalate a remote exploit into a privilege escalation into attacking a more lucrative neighbor.

Re: New Linux udisks flaw lets attackers get root on major Linux distros

#196
post #112

Earlier quoted context omitted.

NO, this is NOT environment variables. It's the wrong argument to a tool, but the suid part has nothing to do with environment variables or cleaning the env up. PLEASE STOP SPREADING FUD.

Relax, someone else already explained it without shouting.

At the time they hadn't and I'm fed up of the jumping to conclusions that env vars are the cause of any security issue. This is blaming poor code from poor devs on expert features from UNIX all to often.

Worrying when said person has authored a widely used security product(!). This is a bad trend in the industry that needs to stop.

Re: New Linux udisks flaw lets attackers get root on major Linux distros

#197
post #118
post #63

Earlier quoted context omitted.

It's incredible to me that sudo has that many LoC. I'd assume it would just ask the OS to execute something without restrictions, not have any logic to do so itself.

There is no such API on Linux, it is accomplished by sudo having the setuid bit set, which instructs the kernel to start it as root regardless of the current user. It's probably one of the worst legacy designs still in use - if any binary has setuid set, it runs as root, no questions asked. Conversely, you also have no way of elevating privileges for a running binary. This really should have been solved decades ago w…

There's been some work on alternatives to setuid sudo. For example run0 from systemd.

Re: New Linux udisks flaw lets attackers get root on major Linux distros

#198

Earlier quoted context omitted.

Most of our server infrastructure runs on illumos at $work. SmartOS/Triton handles our "cloud" and OmniOS runs our storage. The linux monoculture problem luckily can still be handled with zones and bhyve, and I do trust illumos developers' competence to deliver good quality secure software a lot more than linux developers' as well. Now if FreeBSD (or indeed illumos) would get CUDA-support we could stop using linux fo…

> Now if FreeBSD (or indeed illumos) would get CUDA-support we could stop using linux for GPU nodes too. Could you not run Linux CUDA binaries under FreeBSD's Linuxulator?

It is possible, yes, but I would prefer to have full linux-free support for production use. There is on-going work for FreeBSD Cuda, though[0]. Just have to wait and see.

[0] https://www.freebsd.org/status/report-2024-04-2024-06/#_part...

Re: New Linux udisks flaw lets attackers get root on major Linux distros

#199

Earlier quoted context omitted.

> if any binary has setuid set, it runs as root More precisely, it runs as the file owner. Which is often root.

For anyone thinking this is unnecessarily pedantic, it’s not. I didn’t exactly know what setuid did. I learned something today. :)

You might also research what setgid bit on directories do, it's useful sometimes.

Re: New Linux udisks flaw lets attackers get root on major Linux distros

#200

Earlier quoted context omitted.

> anyone still thinks that they can draw a security boundary anywhere with a shared kernel Containers are everywhere.

They don't work as reliable security boundaries; they're developer/ops tools.

Thomas, what are your thoughts on micro-vms such as kata containers? You can use them as a backend for docker in place of runc.

I'm sure you're well aware, but for the readers, they are isolated with a CPU's VT instructions which are built to isolate VMS. I still think "containers don't contain" in a very Dan Walsh boston accent, but this seems like a respectable start.

https://katacontainers.io

Post reply on HN