CTIPilot
AI-generated · no human review · verify critical claims against the linked source. how it works →
← Back to Daily brief 2026-05-09
NOTABLECVE-2026-31431exploitedupdatedNATOB2vulnerability

CVE-2026-31431 Copy Fail: Linux kernel AF_ALG page-cache write gives any local user root on mainstream distributions, public exploit, CISA KEV-listed (CVSS 7.8)

Copy Fail turns an unprivileged Linux shell into root with one portable script; CISA lists it as exploited

Analysis

Xint (Theori) disclosed "Copy Fail" on 2026-04-29: a flaw in the Linux kernel's algif_aead, reachable through AF_ALG, the socket type that exposes the kernel crypto subsystem to unprivileged userspace, lets a local unprivileged user trigger a deterministic, controlled 4-byte write into the page cache by combining AF_ALG with splice() (Xint, 2026-04-29). Corrupting the cached copy of a setuid binary such as su turns that write into root, and the same exploit script worked unchanged on Ubuntu 24.04, Amazon Linux 2023, RHEL 10.1 and SUSE 16 (Xint, 2026-04-29). The bug comes from a 2017 in-place optimization that mainline removed by reverting algif_aead to out-of-place operation (Xint, 2026-04-29). CERT-EU rates it CVSS 7.8 (CERT-EU, 2026-04-29), CISA added it to its Known Exploited Vulnerabilities catalog on 2026-05-01 (CISA KEV catalog, 2026-05-01), and Ubuntu ships fixed kernels 5.15.0-179.189 for 22.04 and 6.8.0-117.117 for 24.04 (Ubuntu, 2026-04-22); Red Hat states that all its fixes are available (Red Hat RHSB-2026-002). Microsoft reports limited in-the-wild privilege escalation involving su that may be associated with either Dirty Frag or Copy Fail (Microsoft Security Blog, 2026-05-08).

Cited evidence

It lets an unprivileged local user trigger a deterministic, controlled 4-byte write into the page cache of any readable file on the system.

Xint (Theori) 2026-04-29

While the affected module cannot be blocklisted due to being built into the kernel, the affected functions themselves can be blocked using the following boot arguments:

Red Hat RHSB-2026-002 2026-04-30

Updates2

Correction

CISA added CVE-2026-31431 to its catalog on 2026-05-01 (CISA KEV catalog, 2026-05-01). Ubuntu's fixed kernels are 5.15.0-179.189 for 22.04 and 6.8.0-117.117 for 24.04 (Ubuntu, 2026-04-22); the earlier kernel versions had no source. Microsoft reports limited su-based privilege escalation that "may be indicative of techniques associated with either" Dirty Frag or Copy Fail (Microsoft Security Blog, 2026-05-08); it does not describe the two being used as a complementary pair or an initial access through SSH credential stuffing.

Correction

Blacklisting algif_aead does not work on Red Hat Enterprise Linux: Red Hat states that the module "cannot be blocklisted due to being built into the kernel" and gives the boot argument initcall_blacklist=algif_aead_init to block the affected functions, with initcall_blacklist=af_alg_init as an alternative that blocks the AF_ALG interface itself; it warns of possible performance impact on functionality that uses kernel cryptographic functions, and states that all its fixes are available (Red Hat RHSB-2026-002). Xint also gives blocking AF_ALG socket creation with seccomp as an interim measure (Xint, 2026-04-29).

Sources6

Revision history

  1. Published 2026-05-09-migrated
  2. Correction 2026-10-11T1307Z-audit

    The entry was a bare migrated update that never said what Copy Fail is. CISA added the flaw to its catalog on 2026-05-01, not 2026-05-06; the Ubuntu and RHEL kernel versions given were not the vendors' fixed builds; and Microsoft does not describe the two flaws as used complementarily or via SSH credential stuffing, only limited su escalation that may be either. CERT-EU's advisory is dated 2026-04-29, the KEV catalogue landing page is dropped, and the entry is rewritten as a vulnerability entry from Xint's disclosure, CERT-EU, the KEV record and Ubuntu's tracker, with the CVE record, a rating, an ATT&CK mapping, and labelled guidance, including the module blacklist as the interim measure. A reference to the WordPress WP2Shell entry, which also cites this CVE, is added.

    Changed: kind title headline summary event_date tags cves affected_products techniques sources evidence sourcing_note classification body references

  3. Correction 2026-10-21T1149Z-audit

    The interim mitigation was given as a module blacklist for every distribution, but Red Hat builds algif_aead into its kernel, where it cannot be blocklisted; Red Hat's boot argument that blocks the affected functions is now given for RHEL, together with Xint's seccomp option and Red Hat's statement that all its fixes are available.

    Changed: summary body sources evidence

PROVENANCE

AI-generated · no human review · this permalink is the shareable record for the finding · verify operationally critical claims against the linked primary source.