News for hackers. Stuff that matters.
Re:Linux: Vulnerabilities in nf_tables cause privilege escal... by wavesquid on Monday March 28, 2022 @11:47PM (#30838533)
Most containers.
Re:Linux: Vulnerabilities in nf_tables cause privilege escal... by infotogivenm on Tuesday March 29, 2022 @12:00AM (#30838617)
Most containers are going to block unshare() via seccomp, no?
Re:Linux: Vulnerabilities in nf_tables cause privilege escal... by raesene9 on Tuesday March 29, 2022 @03:00AM (#30839637)
Therein lies an interesting detail. Docker does block unshare in default configurations, using its seccomp filter.

However in Kubernetes, by default, Docker's seccomp filter is disabled. At the moment you need to re-enable it on a pod by pod basis. There is work to allow a default cluster-wide setting but that isn't at GA yet.

Re:Linux: Vulnerabilities in nf_tables cause privilege escal... by dinosaurdynasty on Tuesday March 29, 2022 @12:09AM (#30838672)
Most containers run as root inside the container, which means they can access nftables in the container.

One of many reasons running as root inside a container is a bad idea.

Re:Linux: Vulnerabilities in nf_tables cause privilege escal... by cpuguy83 on Tuesday March 29, 2022 @01:51AM (#30839239)
Most containers would not have CAP_NET_ADMIN and not be able to access nftables.
Re:Linux: Vulnerabilities in nf_tables cause privilege escal... by lmns on Tuesday March 29, 2022 @06:49AM (#30840957)
My understanding is that containers actually can access nftables with CLONE_NEWUSER even without CAP_NET_ADMIN.

EDIT: Apparently the Docker default capabilities don't allow CLONE_NEWUSER: https://opensource.com/business/15/3/docker-security-tuning

Re:Linux: Vulnerabilities in nf_tables cause privilege escal... by cpuguy83 on Tuesday March 29, 2022 @11:11AM (#30843630)
Except the default seccomp policy is not used for Kubernetes containers.

I didn't really think about this vector where you CLONE_NEWUSER in a container... definitely on systems that allow unprivileged users to do this it is a problem.

Re:Linux: Vulnerabilities in nf_tables cause privilege escal... by staticassertion on Tuesday March 29, 2022 @01:25PM (#30845670)
root@ee375d5150bc:/# pscap -a ppid pid name command capabilities 0 1 root bash chown, dac_override, fowner, fsetid, kill, setgid, setuid, setpcap, net_bind_service, net_raw, sys_chroot, mknod, audit_write, setfcap

That's ubuntu.

Re:Linux: Vulnerabilities in nf_tables cause privilege escal... by viraptor on Tuesday March 29, 2022 @05:53AM (#30840636)
> Most containers run as root inside the container

Is that actually surveyed / quantified somewhere? I can't say I see that too often in professional environments and even home stuff sees a lot of standardisation around separate users (https://docs.linuxserver.io/general/understanding-puid-and-p...)

Re:Linux: Vulnerabilities in nf_tables cause privilege escal... by worthless-trash on Tuesday March 29, 2022 @01:13AM (#30839010)
Who would have thought it !

Where are these admins who demand this configuration ?