Copy Fail: The 732-Byte Exploit That Roots Nearly a Decade of Lin
A logic error in the Linux kernel's algif_aead crypto interface allowed an unprivileged local user to write four bytes into the page cache of a setuid binary such as /bin/su, so later executions of that binary could yield a root shell. The flaw affected mainstream distributions built between 2017 and early 2026 and was demonstrated with a small Python proof-of-concept.
Unlike prior high-profile LPEs such as Dirty COW or Dirty Pipe, Copy Fail does not rely on race conditions, memory corruption primitives, or kernel-version-specific offsets. Instead, it exploits a flawed optimization introduced in 2017 that allows page cache–backed memory pages to be incorrectly inserted into a…
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 flawed 2017 optimisation in algif_aead that allowed page cache pages to be placed into a writable destination scatterlist during authenticated encryption, so splice() could modify cached file contents in place.
Impact
Any local user could gain root on affected kernels, and in shared environments such as containers or multi-tenant hosts this could collapse isolation and allow cross-tenant escalation to host root.
What the attacker needed
Local unprivileged account; vulnerable kernel (2017 to early 2026); AF_ALG/algif_aead available
The fix
The upstream kernel patch removes the unsafe in-place optimisation in algif_aead, and until kernels are updated the module can be disabled and unloaded.
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 keeps a copy of files it has recently read in memory, called the page cache, so programs start faster. A mistake in one kernel crypto feature let an ordinary user change a few bytes of that in-memory copy of a privileged program. Because the change lives only in memory, the next time that program runs it can be made to give the attacker full administrator rights.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.