r/linuxquestions • • Dec 21 '25

Why don't kernel level anti-cheats exist on linux?

Its my understanding that programs can get access to kernel space by installing themselves as drivers (makes sense, actual drivers likely require the privilege to control hardware) - I'm assuming drivers on linux also have access to kernel space - so why cant an anti-cheat just install itself as a driver, in the same way it does on windows? Just curious about the inner workings

347 Upvotes

193 comments sorted by

View all comments

364

u/AiwendilH Dec 21 '25 edited Dec 21 '25

Several reasons:

  • License issues: Yes, you can have non-open source drivers as kernel modules...but if a kernel module is not licensed as GPL or under a compatible license it can't access kernel symbols exported with EXPORT_SYMBOL_GPL()...meaning it has potentially less access than a cheat..defeating the point of the kernel level anti cheat. Alternative would be making the anti-cheat open source...allowing everyone to easily see in the source-code how to defeat it.
  • The kernel is open source too. Anyone can modify it and create own versions...even with modifications especially for cheating. A kernel level anti-cheat in linux would be "only" as effective as a user-level anti-cheat on a proprietary system where users can't just create own, modified kernels...the anticheat would be again on the same level as the cheats and play the same cat&mouse game without any real advantages.
  • To prevent the above kernel-level anti-cheat would need to place severe restrictions on what kernel can be loaded. And not just "You need secure boot enabled"...more like "You need secure boot enabled, are not allowed to roll your own keys for secure boot...actually we only allow this one singing key matching to the kernel of steam-os three years ago...which we can't allow to load any unknowen or updated kernel modules so you also have to use the nvidia driver versions from 4 years ago until we get around to add and test more keys...and forget about that external driver for your gamepad, we can't run a certification authority for every possible kernel module out there"

Edit: slight rephrasing in hopes my poor English shows a tiny bit less...yeah, I know, not successful but let me wallow in ignorant bliss

193

u/PassionGlobal Dec 21 '25

This. In addition, the Linux community is OVERWHELMINGLY against kernel level anti cheat. And the setup of Linux is heavily against closed-source kernel modules in general, to the point where they make things rather difficult for those that go that way. Nvidia was just about tolerated up until they they moved their closed source parts into the firmware of their cards.

78

u/Saragon4005 Dec 21 '25

Anyone who knows what a kernel is wants to keep software companies out of that as much as possible. The majority of Linux users know what the kernel is.

53

u/DerekB52 Dec 21 '25

Microsoft has been hardening the Windows kernel and working toward getting 3rd parties out of the kernel. They want more stuff running in userland. Kernel anti cheat will be killed by Microsoft before Linux implements it.

Nobody wants this around.

39

u/Appropriate_Ant_4629 Dec 21 '25 edited Dec 21 '25

Perhaps motivated whenever CrowdStrike's enterprise-level anti-cheat effectively does a kernel-level DDOS on all their customers.

Why Microsoft ever gave them that level of access was insane.

7

u/spiralenator Dec 21 '25

Why would the company that takes screenshots of user's desktop and sends it over the internet without consent ever allow that?!?!

19

u/basemodel Dec 21 '25

