Vulnerability
CVE-2026-31431
crypto: algif_aead - Revert to operating out-of-place
Vulnerability details
- Score
- 7.8
- Severity
- high
CVSS 3.1 · Linux
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDescription
In the Linux kernel, the following vulnerability has been resolved: crypto: algif_aead - Revert to operating out-of-place This mostly reverts commit 72548b093ee3 except for the copying of the associated data. There is no benefit in operating in-place in algif_aead since the source and destination come from different mappings. Get rid of all the complexity added for in-place operation and just copy the AD directly.
CVE ProgramExploit source choices
163 sourcesCVE-2026-31431 is a logic flaw in the Linux kernel's authencesn AEAD template that, when reached via the AF_ALG socket interface combined with splice(), allows an unprivileged local user to perform a controlled 4-byte write into the page cache of any readable file. Because the corrupted pages are never marked dirty, the on-disk file is unchanged but the in-memory version is immediately visible system-wide, enabling local privilege escalation by injecting shellcode into the page cache of a setuid-root binary such as /usr/bin/su. The vulnerability was introduced by an in-place optimization in algif_aead.c (commit 72548b093ee3, 2017) and affects essentially all major Linux distributions shipped since then until the fix in commit a664bf3d603d.
Copy Fail (CVE-2026-31431): 9-year-old Linux kernel LPE found by Theori's Xint Code
Cross-platform C port of the Copy Fail Linux LPE (CVE-2026-31431). Disclosed 2026-04-29 by Theori / Xint.
A Go implementation of copyfail (CVE-2026-31431)
PoC: fully unprivileged container escape to node-level code execution on Kubernetes via CVE-2026-31431 page-cache corruption + shared image layers. Validated on Alibaba Cloud ACK, Amazon EKS and Google GKE.
CVE-2026-31431 纯文件利用
Most Linux LPEs need a race window or a kernel-specific offset. Copy Fail is a straight-line logic flaw, it needs neither. The same 732-byte Python script (or .c elf) roots every Linux distribution shipped since 2017.
CVE-2026-31431-killed page-cache exploit — code exec into containers sharing the same image layer
Minimal no-libc Linux x86_64 ELF PoC build for Copy Fail (CVE-2026-31431)
CVE-2026-31431 Copy Fail — Universal LPE exploit. Dynamic ELF offset + full-binary overwrite, Python 2/3 compatible with ctypes splice fallback
Rust implementation Exploit/PoC of CVE-2026-31431-Linux-Copy-Fail, allow executing customized shellcode (such as Meterpreter).
0xshe/cve-2026-31431 source repository
CVE-2026-31431 Helper basado en https://copy.fail/
BPF-LSM mitigation for CVE-2026-31431 (Copy Fail) — denies AF_ALG socket creation cluster-wide
Copy Fail (CVE-2026-31431) LPE exploit. A clean, multi-arch Python reimplementation targeting the Linux kernel AF_ALG page cache vulnerability.
Copy Fail - CVE-2026-31431
Detection, mitigation, and IOC toolkit for Copy Fail CVE-2026-31431 Linux kernel page-cache privilege escalation
Detector + PoC for Linux page-cache write vulnerabilities: Copy Fail (CVE-2026-31431) and Dirty Frag (CVE-2026-43284/43500). Authorized security research only.
zephrfish/copyfail-cve-2026-31431 source repository
CVE-2026-31431 容器逃逸
Detection Only.. working on an exploit PoC
CVE-2026-31431 eBPF fix
CVE-2026-31431-killed page-cache exploit — code exec into containers sharing the same image layer
CVE-2026-31431 (Copy Fail) PoC - Linux kernel page cache corruption via authencesn AF_ALG + splice()
CopyFail (CVE-2026-31431): Linux kernel page-cache PrivEsc PoC + the only public detection tool. Novel PAM auth-bypass vector + Sigma/auditd/eBPF rules.
Copy Fail exploit (CVE-2026-31431) but in Rust.
Exploit for cve-2026-31431
mitigation of cve-2026-31431 using ftrace
Copy Fail -- CVE-2026-31431 - Hardened AF_ALG/splice page-cache mutation primitive for RedTeam Ops.
Safe detection tooling for CVE-2026-31431 "Copy Fail" and CVE-2026-43284 "Dirty Frag" — a local privilege escalation in the Linux kernel's algif_aead module affecting all major distributions since 2017.
Research artifacts, PoC scripts, and lab assets for the Copy Fail Linux local privilege escalation writeup on https://4xura.com/binex/kernel/copy-fail
CopyFail is a proof-of-concept exploit for CVE-2026-31431, targeting a memory corruption vulnerability in the Linux Kernel Crypto API (`AF_ALG`). The exploit leverages the `splice` system call to perform unauthorized page-cache patching of the `/usr/bin/su` binary, enabling a password-less escalation to root.
CVE-2026-31431 (Copy Fail) PHP PoC
Golang port of copy-fail-cve-2026-31431
CVE-2026-31431 Linux Local Privilege Escalation (LPE) Proof of Concept exploit
BPF LSM blocker for CVE-2026-31431 (Copy Fail) — blocks authencesn AF_ALG binds at runtime without rebooting
desultory/cve-2026-31431 source repository
CVE-2026-31431 RCE Exploit. A critical Linux kernel LPE in the algif_aead crypto subsystem. Any unprivileged user can write 4 bytes into the page cache of any readable file and get root.
shotafry/copyfail-exploits-cve-2026-31431 source repository
b5null/cve-2026-31431-c source repository
eBPF-based daemon to mitigate CVE-2026-31431 on systems where `algif_aead` is built into the kernel, without a reboot!
CVE-2026-31431 is a bug in the handling of scatter-gather I/O operations and page cache references in the Linux kernel cryptographic subsystem — specifically in the AF_ALG socket implementation for AEAD algorithms (crypto/af_alg.c, crypto/aead.c).
ben-slates/cve-2026-31431-exploit source repository
Read-only Bash checker for the Copy Fail Linux kernel vulnerability (CVE-2026-31431)
Clean C version of Copy Fail (CVE-2026-31431) - Linux Local Privilege Escalation exploit using AF_ALG + authencesn + splice primitive. Overwrites the page cache of /usr/bin/su with a tiny setuid shellcode to gain root privileges. Educational proof-of-concept only.
bigwario/copy-fail-cve-2026-31431-c source repository
CVE-2026-31431 - Copy Fail PoC (Python 3.10+)
kanbaraakihito/cve-2026-31431-copyfail-rs source repository
A defensive security toolkit specifically engineered to detect and mitigate CVE-2026-31431 and similar nftables / AF_ALG vulnerabilities. Includes non-destructive behavioral probes, module blacklisting automation, and Auditd/eBPF rules for real-time threat detection.
CVE-2026-31431 - standalone binary exploit (no Python required)
CVE-2026-31431 - Copy Fail | Linux LPE via authencesn page cache write. Unprivileged user to root on most distros since 2017. PoC in C and Python.
sl4ck0th/cve-2026-31431-poc source repository
Temporarily removes the root password using CVE-2026-31431
Linux local privilege escalation exploits for CVE-2026-31431, including raw and recoverable workflows.
xerxes-2/cve-2026-31431-rs source repository
Linux Privilege Escalation | AF_ALG Crypto Abuse → Exploiting AEAD socket handling (CVE-2026-31431) to gain root via kernel-level manipulation
CVE-2026-31431
Easy-to-understand version of CVE-2026-31431
Python implementation of copyfail (CVE-2026-31431)
A modernized version of Copy Fail PE
PoC shell exploit for CVE-2026-31431 (copy_fail) — Linux LPE via AF_ALG + splice page-cache overwrite. Single-shot, no race condition, kernel 4.9–6.18.
One-liner Python LPE for CVE-2026-31431 (CopyFail2). No compilation, no dependencies beyond Python+OpenSSL. Just curl | python3 and get root on Linux 6.5+.
Read-only checker for CVE-2026-31431 (algif_aead local root). Reports kernel/module state and suggests mitigations.
基于CVE-2026-31431的自动root脚本
根据py版本,升级成了c和rust版本,带加密混淆、0依赖(仅技术学习与分享)
percivalll/copy-fail-cve-2026-31431-statically-poc source repository
CopyFail PoC in C
CVE-2026-31431 (Copy Fail) — Rust exploit PoC + eBPF runtime defense. Blocks Linux kernel AF_ALG page-cache LPE without rebooting (LSM/kprobe dual-mode).
Analysis and ARM64 reproduction of Copy Fail (CVE-2026-31431)
CVE-2026-31431-Patch
yuspring/cve-2026-31431-poc source repository
CVE-2026-31431 漏洞利用python脚本,支持arm64,x86架构
go CVE-2026-31431 (CopyFail) local privilege escalation exploit
CVE-2026-31431 (copy-fail) - Go port of grenkoca's PoC with automatic SUID world-readable binary enumeration
More portable PoC of copyfail LPE (CVE-2026-31431) that works on Alpine Linux
CVE-2026-31431
Automated Metasploit post-exploitation module for CVE-2026-31431 ("Copy Fail"). Weaponizes a deterministic logic flaw in the Linux kernel AF_ALG subsystem to achieve local privilege escalation (LPE) to root by safely corrupting a setuid binary directly in the shared Page Cache (RAM) without modifying files on disk
Golang implementation of CopyFail CVE-2026-31431
CVE-2026-31431
Archived, moved to codesource/cve-check. Shell script to detect CVE-2026-31431 (Copy Fail) exposure and mitigations on Linux systems: kernel check, module state, boot params, AF_ALG reachability, and distro patch status.
Copy Fail - CVE-2026-31431 in golang
Detect and mitigate CVE-2026-31431 (Copy Fail) on Linux systems.
Docker mitigation for CVE-2026-31431 ('Copy Fail'). Includes Kubernetes templates as well.
CVE-2026-31431 Copy Fail
copy_fail:CVE-2026-31431
Rewrite https://github.com/theori-io/copy-fail-CVE-2026-31431 to C code
Fast, auditable Linux mitigation for CVE-2026-31431 Copy Fail: algif_aead block, verification, and AF_ALG seccomp hardening.
CVE-2026-31431 getroot from a Turkish Cryptominer
Vulnerability detection and mitigation tool for Copy Fail and Dirty Frag bugs (CVE-2026-31431, CVE-2026-43284, CVE-2026-43500)
CVE-2026-31431 (Copy Fail) — Live Process Code Injection PoC
Interactive DFIR walkthrough of CVE-2026-31431 (Copy Fail) - from SIEM alert to confirmed verdict. Real Volatility 3 commands, verified methodology.
luotian2/cve-2026-31431 source repository
Fully LLM generated exploit for CVE-2026-31431, written in C
AI for Work. x86_64 tested
Ansible playbook for detecting and remediating CVE-2026-31431 (Copy Fail) - Linux kernel local privilege escalation vulnerability
pascal-gujer/cve-2026-31431 source repository
PoC of CVE-2026-31431
Python exploit demonstrating an in‑memory AF_ALG‑based kernel vulnerability on certain Linux kernels.
pulentoski/cve-2026-31431 source repository
Paranoid disable whole AF_ALG + algif_* modules - Copy Fail (CVE-2026-31431)
sec17br/cve-2026-31431-copy-fail source repository
trevocastles/cve-2026-31431-copy-fail source repository
Detect and mitigate CVE-2026-31431
Educational rewrite of the Copy Fail PoC (CVE-2026-31431) — Linux kernel LPE via algif_aead in-place crypto + splice() page-cache write
Multi-language implementation and compatibility with older versions of Python.
Logic bug in the kernel's authencesn cryptographic template that escalate privilege
Proof-of-concept and technical analysis of CVE-2026-31431 (Copy Fail), a Linux kernel privilege escalation vulnerability affecting page cache integrity.
6abc/copy-fail-cve-2026-31431-dirty-frag-cve-2026-43284 source repository
Temporary mitigation for Linux kernel local privilege escalation CVE-2026-31431 (AF_ALG interface)
Golf Challenge for https://copy.golf/
Per-distro mitigation scripts for CVE-2026-31431 ("Copy Fail") Linux kernel LPE.
A tiny explanation + PoC for CVE-2026-31431
danimrtzp/cve-2026-31431-revshell source repository
An adapted version of the copy fail exploit to use parameters instead of dropping you into a root shell
Exploit for CVE-2026-31431 (Copy Fail)
Zig implementation of the Copy Fail Linux LPE (CVE-2026-31431) https://copy.fail for security-research and defensive-detection purposes
euriconicacio/copy-fail-cve-2026-31431-poc source repository
CVE-2026-31431 C语言复现的poc,可在目标环境没有py时进行利用
CVE-2026-31431 cleaned up to be readable and thoroughly explained, including the embedded ELF
A CVE-2026-31431 implementation in c++ and inline assembly dependency free
Copyfail (CVE-2026-31431) exp rewrite by Golang
Container escape on any docker container with healthcheck enabled via CVE-2026-31431
Утилита для Linux, которая проверяет доступность `AF_ALG`/`algif_aead` и помогает оценить риск по `CVE-2026-31431`.
Framework modular Bash para auditar CVE-2026-31431 (CopyFail) y CVEs relacionados del kernel Linux en distros RPM-based (AlmaLinux, Rocky, CentOS Stream 8/9/10)
Copy Fail (CVE-2026-31431) is a logic flaw in the Linux kernel's algif_aead module — part of the AF_ALG userspace crypto API. It was disclosed on April 29, 2026 by Theori / Xint Code.
Bu depo, Linux cekirdeginde (kernel) bulunan CVE-2026-31431 (Copy Fail) zafiyetini icermektedir. Zafiyet, algif_aead modülündeki bir optimizasyon hatasini kullanarak sayfa onbellegindeki (page cache) salt-okunur dosyalari manipule etmeye olanak tanir.
PoC exploit for CVE-2026-31431 (Copy Fail) — algif_aead page-cache scratch-write LPE
Here is patch script to CVE-2026-31431 CopyFail
CVE-2026-31431 is a deterministic race‑free logic bug in the Linux kernel
BPF LSM blocker for CVE-2026-31431 (Copy Fail) - zero-reboot remediation for OpenShift 4
python3.10以下没有os.splice,搞了一个3.10以下版本也可以用的
CVE-2026-31431 in C for aarch64 and amd64
CVE-2026-31431 "Copy Fail" – Reachability Checker
CVE-2026-31431 in C
PoC: fully unprivileged container escape to node-level code execution on Kubernetes via CVE-2026-31431 page-cache corruption + shared image layers. Validated on Alibaba Cloud ACK, Amazon EKS and Google GKE.
rippsec/cve-2026-31431-copy-fail source repository
CVE-2026-31431 Copy Fail — Linux kernel LPE tester via MCP
CVE-2026-31431 - Guide de Remédiation et Mesures de Protection
Analísis - POC - Mitigación
Copy Fail exploit for Ubuntu 20.04 with legacy Python versions, including script to hide Copy Fail.
A dual verification File Integrity Monitor designed to detect and defend against the "Copy Fail" kernel vulnerability. (CVE-2026-31431)
oen liner CVE-2026-31431 test. Created 'sandbox' on sudo user and tests if ir can escape to root
Permanent Mitigation Script for CVE-2026-31431
tematemaru/cve-2026-31431-simple-test source repository
Original repo: https://github.com/theori-io/copy-fail-CVE-2026-31431
BPF prog to fix CVE-2026-31431
CVE-2026-31431EXP
CVE-2026-31431
0xfuffm3/cve-2026-31431-copyfail source repository
CVE-2026-31431检测和测试
CVE-2026-31431: "Copy Fail" - Linux Kernel Local Privilege Escalation
Research PoC for Linux Kernel LPE (CVE-2026-31431 - Copy Fail). Educational and security research purposes only.
Wazuh SCA Linux hardening policy for Copy Fail (CVE-2026-31431)
Educational Proof of Concept for CVE-2026-31431 / Copy Fail Linux local privilege escalation via AF_ALG algif_aead
adilkurtulmus/linux-copy-fail-cve-2026-31431 source repository
arkdev1/check-cve-2026-31431 source repository
he recently disclosed CVE-2026-31431 — also known as Copy Fail — is not something to take lightly.
astounds/copy-fail-cve-2026-31431 source repository
b1gn0se/copy-fail-cve-2026-31431 source repository
Elegant C++ exploit for CVE-2026-31431 (Copy Fail) using AF_ALG authenticated encryption + splice(2) to overwrite setuid binary memory
CVE-2026-31431 cpp version for x86_64
Copy Fail (CVE-2026-31431) is a Linux LPE vulnerability in the kernel crypto API via AF_ALG. It allows unprivileged users to overwrite page cache data of SUID binaries (e.g., /usr/bin/su), gaining root access.