Linux Copy Fail Flaw Enables Local Root Access on Affected Kernels

· Original article ↗

Summary

Copy Fail (CVE-2026-31431) lets an unprivileged local attacker gain root through a controlled page-cache write. A public 732-byte PoC targets major Linux distributions; upstream fixes and interim AF_ALG/algif_aead mitigations are available.

Key points

  • The flaw affects Linux kernels dating to 2017 and is tracked as CVE-2026-31431.
  • The article describes a controlled 4-byte page-cache write using the AF_ALG interface and splice().
  • Theori says its 732-byte Python PoC gained root on Ubuntu 24.04, Amazon Linux 2023, RHEL 10.1, and SUSE 16.
  • The article says the flaw originated in an in-place crypto optimization in the authencesn template.
  • Upstream fixes revert the in-place behavior and are available in kernel versions 6.18.22, 6.19.12, and 7.0.
  • Interim mitigations include disabling AF_ALG or the algif_aead module; the article recommends prioritizing multi-tenant hosts, container clusters, CI runners, and cloud SaaS running user code.

Article Details

Vulnerability Types
  • Local privilege escalation
  • Kernel page-cache write vulnerability
Affected Versions
  • Linux kernel 4.14 and later, before the applicable upstream fix
Exploitation Status
unknown
Exploit Availability
public_poc
Patch Status
partial
Workarounds
  • Disable AF_ALG socket creation.
  • Disable the algif_aead module.

MITRE ATT&CK

CVE

People

Vendors

Products

Related Articles