I'm no fan of CrowdStrike or Microsoft at all, but Microsoft didn't 'give' them anything, they had to do it because, ironically, in Windows kernel-level access is required for security products to keep it well, secure. This is partly because the API's they need simply aren't available in user-space, but mostly due to Win architecture. I dislike CS as much as the next guy (my team fixed 1200+ servers on July 19th '24) but it's Microsoft's fault for sure, and they'll tell you the same.

8

u/InvisibleTextArea Dec 22 '25

With the windows OS we have done this before with the graphics subsystem. NT4 never fell over because graphics drivers were in user space. Windows 95/98/ME allowed kernel level graphics drivers and they were an unstable mess.

Yet somehow we are doing this again.

→ More replies (1)
→ More replies (3)
→ More replies (1)

5

u/LittlestWarrior Dec 21 '25

I worry that if Microsoft did that, their solution would somehow continue to keep Linux users from playing these games.

6

u/Simple_Project4605 Dec 21 '25

Of course it would. Like the parent poster said, you need full trust chain to the OS manufacturer, which you will never get with Linux.

Anticheat on an open OS like Linux will just fundamentally not ever work. You either eat the cheats if you’re a smaller game developer, or if you’re somebody like Activision, you’ll just support special BSD and Linuxes with full trust chain - like PlaystationOS, SwitchOS, Android, iOS, and generally stuff that’s locked down.

Even Valve’s flavour won’t work due to the ability to sideload kernels (i.e., it’s not locked down enough).

5

u/Swagigi Dec 22 '25

if we had community hosted servers with harsh ban conditions I feel like cheating would be way less successful, which would lessen the need to anti-cheat at all

→ More replies (7)

4

u/aldi-trash-panda Dec 22 '25

I would dual boot a locked down kernel to play certain games. I'd rather that then get on Windows ever again.

→ More replies (3)
→ More replies (1)

4

u/DerekB52 Dec 21 '25

I don't worry about it too much, since we already can't play these games on Linux. But, I think it will be hard for a new solution to be as impossible as Kernel EAC is now. They want to find a userland way to make this work. And we can replicate userland stuff thanks to WINE.

What I'm rooting for is the death of EAC programs in general though, and just have that stuff moved to authoritative game servers. Then Linux users will be allowed to play everything.

4

u/LittlestWarrior Dec 21 '25

That's certainly what I am hoping for. I have been absolutely dogpiled on r/linux_gaming for saying this, but I stick on Windows for COD: Zombies and Fortnite. Both require kernel level anticheat and secure boot. I hate Windows! I prefer Linux! But I don't want to give up those games, because then my gaming computer wouldn't really have much of a purpose. I am just hoping that I will eventually be able to play those games on Linux.

→ More replies (4)
→ More replies (2)
→ More replies (4)
→ More replies (1)

3

u/Appropriate_Ant_4629 Dec 21 '25 edited Dec 21 '25

Linux community is OVERWHELMINGLY against kernel level anti cheat

Tivo was essentially bootloader+kernel level anti-cheat, and one notable key kernel dev liked it so much he opposed closing that loophole.

→ More replies (1)

3

u/gnufan Dec 21 '25

I think the community is anti closed source kernel modules.

You could do an open source reporting module, that sends telemetry, and keep the secret detection logic in user space proprietary code or the cloud.

It might even be able to use existing kernel modules and tools, Linux has entire auditing system.

The real issue is diversity. Whatever Windows anti-cheat costs, it is going to be a similar order of magnitude, with extra work per distro (at least where they are significantly different). So you could spend 2 or 3 times as much for a less good anti-cheat system, for a fraction of the users. You could probably do a user space fudge, that spots some cheating nearly as effectively, and is cross platform.

Also there will be more knowledge to work around it, as every linux user is one command away from having all the tools they need to develop subverting tools, and likely has all the source code of everything involved on the kernel side.

→ More replies (9)

43

u/rabbidearz Dec 21 '25

Don't be so hard on yourself. This was well explained and I didnt know you werent a native English speaker until you said it.

10

u/AiwendilH Dec 21 '25

lol, sorry, wasn't really meant serious, more just a bit of making fun of myself because what I corrected was something about having a word not accidentally doubled but actually three times (something like "this this load any this") and I couldn't even imagine how the hell I got there other than my brain just deciding to turn off for a few seconds. ;)

13

u/kansetsupanikku Dec 21 '25

Why can't the anti-cheat be open source? I mean, other than the corporations making it believing in security by obscurity in 2020's. And the fact that existing anti-cheat implementations probably wouldn't be proud of what they do with user data, and what kinds of data they touch, and what access they allow.

But if it was anti-cheat rather than a trojan, making ot open source would be non-issue. Distro communities would probably contribute and it would be worth it.

3

u/AiwendilH Dec 21 '25

Maybe it could...this would need a lot deeper examining if an open-source anti-cheat can even work (and for sure far beyond my skillset and ring0 development knowledge). Would involve answering the question if you can make one kernel part assuredly be able to see everything another kernel part does even if that involves actively trying to hide what it does...and I am not sure you can guarantee that if both run at the same privilege level. So maybe we should start talking about hypervisor level anti-cheat! (sarcasm...not really wanting to give anyone ideas here ;))

What open-sourcing for sure does is making it a lot more complicated to even get started...no grace period until cheat developers discover some workarounds for the detection.

3

u/kansetsupanikku Dec 21 '25

How is this different from a "can kernel anti-cheat even work?" question, open source or not? And why would anti-cheat have to "hide what it does"?

But you might be on to something. Perhaps kernel level anti-cheat is never doing what it's supposed too, even on Windows - and compromising system integrity (in terms of managing user data and control) is the only point of that design.

→ More replies (2)
→ More replies (7)

10

u/trippedonatater Dec 21 '25

Points 2 and 3 are really good. Nice write up!

6

u/Hairy_Koala6474 Dec 21 '25

This was incredibly insightful thanks for sharing 

2

u/kent_eh Dec 21 '25

The kernel is open source too. Anyone can modify it and create own versions

That's probably the biggest practical reason.

2

u/Sorry-Committee2069 Dec 22 '25

Reminder that you can't so much as allocate RAM pages or (I think) even print text to the kernel log without your code being licensed as GPL-adjacent. It's basically impossible to *not* be GPL-licensed (and this system doesn't accept MIT licenses, which has always confused me.)

→ More replies (1)
→ More replies (17)