Copy Fail (CVE-2026–31431): You Are Affected — Fix It Before
A Linux kernel vulnerability allows a normal user to write into the page cache for files they lack permission to modify, enabling local privilege escalation to root. The exploit modifies the SUID binary /usr/bin/su in memory to bypass authentication.
Published on medium.com
In this write-up, I walk through one of the most shocking recent vulnerabilities in the Linux ecosystem — a flaw so simple, yet so powerful, that it reshaped how we think about kernel security overnight.
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 logic flaw in the kernel's handling of the page cache that fails to enforce write permissions when a user modifies cached file data.
Impact
A local user could gain root access without authentication, and the modification is hard to detect because it only affects RAM and leaves disk files unchanged.
What the attacker needed
Local user account; unpatched Linux kernel; Python3 installed
The fix
The vulnerability should be fixed by patching the kernel; a temporary workaround is to disable the algif_aead module.
How it was found
- Open /usr/bin/su in read-only mode
- Use AF_ALG (kernel crypto interface)
- Use splice() to manipulate kernel memory
- Inject 4 bytes at a time
- Modify authentication logic
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 page cache is a part of memory where Linux keeps recently used files to speed things up. Normally, only someone allowed to change a file can alter it, but this bug lets any user change the cached copy of a file they should not touch. By changing a program that runs with full system rights, an attacker can become the administrator (root) without a password.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.