News for hackers. Stuff that matters.
Re:Dirtyfrag: Universal Linux LPE by JeremyNT on Thursday May 07, 2026 @06:14PM (#48055839)
Distro maintainers blacklisting specific functionality because they believe YAGNI is a pretty big ask. They just don't know who is using what. It's always possible for users to go back and tailor their builds for the stuff they actually want.

And... I remember the early days of Linux where I ran `make menuconfig` and selected exactly the functionality I wanted in my kernel. I'd... rather not end up back there.

That said a target for an easy win here is RHEL, which compiles a lot of modules into the kernel rather than leaving them as loadable modules, so the mitigation for e.g. copy fail was impossible. Maybe they could do with a few less of those?

Re:Dirtyfrag: Universal Linux LPE by chromacity on Thursday May 07, 2026 @06:18PM (#48055884)
You can make precisely the same argument for network services. Who knows, maybe you need telnet and UUCP and NFS and ftpd running on your system?... why should the distro maintainer decide?

Well, because you probably don't, and it's a security risk, so no need to put millions at risk for the benefit of that one person who wants to tinker with packet radio or whatever. Similarly, it would be prudent for distros to not allow autoloading of modules that are extremely niche while giving a simple way to adjust the settings if you want to. God knows they have plenty of GUI configurators and config files already.

Re:Dirtyfrag: Universal Linux LPE by akdev1l on Thursday May 07, 2026 @06:27PM (#48055959)
The thing is that we could simply split those modules into separate packages

No reason why you couldn’t just `dnf install -y kmod-rxrpc` if for whatever reason you need that.

Re:Dirtyfrag: Universal Linux LPE by michaelt on Thursday May 07, 2026 @07:47PM (#48056621)
Now I think about it, it's kinda weird if non-root users can cause kernel modules to get loaded, without any hardware changes having happened.

If the kernel modules for esp4, esp6 and rxrpc aren't loaded - how is it that a non-root attacker can cause them to get loaded?

Re:Dirtyfrag: Universal Linux LPE by pepa65 on Friday May 08, 2026 @02:35AM (#48059429)
It seems that this is allowed as part of a dependency chain...
Re:Dirtyfrag: Universal Linux LPE by atgreen on Thursday May 07, 2026 @07:32PM (#48056489)
Don't disagree, but there are eBPF mitigations that work as alternatives to unloading kernel modules.
Re:Dirtyfrag: Universal Linux LPE by cassianoleal on Friday May 08, 2026 @04:15AM (#48060187)
Can you elaborate on that?
Re:Dirtyfrag: Universal Linux LPE by atgreen on Friday May 08, 2026 @06:34AM (#48061203)
Re:Dirtyfrag: Universal Linux LPE by cassianoleal on Friday May 08, 2026 @07:13AM (#48061479)
Thanks!

From the sound of it, the same mitigations for Copy Fail 1 are also effective here.

Re:Dirtyfrag: Universal Linux LPE by atgreen on Friday May 08, 2026 @07:26AM (#48061601)
No, they are different. I just bundled them together for convenience in this POC. The only real thing in common is that they both use eBPF.
Re:Dirtyfrag: Universal Linux LPE by cassianoleal on Friday May 08, 2026 @09:20AM (#48062724)
Got it, thanks!
Re:Dirtyfrag: Universal Linux LPE by JeremyNT on Friday May 08, 2026 @11:57AM (#48064950)
I was aware of commercial antivirus vendors (Crowdstrike) doing something like this, but this is the first I've seen it published by somebody in the open!

Have you considered writing up a blog post and submitting this to HN?

Re:Dirtyfrag: Universal Linux LPE by TZubiri on Thursday May 07, 2026 @08:42PM (#48057028)
>Distro maintainers blacklisting specific functionality because they believe YAGNI is a pretty big ask

We have forgotten what a distro is, and its modern corruption of the concept is now taken as the definition.

Distributions weren't meant to be competing generic universal bundles of userspace tools in addition to the kernel.