Flaw in the Linux kernel's AF_ALG crypto interface that lets local users write into the page cache and gain root.
At a glance: Copy Fail is a vulnerability in the area of Software, disclosed on 29 April 2026 and tracked as CVE-2026-31431. It was discovered by Xint Code (Theori). The rights to the logo lie with Theori; the designer is not stated. The logo is in the public domain and may be used without restriction.
Background
A logic bug in the authencesn crypto template, reachable via AF_ALG sockets and splice(), allows a 4-byte write into the page cache. An ordinary local user can use it to gain root, according to the project page with a 732-byte Python script across all tested distributions. The bug had been in the kernel since 2017 and was found by an automated analysis tool.
Discovered by
Xint Code (Theori)
Affected
Linux kernels since 2017, including Ubuntu 24.04, Amazon Linux 2023, RHEL 10.1 and SUSE 16
Flaw in the Linux kernel's AF_ALG crypto interface that lets local users write into the page cache and gain root. A logic bug in the authencesn crypto template, reachable via AF_ALG sockets and splice(), allows a 4-byte write into the page cache. An ordinary local user can use it to gain root, according to the project page with a 732-byte Python script across all tested distributions. The bug had been in the kernel since 2017 and was found by an automated analysis tool. Copy Fail was disclosed on 29 April 2026.
Who discovered Copy Fail?
Copy Fail was discovered by Xint Code (Theori).
What is affected by Copy Fail?
Affected: Linux kernels since 2017, including Ubuntu 24.04, Amazon Linux 2023, RHEL 10.1 and SUSE 16.
How severe is Copy Fail?
kernel.org rates CVE-2026-31431 with a CVSS 3.1 base score of 7.8 out of 10 (high).
Who designed the Copy Fail logo?
The rights to the logo lie with Theori; the designer is not stated.
May I use the Copy Fail logo?
The logo is in the public domain and may be used without restriction. No guarantee; the source commons.wikimedia.org is authoritative.