Linux Kernel Local Privilege Escalation Vulnerability “Copy Fail” (CVE-2026-31431)

A high-severity local privilege escalation vulnerability, “Copy Fail” (CVE-2026-31431), has been identified in the Linux kernel, that affects most mainstream Linux distributions, including Red Hat Enterprise Linux (RHEL), Ubuntu, and SUSE, with kernel built since 2017.  Successfully exploiting this vulnerability could allow an unprivileged local user on a vulnerable kernel to gain root privileges by modifying the in-memory page cache of files.  The attack leaves no trace on disk, making it difficult to detect with standard integrity checks. System owners are strongly recommended to apply the relevant kernel update to the versions listed below as soon as possible once vendor patches become available to mitigate potential risks.

 

Vulnerability

  • Linux Kernel Local Privilege Escalation Vulnerability “Copy Fail” (CVE-2026-31431)
    • This vulnerability, with a CVSS score of 7.8, is a local privilege escalation flaw in the Linux kernel’s algif_aead module, the AEAD socket interface of the kernel’s userspace crypto API (AF_ALG). The flaw originates from an in-place optimisation introduced in 2017 (commit 72548b093ee3), which allows page-cache pages to be placed into a writable destination scatterlist. By chaining an AF_ALG socket operation with splice(), an unprivileged local user can perform a controlled 4-byte write to an arbitrary page-cache-backed page, targeting a setuid binary such as /usr/bin/su to obtain a root shell.

 

Severity Level

  • High

 

Affected and Fixed Versions

Affected Kernel Version Fixed Kernel Version
4.14 N/A
5.10.x 5.10.254
5.15.x 5.15.204
6.1.x 6.1.170
6.6.x 6.6.137
6.12.x 6.12.85
6.18.x 6.18.22
6.19.x 6.19.12
> 7.0 7.0

 

Remediation

  • Apply the fix to patch the kernel : The fix reverts AF_ALG AEAD to out-of-place operation, eliminating page cache pages from the writable scatterlist.
  • Update your distribution’s kernel package : Major distributions should ship the fix through normal kernel package updates.
  • Workaround for Ubuntu or other systems where an immediate update is not feasible, take immediate mitigation to block AF_ALG socket creation via seccomp or blacklist the algif_aead module:
    • echo “install algif_aead /bin/false” > /etc/modprobe.d/disable-algif-aead.conf
      rmmod algif_aead 2>/dev/null
    • or, add this to the kernel boot parameters and reboot:  initcall_blacklist=algif_aead_init

 

Reference

 

 

 

Published on: 4 May 2026