Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20...
by dathinab on Tuesday March 26, 2024 @12:25PM
(#39829691)
if it works for LXC containers shouldn't it also work for unprivileged (but non VM) docker containers?
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20...
by Unroll0201 on Tuesday March 26, 2024 @02:00PM
(#39830843)
This is an educated guess, but I believe unprivileged Docker containers cannot create (user) namespaces. Hence, the vulnerability cannot be triggered, since the exploit requires interaction with nf_tables, which requires (namespace) root.
LXC containers and privileged Docker containers allow these namespaces to be made inside of them, whilst unprivileged Docker containers do not.
I have not tested it, but because I have included the namespace escape in the exploit for KernelCTF, it may be able to break out of LXC containers and privileged Docker containers running on vulnerable Linux kernels.