Linux Copy Fail Flaw Enables Local Root Access on Affected Kernels

Summary
Copy Fail (CVE-2026-31431) lets an unprivileged local attacker gain root through a controlled page-cache write. A public 732-byte PoC targets major Linux distributions; upstream fixes and interim AF_ALG/algif_aead mitigations are available.
Key points
- The flaw affects Linux kernels dating to 2017 and is tracked as CVE-2026-31431.
- The article describes a controlled 4-byte page-cache write using the AF_ALG interface and splice().
- Theori says its 732-byte Python PoC gained root on Ubuntu 24.04, Amazon Linux 2023, RHEL 10.1, and SUSE 16.
- The article says the flaw originated in an in-place crypto optimization in the authencesn template.
- Upstream fixes revert the in-place behavior and are available in kernel versions 6.18.22, 6.19.12, and 7.0.
- Interim mitigations include disabling AF_ALG or the algif_aead module; the article recommends prioritizing multi-tenant hosts, container clusters, CI runners, and cloud SaaS running user code.
Article Details
- Vulnerability Types
- Local privilege escalation
- Kernel page-cache write vulnerability
- Affected Versions
- Linux kernel 4.14 and later, before the applicable upstream fix
- Exploitation Status
- unknown
- Exploit Availability
- public_poc
- Patch Status
- partial
- Workarounds
- Disable AF_ALG socket creation.
- Disable the algif_aead module.
MITRE ATT&CK
CVE
People
Vendors
Products
Amazon Linux 2023Theori used its Xint Code platform to find the flaw and published a 732-byte Python PoC that roots Ubuntu 24.04, Amazon Linux 2023, RHEL 10.1, and SUSE 16.Fedora 42“Fedora 42 and newer have updates, but no official advisory or acknowledgement of CVE-2026-31431,” Dormann says.Linux kernelTheori reported the finding to the Linux kernel security team on March 23, and patches became available within a week.RHEL 10.1Theori used its Xint Code platform to find the flaw and published a 732-byte Python PoC that roots Ubuntu 24.04, Amazon Linux 2023, RHEL 10.1, and SUSE 16.SUSE 16Theori used its Xint Code platform to find the flaw and published a 732-byte Python PoC that roots Ubuntu 24.04, Amazon Linux 2023, RHEL 10.1, and SUSE 16.Ubuntu 24.04 LTScompany developed and tested a “100% reliable” Python-based exploit for four Linux distributions (Ubuntu 24.04 LTS, Amazon Linux 2023, RHEL 10.1, and SUSE 16), the researchers say that the 732-byte “script rootsXint CodeTheori discovered the flaw using its Xint Code platform and released a 732-byte Python PoC that roots major distributions while upstream patches and interim mitigations like disabling the algif_aead module are being
