News for hackers. Stuff that matters.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by loudmax on Tuesday March 26, 2024 @11:49AM (#39829348)
This exploit relies on unprivileged access to user namespaces: `sysctl kernel.unprivileged_userns_clone = 1`

This is the default setting for Debian/Ubuntu, and also Arch Linux kernels. If you don't have a need for that setting, (eg. running Docker commands without sudo), you should probably disable that anyway.

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by yjftsjthsd-h on Tuesday March 26, 2024 @11:57AM (#39829369)
:\ It really is unfortunate that that setting is great for letting people run containers (and the like) without giving them root access... but also has a bad track record of then having vulnerabilities that allow root access.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by dathinab on Tuesday March 26, 2024 @12:32PM (#39829784)
IMHO it is just too complicated/flexible designed.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by yjftsjthsd-h on Tuesday March 26, 2024 @01:42PM (#39830626)
I'm not a kernel developer so take with a grain of salt; what I've heard suggested is that it's not fundamentally bad and if we'd had it from day one it would be fine, but a lot of kernel interfaces were designed with the idea that only root could use them so they didn't worry about certain security matters as much. And maybe that was never ideal but it could even be reasonable; if only root can trigger a bug that gives you root access... it's not good because it could be used to work around other restrictions, but one can imagine that it wouldn't exactly be a priority. But then what actually happened is that very late in the game we got this new feature that allows any old user to access these less-protected interfaces, and that's resulted in a certain amount of... catching up.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by dathinab on Tuesday March 26, 2024 @12:30PM (#39829748)
It's not just used by docker/packman.

But also e.g. by the chrome sandbox used by e.g. electron apps (or e.g. 1password). Through that sandbox helper binary can also work with being a suid program.

I also wouldn't be too surprised if e.g. proton will start using user namspaces at some point in the future.

So for any non-hardened desktop linux system you probably should _not_ disable it!

(For many servers or special hardened Linux it often isn't a bad idea to disable it.)

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by aidenn0 on Tuesday March 26, 2024 @04:52PM (#39832707)
6.1.65 and that option doesn't exist. Did it get renamed?
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by Unroll0201 on Tuesday March 26, 2024 @06:05PM (#39833390)
The sysctl command isn't available on specific kernel configurations. You could try running `unshare -Urn`. If it runs without sudo (and you haven't configured any specific permissions yourself), unprivileged namespaces are enabled.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by bjackman on Tuesday March 26, 2024 @06:20PM (#39833510)
I don't think it's in the upstream kernel - various distros carry it as a patch. Maybe yours doesn't?
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by 1oooqooq on Wednesday March 27, 2024 @03:55AM (#39836568)
the real problem is not that. this is nothing but a way to DROP privilege!

the problem is that containers require tons of hacks on the network side to just-work. and docker main selling point is all the usafe hacks it does for it.

so obviously, any container solution will adopt these hacks eventually, and there is the problem.

you end up with a perfectly sane namespace functionality that removes access, but then the kernel opens the gate because network hacks are good

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by GoblinSlayer on Wednesday March 27, 2024 @08:08AM (#39837982)
AIU the cause is Netfilter API that doesn't sanitize its input, because only root can call it, so there is no need to sanitize. Then unprivileged user namespaces open all root API to unprivileged user, so nonsanitizing Netfilter API became available to unprivileged user.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by 1oooqooq on Thursday March 28, 2024 @04:48AM (#39848944)
that's my point. why from a point users didn't have access to netfiltet now gives users access to netfilter? from a command which should be adding more restraint no less.

also people focus on this only being a problem now with priv escalation... but all that was always a problem before unprivileged containers... by allowing container code to exploit host kernel code, but nobody called it a privilege escalation then because you started your container as root. sigh.