732 Bytes to Root: How Copy Fail Silently Affects Linux Systems
A Linux kernel flaw called Copy-Fail lets a normal user modify a system program's in-memory page cache via a cryptographic kernel feature, so the program runs altered without any on-disk change. An attacker with a regular account could gain root access, and disk-based integrity tools would not notice.
medium.com
Published on medium.com
In April 2026, security researchers revealed a vulnerability in the Linux kernel called Copy-Fail (CVE-2026–31431). What made it unusual was not just its impact, but how simple it was to exploit.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a flaw in how the Linux kernel handles internal data operations for a cryptographic feature, allowing a user to cause an unintended memory modification in the page cache.
Impact
A regular user could potentially gain root access, and because only memory is changed, disk-based security tools may not detect it.
What the attacker needed
A normal user account on the system; Linux kernel from around 2017 onward, unpatched
The fix
It should be fixed by installing the latest kernel updates from the distribution and rebooting, since kernel fixes only apply after a restart.
How it was found
- Interact with a built-in kernel feature used for cryptographic operations
- Feed it data from an existing system file
- Trigger a small unintended memory modification
- Run that program and get elevated access
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The kernel is the core of the operating system that controls memory and permissions. This bug lets an ordinary user quietly change a program while it is loaded in memory, so it runs with more power than it should, without changing the file on disk. That means the user could become the administrator (root) of the machine.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.