News for hackers. Stuff that matters.
Re:Linux kernel use-after-free in Netfilter, local privilege... by 0cf8612b2e1e on Tuesday May 09, 2023 @09:36PM (#35882591)
Microkernel does seem the only sensible path forward. Even if the kernel is slowly rustified, going to be playing security whack-a-mole for a long time.
Re:Linux kernel use-after-free in Netfilter, local privilege... by anonymousiam on Tuesday May 09, 2023 @10:05PM (#35882773)
Back in the day when the micro-kernel/monolith flamewars were raging, the arguments for monolith were about improved performance and lower memory usage. I haven't seen much discussion on this topic for years, but at least those two arguments have not aged well.
Re:Linux kernel use-after-free in Netfilter, local privilege... by aflag on Wednesday May 10, 2023 @03:18AM (#35884642)
Why not? It isn't clear to me why monolithic kernel wouldn't still have better performance.
Re:Linux kernel use-after-free in Netfilter, local privilege... by pjmlp on Wednesday May 10, 2023 @04:08AM (#35884931)
It doesn't matter with layers hypervisors, virtualization, containers and sandboxes running on top.

All mitigations to achieve microkernel like capabilities.

Re:Linux kernel use-after-free in Netfilter, local privilege... by aflag on Wednesday May 10, 2023 @08:03AM (#35886147)
Hm, if you're making the underlying hardware slower, don't you want the kernel to be even faster though?
Re:Linux kernel use-after-free in Netfilter, local privilege... by pjmlp on Wednesday May 10, 2023 @10:14AM (#35887686)
Not when using hypervisor type 1.
Re:Linux kernel use-after-free in Netfilter, local privilege... by aflag on Wednesday May 10, 2023 @02:10PM (#35891120)
Why not? Hypervisor type 1 has less overhead, but it's still not quite the same as running directly on the box. I don't think micro kernels would replace those anyway. To be honest, I don't even really see the connection between running most of the kernel in user space and allowing concurrent systems to run in the same hardware.
Re:Linux kernel use-after-free in Netfilter, local privilege... by snvzz on Friday May 12, 2023 @07:55AM (#35914881)
seL4 with its VMM is a better hypervisor architecture than, say, Xen.

Xen is unfortunately large, and the full hypervisor runs privileged.

With seL4, VM exceptions are forwarded to VMM, which handles them.

From a security standpoint, a VM escape would only yield VMM privileges, which are no higher than that of the VM itself. This is much better than a compromise of Xen, which would compromise all VMs in the system.

Makatea[0] is an effort to build a Qubes-like system using seL4 and its virtualization support. It is currently funded by a NLNet grant.

0. https://trustworthy.systems/projects/TS/makatea

Re:Linux kernel use-after-free in Netfilter, local privilege... by pjmlp on Wednesday May 10, 2023 @04:12AM (#35884960)
Mostly because the cloud is based on microkernel like approach regardless of the kernel.

Hypervisors, userspace drivers, containers, language runtime sandboxes, bytecode deployments, driver and kernel sandboxes (safe kernel / driver guard),container only distributions,...

Re:Linux kernel use-after-free in Netfilter, local privilege... by mananaysiempre on Wednesday May 10, 2023 @07:17AM (#35885900)
Spectre and friends seem to have killed Liedtke’s fast synchronous IPC, unfortunately. Of course, there’s still asynchronous IPC, exokernels (perhaps the closest thing to today’s containers), and so on.
Re:Linux kernel use-after-free in Netfilter, local privilege... by galangalalgol on Tuesday May 09, 2023 @10:48PM (#35883068)
For rack servers you could probably get away with a number of microkernel os today. Desktop has clear options in that regard, but you are giving up op n source.
Re:Linux kernel use-after-free in Netfilter, local privilege... by CorbetL on Tuesday May 09, 2023 @11:29PM (#35883303)
Linux may eventually become a microkernel with most IPC done via io_uring, but it may take 20 years to reach this state.
Re:Linux kernel use-after-free in Netfilter, local privilege... by touisteur on Wednesday May 10, 2023 @02:39AM (#35884364)
Right now it seems microvms are the way. Build an extremely minimal tailored kernel+userland for network-facing components. If you don't have nf_tables built-in (and it's not loadable because not present) this vulnerability isn't a problem. I mean, right now to use it one would have to chain it with a RCE on your userland app (or on the kernel but just skip the nf_tables step then...). Then one would have to escape the VM, then if you're using firecracker or crosvm, you'll have to break seccomp. Still imaginable, but by then I guess the next kernel (or userland app) fix release is already available :-) and you're already rebooting your microvm.

If you can CI/CD in minutes a reduced kernel+app and reboot in 100ms your network-facing thing (be it nginx or haproxy) you might just take latest vanilla anyway...

Re:Linux kernel use-after-free in Netfilter, local privilege... by ttarr on Wednesday May 10, 2023 @10:54AM (#35888266)
Care to elaborate plz?

How would we go about GPUs, NCs, and many kinds of drivers?