Copy Fail Linux Kernel Flaw Enables Local Privilege Escalation to Root

· Original article ↗

Summary

CVE-2026-31431 lets unprivileged local users exploit a Linux kernel flaw to gain root and, in some scenarios, escape containers. Upstream has fixed it, but distribution patches remain uneven; teams should prioritize updates and mitigations.

Key points

  • The flaw affects Linux kernel versions built from 2017 until the fix and allows a local unprivileged user to alter four controlled bytes in the page cache of a readable file.
  • The exploit chains a flaw in algif_aead with AF_ALG sockets and splice(), potentially modifying privileged binaries such as /usr/bin/su at runtime.
  • Container escape may be possible when an unprivileged container shares a base image with a privileged container on the same node.
  • A fix is available upstream, but distribution patching was incomplete as of May 1, 2026; teams should check their distribution's status and update to a fixed kernel.
  • Temporary mitigations include disabling the algif_aead module or blocking AF_ALG socket creation with seccomp; effectiveness varies by distribution.
  • Prioritize affected hosts that run untrusted code, including multi-tenant services and public-repository CI runners.
  • Possible detection signals include suspicious AF_ALG activity, unexpected delayed module loading, use of curl to hxxps://copy[.]fail/exp, and malformed su log entries; these indicators are incomplete and should be correlated.

Article Details

Vulnerability Types
  • Linux kernel logic flaw in AEAD crypto implementation (algif_aead)
  • Out-of-bounds write
  • Local privilege escalation
  • Container escape
Affected Versions
  • Linux kernel versions built between 2017 and the 2026 patch release
Exploitation Status
reported
Exploit Availability
public_poc
Patch Status
partial
Workarounds
  • Disable the vulnerable algif_aead module.
  • Block AF_ALG socket creation via seccomp policies.

MITRE ATT&CK

CVE

People

Vendors

Products

Related Articles