PortGate

Advisories · Linux & SSH

CVE-2026-31431 High CVSS 7.8 Actively exploited

Copy Fail: Linux kernel page-cache privilege escalation

Disclosed 2026 · Last reviewed 2 Dec 2026

A logic bug in the kernel's authenticated-encryption template lets an unprivileged local user write into the page cache and become root. CISA added it to its exploited list on 1 May 2026.

What happened

The crypto template mishandled which side of an operation owned a buffer, so an unprivileged caller could make the kernel write controlled data into cached pages of files it could only read. Changing a cached setuid binary is enough for root.

Affected and patched versions

Affected
Linux kernels before 6.18.22 and 6.19.12, going back about nine years, unless the distribution has backported the fix.
Patched
Upstream 6.18.22, 6.19.12 and 7.0; distribution kernels per their trackers.

How to check your server

Check

uname -r
apt list --installed 'linux-image*' 2>/dev/null | grep installed

How to fix and harden

  1. Compare uname -r with your distribution's fixed kernel for CVE-2026-31431.
  2. Install the kernel update and reboot.
  3. On shared hosts, limit who can run code locally until the reboot is done: a web shell is a local user.

Fix

sudo apt update && sudo apt full-upgrade -y
sudo reboot

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON