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

Show parent comment

1

u/iDrunkenMaster Dec 23 '25

Don’t think that is the same. Microsoft isn’t only pushing software out of the kernel but pushing the user out as well. Many of the things kernel anti cheat is looking for if things the user has done to the kernel such as modified drivers. So the need for kernel level anti cheat will go down significantly. However do you think Linux would do the same by forcing the user out of the kernel?

1

u/DerekB52 Dec 23 '25

I don't see Linux kicking the user out of the kernel though. Maybe a Linux distro built by Steam could harden the kernel and enforce restrictions. They'd have to find a way to do this that didn't break compatibility with upstream though, because they don't want to maintain their own kernel by themselves.

I don't think Linux needs to do this though. What I'm saying is, if Microsoft kills kernel level anti cheats, I think anti cheat developers will end up making something that can at least work with WINE.

I guess its possible that anti cheat devs say, "On windows we can now do X checks in userland, which is more than we can do in Linux, so lets still block all Linux users". But, what I would hope for is the death of client side anti cheat in general, and more authoritative servers. If I'm playing an online game, the game server can check to make sure my character is moving like a human, and moving at the speed the game sets. I think the client side anti cheat is not necessary.

1

u/iDrunkenMaster Dec 23 '25 edited Dec 23 '25

I think they would most likely disable Linux some other way not just allow it to run though wine/proton. (Also anti cheat WANTS Microsoft to lockdown the kernel harder! It makes their jobs easier. If it’s truly locked down they won’t even need to be in the kernel. Though they want to be the last ones locked out not the first.). So they were lock into windows harder not allow Linux.

Kernel level anti cheat allows them to see behind the window. A big one is modified drivers, and anything peeking into memory. Let’s say you peek into memory and mark enemy’s and cross hair (only run every 25ms with 5ms jitter so uneven). If cross hair is on enemy it flips a switch. Then mouse driver gets that flipped switch and over the course of 50ms (with a 5ms jitter so uneven) it lowers your dpi from 400 to 200 lowering it 1 at a time so the change doesn’t look immediately. Now user land can’t detect anything and actions don’t look overly robotic so is ignored at least for a few days/weeks and even then a human will think “I’m not sure what the AI is flagging”. But kernel? It’s going to say hey why are their multiple unsigned things running here including something messing with the mouse and changing dpi rapidly. (It doesn’t even need to know what you’re doing. Since no normal person does this that alone is a massive flag)

(All of that above both sides need the kernel if no one has the kernel no one can check but no one can enter either so it become null which is what anti cheat desires)