Earlier quoted context omitted.
> to always use smart pointers for reference counting Agree - and the Linux kernel is extremely fragile because it is full of ad-hoc manual code like that. Unfortunately, Rust won't be the rescue, because (in the foreseeable future) Rust will only be available in leaf code due to the many hard problems of transitioning from fragile C APIs to something better. Writing drivers in Rust is useful, but limits the scope of…
We’ll see. As far as I know, the biggest blocker to using Rust outside of drivers is the fact that LLVM lacks support for some architectures Linux supports. And rustc_codegen_gcc seems on track to fix that eventually; even if it takes years more, that’s not much time on the scale of Linux’s development history.
Linux kernel use-after-free in Netfilter, local privilege escalation
61–70 of 107 posts
Re: Linux kernel use-after-free in Netfilter, local privilege escalation
#62"We developed an exploit that allows unprivileged local users to start a root shell by abusing the above issue. That exploit was shared privately with to assist with fix development. Somebody from the Linux kernel team then emailed the proposed fix to and that email also included a link to download our description of exploitation techniques and our exploit source code. Therefore, according to the linux-distros list p…
> Somebody from the Linux kernel team then emailed the proposed fix to and that email also included a link to download our description of exploitation techniques and our exploit source code. > Therefore, according to the linux-distros list policy, the exploit must be published within 7 days from this advisory. In order to comply with that policy, [...] What? Someone publishes information about your vuln to a random m…
https://oss-security.openwall.org/wiki/mailing-lists/distros
> Please note that the maximum acceptable embargo period for issues disclosed to these lists is 14 days. Please do not ask for a longer embargo. In fact, embargo periods shorter than 7 days are preferable.
Re: Linux kernel use-after-free in Netfilter, local privilege escalation
#63Earlier quoted context omitted.
That is part of enabling rootless containers on rhel or similar.
should have re-written it in rust.
Re: Linux kernel use-after-free in Netfilter, local privilege escalation
#64There's easily thousands of such bugs hidden in the kernel. Reminder the kernel has over ten million LoCs, or megabytes of object code. Perhaps we should start thinking about whether it is a good idea to run something this large in supervisor mode, with full privileges. I wouldn't say it is sensible in a world where seL4 exists.
Who's going to make seL4 perform comparably to Linux?
Re: Linux kernel use-after-free in Netfilter, local privilege escalation
#65Re: Linux kernel use-after-free in Netfilter, local privilege escalation
#66Earlier quoted context omitted.
> but the specific module in question in the patch, nf_tables, is not loaded on my Ubuntu 20.04LTS 5.40 kernel running iptables/ufw at least This doesn't matter since Linux has autoloading of most network modules, and you can cause the modules to be loaded on Ubuntu since it supports unprivileged user/net namespaces. ubuntu:~% grep DISTRIB_DESCRIPTION /etc/lsb-release DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS" ubuntu:~…
Yikes... are other popular distros shipping with unprivileged user namespaces enabled by default?
Edit: should've read better, this seems to need CLONE_NEWUSER.
Re: Linux kernel use-after-free in Netfilter, local privilege escalation
#67Earlier quoted context omitted.
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.
Linux may eventually become a microkernel with most IPC done via io_uring, but it may take 20 years to reach this state.
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 escalation
#68Earlier quoted context omitted.
Yikes... are other popular distros shipping with unprivileged user namespaces enabled by default?
Do you need a user namespace? I'd expect a network namespace to be enough. Am I missing something? Edit: should've read better, this seems to need CLONE_NEWUSER.
Re: Linux kernel use-after-free in Netfilter, local privilege escalation
#69By that I mean, it might be easy or hard to exploit a bug to achieve LPE, but it seems to be redundant to prove that it is possible.
Re: Linux kernel use-after-free in Netfilter, local privilege escalation
#70Earlier quoted context omitted.
What’s actually reasonable here. I’m all for exploit code becoming public eventually, but I think it’s silly to drop it immediately after a fix has been released, or before, in almost all scenarios (unless there’s been 90+ days or the issue marked as wontfix)
Odds are that well-resourced attackers already have the exploit by now. Making it public lets users decide if this is important to them and come up with their own mitigations.