If you run Linux servers that anyone other than you can run code on, this is the kernel bug to have patched.
At a glance
- CVE: CVE-2026-31431 — nicknamed “Copy Fail”, a logic bug in the kernel’s
algif_aeadcrypto interface. - Severity: 7.8 (High). Red Hat rates it Important; Ubuntu gives it high priority and calls it a “trivial local privilege escalation”.
- Affected: Linux kernels from 4.14 (the 2017 change that introduced it) up to (but not including) 5.10.254, 5.15.204, 6.1.170, 6.6.137, 6.12.85, 6.18.22 and 6.19.12. Mainline is fixed from 7.0. The researchers got root on Ubuntu 24.04, Amazon Linux 2023, RHEL 10.1 and SUSE 16 with the same script.
- Known exploited: Yes — CISA added it to the KEV list on 2026-05-01, two days after it went public with a working exploit.
What’s going on
Linux lets ordinary programs use the kernel’s crypto code through a socket type called AF_ALG. A 2017 optimisation made one part of it, algif_aead, work “in place”: the same buffer is used for input and output. Combine that with splice(), which passes the kernel’s cached copy of a file around by reference instead of copying it, and pages of a cached file can end up in the buffer the kernel is allowed to write to. One algorithm, authencesn (used by IPsec), borrows 4 bytes just past its output as scratch space — and in this setup those 4 bytes belong to the cached file.
The result, per the researchers at Theori/Xint: any unprivileged local user can write 4 bytes of their choosing into the in-memory copy of any file they can read. Repeat that against a setuid program like /usr/bin/su, run it, and you’re root. There’s no race to win and no per-distro tuning, and the public exploit is a 732-byte Python script. The file on disk never changes — only the cached copy does — so integrity checks that compare on-disk checksums won’t spot it, and a reboot clears it.
What does that mean for your server? It’s a local privilege escalation: it can’t be triggered over the network on its own. But it turns any foothold into root in one step. If a vulnerable plugin, an upload bug or a stolen password gives someone a shell as www-data, Copy Fail takes them the rest of the way. The researchers rank the risk like this:
- High: shared hosts and jump boxes, Kubernetes and container clusters, CI runners (a malicious pull request becomes root on the runner) and platforms that run customer code. Because the page cache is shared across the whole host, it doubles as a container escape — Ubuntu notes this too.
- Medium: ordinary single-tenant servers, where it chains with a web bug or stolen credentials.
- Lower: single-user laptops and workstations.
Timeline
- Reported to the kernel security team: 2026-03-23
- Fix committed to mainline: 2026-04-01 (commit
a664bf3d603d, released in 7.0-rc7) - CVE published: 2026-04-22
- Public disclosure and exploit (copy.fail): 2026-04-29
- Added to CISA KEV: 2026-05-01
- Red Hat kernel updates: RHEL 9 and 10 on 2026-05-04, RHEL 8 on 2026-05-05
== UPDATE ==
All the major distros have shipped fixed kernels. Install one, then reboot — Ubuntu stresses that the reboot is needed even if unattended-upgrades installed the update for you.
Patch available: Yep.
Fixed in: upstream 5.10.254, 5.15.204, 6.1.170, 6.6.137, 6.12.85, 6.18.22, 6.19.12 and 7.0. Distro packages: Debian 11
linux5.10.251-3 (orlinux-6.16.1.170-1deb11u1), Debian 12 6.1.170-1, Debian 13 6.12.85-1; Ubuntu 20.0424.04.1), while Ubuntu 26.04 isn’t affected; RHEL 8linux5.4.0-230.250, 22.04 5.15.0-179.189, 24.04 6.8.0-117.117 (HWE 6.17.0-29.29kernel-4.18.0-553.123.1.el8_10, RHEL 9kernel-5.14.0-611.54.1.el9_7, RHEL 10kernel-6.12.0-124.55.1.el10_1. Distros often backport, so a distro version number can be lower than the upstream one and still be fixed.How to apply: on Debian/Ubuntu run
sudo apt update && sudo apt upgrade; on RHEL, Alma, Rocky or Fedora runsudo dnf upgrade --refresh. Thensudo rebootand checkuname -ragainst your distro’s tracker (linked below).If you can’t patch yet: block the
algif_aeadmodule. This is the same thing Ubuntu pushed out through itskmodpackage on disclosure day:echo "install algif_aead /bin/false" | sudo tee /etc/modprobe.d/disable-algif_aead.conf sudo rmmod algif_aead 2>/dev/nullIf the module is in use and won’t unload, reboot. According to the researchers, this doesn’t touch dm-crypt/LUKS, kTLS, IPsec, SSH or default OpenSSL builds — only software deliberately set up to use AF_ALG (such as OpenSSL’s
afalgengine). For containers, sandboxes and CI, they also recommend blocking AF_ALG sockets with seccomp regardless of patch state. Once you’re on a fixed kernel, the block is no longer needed.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-31431
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-31431
- https://copy.fail
- https://xint.io/blog/copy-fail-linux-distributions
- http://www.openwall.com/lists/oss-security/2026/04/29/23
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a664bf3d603dc3bdcf9ae47cc21e0daec706d7a5
- https://ubuntu.com/blog/copy-fail-vulnerability-fixes-available
- https://ubuntu.com/security/CVE-2026-31431
- https://security-tracker.debian.org/tracker/CVE-2026-31431
- https://access.redhat.com/security/cve/CVE-2026-31431