---
title: "From 732 bytes to nowhere: shutting down Copy Fail in production"
description: "Copy Fail (CVE-2026-31431) is a logic bug in the Linux kernel's algif_aead AF_ALG interface."
url: "https://swe.quest/articles/from-732-bytes-to-nowhere-shutting-down-copy-fail-in-production-8dac32664e09abe4"
canonical: "https://www.together.ai/blog/shutting-down-copy-fail-in-production"
source: "Together AI"
published: "2026-04-30"
difficulty: "medium"
kind: "Incident"
reading_minutes: 4
tags: ["vulnerability-research","linux","multi-tenancy","incident-response","security"]
---

# From 732 bytes to nowhere: shutting down Copy Fail in production

A post on [Together AI](https://swe.quest/sources/together.md), published 2026-04-30, 4 min read, Incident. Original: [https://www.together.ai/blog/shutting-down-copy-fail-in-production](https://www.together.ai/blog/shutting-down-copy-fail-in-production)

## Summary

Copy Fail (CVE-2026-31431) is a logic bug in the Linux kernel's algif\_aead AF\_ALG interface. It gives an unprivileged local user a 4-byte write into the page cache of any readable file. That is enough to patch setuid binaries in memory and gain root without changing the file on disk, so integrity checks miss it. Together AI mitigated it fleet-wide within hours, without reboots, by unloading the module and moving the .ko file out of the module path so it could not reload. They enforced this as an idempotent config-management health check and planned staged, soak-tested kernel rollouts by region. They will keep the module disabled after patching and are adding telemetry for unexpected AF\_ALG use and anomalous privileged-binary behavior.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- Linux kernel modules ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))
- page cache basics ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- container multi-tenancy ([easy posts on Multi-tenancy](https://swe.quest/tags/multi-tenancy.md?difficulty=easy))

## Keywords

CVE-2026-31431, Copy Fail, algif\_aead, AF\_ALG, Linux kernel

## Related posts

- [Mitigating CVE-2026-31431 (“Copy Fail”) in Docker Engine](https://swe.quest/articles/mitigating-cve-2026-31431-copy-fail-in-docker-engine-74f4660a17411d93.md): Docker · 2026-05-27 · Medium · 6 min read · Sandboxing & isolation, Containers, Linux, Vulnerability research
  CVE-2026-31431 ("Copy Fail") is a Linux kernel flaw in the AF\_ALG algif\_aead module.
- [Well, That Wasn't Fun: October 16 '26](https://swe.quest/articles/well-that-wasn-t-fun-october-16-26-83d1120fe160ef39.md): Fly.io · 2026-11-06 · Medium · 7 min read · Incidents & postmortems, Vulnerability research, Linux, Virtualization, Networking
  A Linux kernel bug in IPv4 checksum offload validation let a guest VM direct the host to write its computed checksum into an already-trusted IPv4 header field.
- [Virtualization, Responsible Disclosure, and CVE-2026-99312](https://swe.quest/articles/virtualization-responsible-disclosure-and-cve-2026-99312-bf7fb4a905c9145d.md): DigitalOcean · 2026-11-19 · Easy · 3 min read · Virtualization, Vulnerability research, Linux, Multi-tenancy
  A KVM flaw on AMD hosts with nested virtualization let root inside a guest read and write physical host memory.
- [How We Found and Fixed a Filesystem Corruption Bug](https://swe.quest/articles/how-we-found-and-fixed-a-filesystem-corruption-bug-ec675d8c1746a0c9.md): Heroku Engineering · 2017-02-15 · Medium · 6 min read · Incidents & postmortems, Linux, Containers, Storage systems, Deployment
  A failed Cedar-14 stack image rollback caused Heroku's container tools to truncate and overwrite a disk image while it was still mounted read-only as dynos' root filesystem.
- [Apple MIE exploitation challenge](https://swe.quest/articles/apple-mie-exploitation-challenge-6bb99bffe40b464f.md): Calif · 2026-07-27 · Hard · 8 min read · Vulnerability research, Memory safety, Operating systems, Security
  A public bypass of Apple MIE on macOS 26.4.1 chains two kernel bugs: an SMB create-context type confusion (CVE-2026-64704) in which a malicious server replies with a lease context and the parser reinterprets the client's Resolve ID object as a lease, and a WebDAV information leak (CVE-2026-64699) where the kext copies the full requested length from an uninitialized buffer after accepting an empty successful HTTP response.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
