Skip to content

Copy Fail (CVE-2026-31431): Linux kernel root exploit, patches and how to check

Copy Fail, a Linux kernel privilege escalation disclosed on 29 April 2026, is fixed in distro kernels. Here is how to confirm you are patched.

Seeding.Top editorial team3 min read

This article was drafted with AI assistance.

On 29 April 2026, researchers from Theori and the Xint Code team published details of Copy Fail (CVE-2026-31431). It is a local privilege escalation bug in the Linux kernel's algif_aead module, part of the AF_ALG userspace crypto interface. A user who can already run code on the machine can use it to become root (Xint write-up).

Six months later, Debian, Ubuntu and Red Hat have all shipped fixed kernels. The open question for most readers is whether their own machine is actually running one.

What the bug is

According to Xint, the flaw goes back to a 2017 kernel change that made AF_ALG AEAD operations work in place. An unprivileged user gets a small write into the page cache of any file they can read. That is enough to tamper with a setuid binary such as /usr/bin/su in memory. The researchers describe the exploit as deterministic, with no race to win, and say it worked unchanged on Ubuntu 24.04, Amazon Linux 2023, RHEL 10.1 and SUSE 16.

Because the page cache is shared between containers on the same host, Xint calls it a container escape primitive as well. Ubuntu's description also says it can "possibly escape a container".

Timeline from the Xint disclosure:

  • 23 March 2026: reported to the kernel security team
  • 1 April 2026: fix committed to mainline (a664bf3d603d)
  • 22 April 2026: CVE assigned
  • 29 April 2026: public disclosure

CVSS 3.1 is 7.8 (High) (NVD). CISA added it to its Known Exploited Vulnerabilities catalog on 1 May 2026, so exploitation has been seen in the wild (NVD/CISA KEV entry).

It is a local bug. An attacker first needs a shell or code execution on the box. On a shared seedbox the other users already have that, which is why multi-user hosts are the main concern.

Current status: patched kernels

Fixed kernel packages, from the distro trackers:

Distribution

Fixed kernel package

First fix

Debian 13 trixie

linux 6.12.85-1

DSA-6238-1, 30 April 2026

Debian 12 bookworm

linux 6.1.170-1

DSA-6243-1, 1 May 2026

Ubuntu 24.04 noble

linux 6.8.0-117.117

Ubuntu CVE page

Ubuntu 22.04 jammy

linux 5.15.0-179.189

same

RHEL 8/9/10

see bulletin

RHSB-2026-002 (marked resolved)

Ubuntu users on HWE or cloud kernels (-aws, -azure and so on) should check the Ubuntu page for their specific package.

If you run your own server or VPS

Check what kernel is actually running, not just what is installed:

```bash
uname -r

Debian also shows the package version here:

uname -v
```

On Ubuntu, package 6.8.0-117.117 shows up in uname -r as 6.8.0-117-generic. Anything at or above the fixed version for your release is patched.

If you are behind, update and reboot. A new kernel does nothing until you boot into it.

```bash

Debian / Ubuntu

sudo apt update && sudo apt full-upgrade
sudo reboot

RHEL / Rocky / AlmaLinux / Fedora

sudo dnf upgrade --refresh kernel
sudo reboot
```

Temporary mitigation if you cannot reboot yet

Xint's recommended workaround is to stop the algif_aead module from loading. Few programs use it, but check before you apply it on a box with unusual crypto workloads. The commands need root, so use tee rather than a plain redirect under sudo:

```bash
echo "install algif_aead /bin/false" | sudo tee /etc/modprobe.d/disable-algif-aead.conf
sudo rmmod algif_aead 2>/dev/null
lsmod | grep algif_aead # no output means it is not loaded
```

Remove the file once you are on a fixed kernel if you want the module back.

Docker and containers

The usual compose hardening (cap_drop, no-new-privileges, non-root PUID/PGID) is still good practice, but it does not stop this bug, because the write happens through the shared kernel page cache. The container-side measure Xint mentions is a seccomp profile that blocks AF_ALG socket creation. In practice, patching the host kernel is the fix.

If you rent a shared seedbox

You cannot patch the host kernel yourself. You can see what it is running:

```bash
uname -r
lsmod | grep algif_aead
```

Compare the version with your provider's distribution tracker, or ask support which kernel the node runs and whether it has been rebooted since the fix.

Separately, keep the obvious secrets off shared slots where you can: rclone tokens, tracker passwords reused elsewhere, and SSH private keys. rclone config encryption set (rclone 1.68 and later, docs) puts a password on rclone.conf.

Sources

Source: xint.io