Summary
CVE-2026-31431— the “Copy Fail” vulnerability—is a critical local privilege escalation (LPE) flaw in the Linux kernel’s cryptographic subsystem that allows unprivileged users to gain root access with near-perfect reliability. Boasting a CVSS score of 7.8 and affecting nearly every mainstream distribution since 2017 (including Ubuntu, RHEL, and Amazon Linux), Copy Fail has been added to the CISA KEV catalog due to its active exploitation and portable, low-footprint nature. In the following blog, SafeBreach Group Product Manager Uzi Galili explores the threat and outlines the SafeBreach attack coverage available within the SafeBreach Exposure Validation Platform to help security teams understand their level of vulnerability to this threat.
A newly disclosed Linux kernel vulnerability, identified as CVE-2026-31431 and dubbed “Copy Fail,” is drawing significant attention across the security community. As organizations continue to rely heavily on Linux-based infrastructure, from cloud workloads to sensitive servers and embedded systems, this flaw reinforces a familiar but critical lesson: patching alone is not a strategy; validation is critical.
The CVE was publicly disclosed on April 29 (after being assigned on April 22) with a CVSS score of 7.8 and a working exploit already available in the wild. It was quickly added to the CISA Known Exploited Vulnerabilities (KEV) catalog on May 1, underscoring its real-world risk.
In this blog, we break down what the Copy Fail vulnerability is, how attackers can exploit it at a high level, and what security teams should prioritize to reduce risk now.
What is CVE-2026-31431?
Copy Fail is a local privilege escalation (LPE) vulnerability rooted in a logic flaw in the Linux kernel’s cryptographic subsystem, specifically in the algif_aead module of the AF_ALG (userspace crypto API) interface. Under certain conditions, an attacker with local access can exploit this flaw to escalate privileges to root, effectively gaining full control over the affected system.
The vulnerability was silently introduced in 2017 when the kernel transitioned Authenticated Encryption With Associated Data (AEAD) operations to in-place processing. The authencesn cryptographic template writes four “scratch bytes” at a fixed offset during decryption. Due to how this optimization chains page cache pages directly into the output scatterlist via splice(), those bytes can end up written into the page cache of any readable file supplied through the socket, bypassing normal file permission enforcement.
In practical terms, this means an unprivileged user can feed a “setuid” binary (such as /usr/bin/sudo) into this path, corrupt its in-memory representation, and effectively modify a privileged binary without ever writing to disk. The result: root access.
While Copy Fail is not remotely exploitable on its own, it requires only a low-privilege foothold. Once that foothold exists, privilege escalation can be achieved in seconds. In modern attack chains, this makes it a highly effective post-exploitation technique.
What Makes Copy Fail So Dangerous
What sets Copy Fail apart from previous Linux LPE vulnerabilities like Dirty Cow (CVE-2016-5195) and Dirty Pipe (CVE-2022-0847) is its combination of reliability, portability, and simplicity:
- A straight-line logic flaw. It works deterministically, every time, without timing windows or retry loops.
- No per-distro tuning. The same 732-byte Python script roots Ubuntu, Amazon Linux, RHEL, and SUSE without recompilation or version-specific offsets.
- No compiled payloads. The exploit uses only Python’s standard library and standard kernel syscalls (socket, setsockopt, splice, sendmsg, recvmsg), leaving a minimal forensic footprint.
- Nine years of exposure. Every mainstream Linux distribution shipping a kernel from 2017 onward is affected.
SafeBreach Coverage
The SafeBreach Labs team has developed simulation content for CVE-2026-31431 that is now available in the SafeBreach Exposure Validation Platform. Our coverage is designed to safely validate whether your security controls can detect or prevent each stage of the Copy Fail attack chain.
SafeBreach customers can run this simulation on your environment by searching for 31431 and choosing attack “#10491 Linux kernel Copy Fail vulnerability CVE-2026-31431” from the playbook.

Select the relevant Simulator and run the attack.

Conclusion
Copy Fail represents a rare combination of attributes that make it a dangerous vulnerability: it’s reliable, portable, low-noise, and broadly impactful. With nearly nine years of exposure, a publicly available exploit, and inclusion in the CISA KEV catalog, it is only a matter of time before both opportunistic and targeted attackers incorporate it into their toolkits at scale.
For security teams, the question is no longer “Are we vulnerable?” What they need to ask now is “Would we detect or stop this attack in our environment?”
SafeBreach helps you answer that question with confidence. Run the latest SafeBreach attack simulation today to ensure your defenses stand ready against this latest threat.
Not a SafeBreach customer yet? Learn more about the SafeBreach Exposure Validation Platform then schedule a personalized demo to see it in action.