
Proof-of-concept and technical analysis of CVE-2026-31431 (Copy Fail), a Linux kernel privilege escalation vulnerability affecting page cache integrity.
This repository presents a technical overview and demonstration of CVE-2026-31431, commonly referred to as Copy Fail, a Linux kernel vulnerability that enables local privilege escalation.
The vulnerability affects a wide range of Linux distributions and allows an unprivileged user to obtain root access by exploiting inconsistencies in page cache handling within the kernel.
This project is intended solely for:
Unauthorized use of this information on systems without proper permission is strictly prohibited.
The vulnerability originates in the Linux kernel’s cryptographic subsystem, specifically within the handling of the authencesn algorithm.
It permits a local user to modify the page cache of files that are otherwise only readable, without altering the corresponding data on disk.
As a result, a file may appear unchanged when inspected, while executing altered content in memory.
The exploitation process involves:
AF_ALG and splice()Linux utilizes a page cache to store file data in memory for performance optimization.
In this vulnerability:
This discrepancy enables stealthy exploitation and bypasses traditional file integrity checks.
Successful exploitation may result in:
A demonstration video is included in this repository, illustrating:
| Vulnerability | Type | Characteristics |
|---|---|---|
| Dirty COW | Race condition | Timing-dependent exploit |
| Dirty Pipe | Pipe buffer exploit | Kernel memory overwrite |
| Copy Fail | Logic flaw | Deterministic and reliable |
This project is released under the MIT License.