Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-31431-Copy-Fail---Advanced-LPE-Proof-of-Concept---C-Rewrite — Copy Fail (CVE-2026-31431) is a logic bug in the Linux kernel's authencesn cryptographic template. It lets an unprivileged local user trigger a deterministic, controlled 4-byte write into the page cache of any readable file on the system. | Kitploit
Tools/GitHubGitHub/iblamenear/cve-2026-31431-copy-fail---advanced-lpe-proof-of-concept---c-rewrite
Privilege EscalationExploit FrameworksVulnerability AnalysisExploitationBinary Exploitation
GitHubiblamenear/cve-2026-31431-copy-fail---advanced-lpe-proof-of-concept---c-rewrite

CVE-2026-31431-Copy-Fail---Advanced-LPE-Proof-of-Concept---C-Rewrite

Copy Fail (CVE-2026-31431) is a logic bug in the Linux kernel's authencesn cryptographic template. It lets an unprivileged local user trigger a deterministic, controlled 4-byte write into the page cache of any readable file on the system.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
3 months agoNot yet reviewed

CVE-2026-31431 ("Copy Fail") - Advanced LPE Proof-of-Concept - C Rewrite

License: MIT Language: C Platform: Linux Status: Verified

An advanced, byte-perfect Local Privilege Escalation (LPE) Proof-of-Concept (PoC) for CVE-2026-31431, exploiting a logic flaw in the Linux kernel's cryptography subsystem (algif_aead).

This repository contains a highly optimized C implementation that reliably overwrites read-only Page Cache memory by manipulating the AF_ALG socket interface and the splice() system call.

Vulnerability Overview

The vulnerability, dubbed "Copy Fail", allows an unprivileged local attacker to force the kernel to write cryptographic operation outputs directly into the memory-mapped pages of any file on the system. By targeting /usr/bin/su, this PoC achieves a zero-copy memory injection, granting an instant root shell without modifying the physical binary on disk.

Cross-Distro Research & Compatibility Matrix

Extensive testing has been conducted across various modern Linux distributions to determine the exploitability window and observe patch behaviors.

Patch Analysis (The "Silent Failure")

On patched kernels (e.g., 6.19.14+ and 7.0.0+), the exploit executes without crashing or throwing EINVAL (Silent Failure). The kernel successfully parses the raw Netlink rtattr headers but correctly enforces VM_MAYWRITE page permissions during the splice() write-back phase. It silently allocates a safe buffer instead of overwriting the read-only Page Cache of /usr/bin/su.

Usage

Compilation

root@kitploit:~
gcc copy_fail_exp.c -o copy_fail_exp
chmod +x copy_fail_exp

Running

root@kitploit:~
./copy_fail_exp

Expected Output (Vulnerable System):

root@kitploit:~
[*] CVE-2026-31431 Research - Ultimate C Implementation
[+] Page Cache completely overwritten.
[+] Detonating modified binary...
# whoami
root

Reference

  • https://copy.fail/
  • CVE-2026-31431

Disclaimer

This code is released strictly for educational, defensive research, and threat modeling purposes. Do not execute this on production systems or any environment where you lack explicit authorization.

Download Tool
Operating SystemKernel VersionVulnerable?Observation / Root Cause
Kali Linux 2026.16.18.12+kali-amd64✅ YesPerfect exploitation. Root shell achieved.
Linux Mint 22.36.14.0-37-generic✅ YesPerfect exploitation. Root shell achieved.
Ubuntu 22.04.5 LTS6.8.0-111-generic✅ YesPerfect exploitation. Root shell achieved.
Ubuntu 24.04.4 LTS6.8.0-111-generic❌ NoProtocol not available. The OS restricts/disables the required AF_ALG netlink operations by default.
Kali Linux 2026.16.19.14+kali-amd64❌ NoPatched (Silent Failure). su requests password normally.
Ubuntu 26.04 LTS7.0.0-15-generic❌ NoPatched (Silent Failure). su requests password normally.