r/linuxadmin • u/scottchiefbaker • Apr 29 '26
Copy Fail — 732 Bytes to Root any Linux distribution shipped since 2017
https://copy.fail/
194
Upvotes
r/linuxadmin • u/scottchiefbaker • Apr 29 '26
2
u/GoodForTheTongue Apr 30 '26 edited Apr 30 '26
Can someone be more specific than the news release's vague "every distro since 2017 is vulnerable"?? Does that mean, say, a RHEL 7 system installed in 2014, but then updated every year through 2020 (when regular updates stopped), would be vulnerable or not?
Basically, are we talking about the date of the base version of the kernel - or the latest version? In my example, RHEL 7.0 shipped with kernel 3.10.0-123, but was updated to 3.10.0-1160, if you got all the way to RHEL 7.9.
EDIT: found the actual answer in the CVE itself - hadn't read down far enough:
versionStartIncluding: "4.14"→versionEndExcluding: "6.18.22" / "6.19.12"So in my example, no RHEL 7.x system (no matter how recently it's been updated) would ever be affected, since it's sitting on a 3.10-xxxx kernel in all cases. (RHEL 8 is fully in the crosshairs, though, as it's based on kernel 4.18, and of course RHEL 9.)
106
u/deeseearr Apr 29 '26
"CVE-2026-31431" if you're one of those people who would rather actual know what the problem is instead of seeing the fancy logo and press-release-friendly name. There are several detailed discussions of the exact flaw that was exploited and it was found by a human researcher who knew what they were looking for -- This isn't an AI doomsday bug.
The issue was fixed about a month ago. Patch your stuff.
4
u/petra303 Apr 29 '26
I tried it and it didn’t work on a rocky 9.x box.
24
u/geolaw Apr 29 '26
Rhel 14.3??? There's no such thing
22
u/glhaynes Apr 29 '26
Would’ve come in handy a few weeks ago when I locked myself out of root on one of my systems lol
3
u/Bloodshot025 Apr 30 '26 edited Apr 30 '26
A mitigation I saw on openwall:
Essentially disables the module in question, which is normally automatically loaded in when a socket is requested.
5
u/ipsirc Apr 29 '26
https://www.reactiongifs.com/r/2013/03/3.gif
2
u/zenfridge Apr 30 '26
I have gotten the impression this really requires a local user (e.g. shell), but realistically, couldn't this be leveraged remotely - e.g. leverage public website to read a remote script and run (e.g. php exec), apache (user) goes through the motions, now has root to do other things?
(yes, there might be additional security/mitigations in place to stop things like remote reads, uploads, etc., I'm just talking theoretically)
1
u/hornetjockey Apr 30 '26
Yup, just tried it and it is scary how quick and easy that was.
1
u/bobj33 Apr 30 '26
I tried it on my update to date Fedora 43 systems and it didn't work. I tried it on an old Fedora 37 VM and it instantly gave me a root shell.
1
u/kooltrix May 12 '26
im sure this will be a lot of fun on HackTheBox challenges.
-1
u/kai_ekael Apr 30 '26
"Major distributions" includes Ubuntu but not Debian, yet Ubuntu is based on Debian. That seem right to you?
-- Jubal Early
-9
u/Nelmers Apr 29 '26
Banks be like “told you suckers”
-6
u/ThisIsProbablyFine1 Apr 29 '26
This doesn’t work on any modernish kernels right