# Copy Fail (CVE-2026-31431) — AI-Assisted Scan Finds 9-Year-Old Linux Root Exploit in About an Hour

> Theori's AI-driven scanner Xint Code surfaced a 9-year-old Linux kernel logic bug in roughly an hour, with a 732-byte Python proof-of-concept.

- Org: Theori
- Date: 2026-04-29
- Category: security, tool
- Source: https://copy.fail
- Canonical page: https://ai-tldr.dev/releases/theori-copy-fail-cve-2026-31431/

## In short

Theori's AI-driven security scanner Xint Code surfaced CVE-2026-31431, a logic flaw in the Linux kernel's authencesn AEAD path. A 4-byte page-cache write through AF_ALG and splice grants unprivileged users root on every major distro shipped since 2017.

## What it is

CVE-2026-31431, nicknamed Copy Fail, is an unprivileged-to-root Linux kernel vulnerability in the authencesn AEAD path. Theori found it using Xint Code, a security research tool that runs guided scans across kernel subsystems based on an attack-surface description from a human researcher.

## How it works

splice() places page-cache references for readable files (including setuid binaries) into AF_ALG crypto scatterlists. A 2017 in-place optimization in authencesn writes a 4-byte authentication tag back into that page-cache, corrupting the cached file content for every reader. Chaining this against /etc/sudoers or a setuid binary yields root.

## Why it matters

Every mainstream distro shipped since 2017 — Ubuntu, RHEL, Amazon Linux, SUSE, Debian, Arch — is exposed to a local-root escalation. The proof-of-concept fits in 732 bytes of pure Python with no third-party dependencies, so disclosure-day mitigation is now urgent for any multi-tenant Linux box.

## Who it's for

Linux infrastructure teams, kernel maintainers, security engineers

## Try it

echo 'install algif_aead /bin/false' | sudo tee /etc/modprobe.d/disable-algif.conf && sudo rmmod algif_aead

## Links

- [Advisory](https://copy.fail)
- [Theori Writeup](https://xint.io/blog/copy-fail-linux-distributions)
- [Proof of Concept](https://github.com/theori-io/copy-fail-CVE-2026-31431)
- [Xint Code](https://code.xint.io/)
