CVE-2026-31431: local privilege escalation requires a host-kernel response
Executive summary
Copy Fail, CVE-2026-31431, was publicly disclosed on 29 April. The Linux kernel flaw can allow an unprivileged local user to obtain root privileges through the algif_aead cryptographic interface. Public proof-of-concept code is available. This is local privilege escalation; it does not independently provide a remote foothold. [1] [2]
A low-privilege application compromise or untrusted job can give an attacker the local execution needed to gain root. Shared build runners, notebook servers, multi-user hosts, and container nodes deserve particular attention because they run code from different users or tenants. Root access may expose other workloads and credentials on the host.
Recommended action: Check the running host kernel against the distribution’s affected and fixed packages. Prioritize systems executing untrusted code, apply the verified mitigation or fixed kernel, and complete the required restart or reboot. Container image updates do not replace the host kernel.
Affected systems and versions
Copy Fail affects Linux kernels with the vulnerable algif_aead implementation and a reachable AF_ALG interface. Determine applicability from the running kernel, distribution package, and runtime configuration. The initial CERT-EU notice lists Ubuntu 26.04 as unaffected; vendor backports and kernel variants require their own package checks. [1] [2] [3]
- Prioritize shared build runners, notebook services, and multi-user hosts where untrusted code can execute.
- For Kubernetes and other container hosts, check the host kernel, effective seccomp policy, AF_ALG access, and workload permissions. Container escape depends on those conditions.
- For single-purpose servers, assess whether an attacker could obtain local execution through an application or account.
- An installed fixed package does not protect a host still running its old kernel. Confirm the booted kernel after reboot or an explicitly supported vendor livepatch.
Recommended actions
- Map Linux hosts and nodes to the teams that operate their kernels. Identify CI runners, notebook platforms, shared shells, and tenant workloads that execute untrusted code.
- Collect running kernel, installed package, distribution, boot time, relevant module status, and runtime restrictions using trusted inventory tools.
- Where a fixed package cannot be deployed immediately, evaluate the documented algif_aead mitigation with the host owner. Check application dependence before disabling the module.
- Preserve suspicious execution and privilege events before rebooting a host under investigation. Plan node draining and workload recovery with the service owner.
Build a rollout by host pool and maintenance boundary. Replace or reboot nodes in a controlled sequence and verify the running kernel after each change. Ensure autoscaling images and node templates use the corrected state. Review untrusted code execution and unexplained root activity during the vulnerable period. Existing host compromise requires incident response beyond the kernel update.
Finding and prioritizing affected systems with Tonic
Use Tonic’s workload, host, image, and ownership relationships to identify shared Linux pools that execute untrusted code. Route the kernel change to the platform team that operates those hosts. Group nodes by their kernel package and maintenance boundary, then check the running kernel and the autoscaling templates that could recreate them.
Technical analysis
A page-cache integrity failure
The researcher describes a flaw in the kernel crypto path involving AF_ALG and splice that allows controlled writes to page-cache-backed data. The local demonstration changes the effective contents of a privileged executable to gain root. Ordinary on-disk file-change checks may therefore miss the activity. Use version and configuration checks for inventory; keep exploit testing out of production. [1]
Container exposure depends on runtime restrictions
Containers share the host kernel, but an escape depends on access to the vulnerable primitives and the runtime’s restrictions. Check effective seccomp policy, AF_ALG socket access, workload permissions, and the host’s affected implementation together. The initial demonstration establishes local root escalation; applicability to a particular container needs separate validation. [1] [2]
Backports require the vendor’s complete fix
The researcher identifies upstream commit a664bf3d603d. [1] Canonical’s dated 30 April patch proposal includes branch-specific work. Confirm that the distributor has published a complete fix for the installed kernel variant and that the corrected kernel is running. A proposed patch or one upstream commit alone does not establish that a vendor binary is available or fully corrected. [3]
Check the running kernel and configuration
Collect the running kernel release, distribution, loaded modules, and the AEAD configuration option where available. Compare the results with the distributor’s affected and fixed package records. These commands provide inventory information; they do not test exploitation.
uname -r
cat /etc/os-release
grep -E "^(algif_aead|af_alg) " /proc/modules
if test -r "/boot/config-$(uname -r)"; then
grep -E "^CONFIG_CRYPTO_USER_API_AEAD=" "/boot/config-$(uname -r)"
fiDetection and investigation
Look for suspicious local execution followed by privileged activity, using workload history and exploit-specific telemetry where available. Check whether endpoint, kernel, and socket events were collected during the exposure period. The initial reports do not establish a universal forensic signature, so assess the available evidence alongside the host’s patch history.
- Host execution and privilege telemetry: Unexpected low-privilege processes followed by root activity. Correlate parent process, user, workload, time, and administrative change records.
- Kernel and runtime configuration: AF_ALG access, algif_aead availability, and policy changes. Reachable primitives establish applicability; they are not evidence of exploitation.
- Identity and persistence records: New keys, privileged accounts, scheduled jobs, or unexplained secret access. Investigate actual changes and accessible credentials and systems; absence of a file indicator does not clear the host.
Correlate events using their original timestamps and time zones. Check log coverage and retention before interpreting a search with no results.
Remediation and verification
Use the distributor-approved fixed kernel or interim mitigation. The documented workaround prevents loading algif_aead and unloads it where safe. Built-in implementations and modules held by active consumers require a different plan. Check the command result and application dependencies rather than ignoring an unload failure. [1] [2] Verify the corrected running kernel or persistent mitigation after reboot; installing a package alone is insufficient. [3]
Verify the result
- The running kernel or verified persistent mitigation is recorded for every affected host pool.
- Node templates, autoscaling images, and recovery builds cannot recreate the vulnerable state.
- Untrusted workloads are mapped to their host boundaries, and any suspicious privileged activity has a separate investigation outcome.
Preventing recurrence
Keep host kernels, node templates, and autoscaling images aligned with the verified fix. Restrict untrusted workloads according to their isolation needs and review access to kernel interfaces such as AF_ALG. Preserve workload and privileged-execution records outside disposable nodes so suspicious activity can be investigated after replacement.
Sources
- Theori Copy Fail researcher disclosure — 29 April 2026. Technical mechanism, disclosure timeline, and mitigation.
- CERT-EU initial Copy Fail advisory — 30 April 2026. Affected-system and interim-mitigation guidance.
- Canonical kernel-team patch proposal — 30 April 2026. April 30 kernel-team proposal describing the mechanism and branch-specific patch work.