A Linux kernel vulnerability nicknamed Copy Fail, tracked as CVE-2026-31431, is being exploited to gain root access. The flaw lets an unprivileged local user alter the in-memory copy of setuid programs and use them to escalate privileges. It was discovered and reported by Theori and Xint.
CISA added CVE-2026-31431 to its Known Exploited Vulnerabilities catalog and gave US federal civilian agencies until May 15, 2026 to remediate. Qualys notes that the affected code dates back to 2017, so the exposure spans almost every mainstream distribution.
What happened
According to Qualys, the bug is a logic flaw in how the kernel’s AEAD crypto implementation, algif_aead, handles scatter-gather lists. Through AF_ALG sockets combined with splice(), a local user can write four bytes beyond intended bounds into the page cache of any file they can read.
The page cache holds in-memory copies of files, including executables. Modifying the cached copy of a setuid binary such as su changes what runs the next time it is executed, without changing the file on disk. That lets an attacker inject code into a privileged program and obtain root, and it means file integrity checks against disk contents will not catch the change.
Qualys also describes container scenarios: because image layers can share cached pages, corruption can propagate across containers on the same host, and a publicly released Kubernetes proof of concept uses a privileged process on the node to complete the escalation.
Who is affected
Qualys reports that kernels built between 2017 and the 2026 fix are affected when the algif_aead module is available, which is the default on Ubuntu, RHEL, SUSE, Amazon Linux, Debian, Fedora, Arch and the Rocky, Alma and Oracle Linux family.
| Distribution or tree | Status reported by Qualys |
|---|---|
| Upstream Linux kernel | Patched (6.18.22, 6.19.12, 7.0) |
| Ubuntu, Debian, RHEL, Fedora, SUSE | Patched |
| CloudLinux, Arch Linux | Patched |
| Amazon Linux | Unpatched at time of publication |
Severity and exploitation
Qualys calls the flaw critical but does not list a CVSS score or vector. Exploitation in the wild is confirmed by its KEV listing, and public proof-of-concept code exists. Qualys assigns a Qualys Vulnerability Score of 95 and covers the issue with a long list of distribution-specific QIDs, among them 6683175, 6133395, 164402 and 387198.
What defenders should do now
- Install your distribution’s patched kernel and reboot; kernel fixes do not take effect until the new kernel is running.
- Prioritize multi-tenant systems, shared build servers and Kubernetes nodes, where local users or containers run untrusted code.
- Where patching must wait, assess whether the
algif_aeadmodule can be blocked from loading without breaking workloads. - For Amazon Linux, follow the vendor’s advisory for the fixed kernel release.
- Treat the kernel version, not the on-disk binaries, as the indicator of exposure, since tampering occurs in memory.
SCVM analysis
Local privilege escalation bugs are often deprioritized because they need an initial foothold, but in containerized and shared environments that foothold is the normal operating model. Copy Fail’s container propagation path makes Kubernetes nodes the highest-risk population.
The practical gap in most programs is reboots: patched kernel packages installed but not running. Reporting should compare the running kernel against the fixed version, not just installed packages.
Sources
- Linux Kernel Vulnerability Exploited in the Wild (Copy Fail) (CVE-2026-31431)
- Linux kernel stable commit a664bf3d603d
- CISA Known Exploited Vulnerabilities Catalog
About this article: produced by the SCVM Newsroom with AI assistance from the public sources linked above, enriched with NVD, FIRST EPSS and CISA KEV data, and checked by automated quality controls under our editorial policy. Spotted an error? Request a correction.

