Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-31431 — CVE-2026-31431 | Kitploit
Tools/GitHubGitHub/0xblackash/cve-2026-31431
Privilege EscalationVulnerability AnalysisExploitationPapers & ResearchLearning & EducationBinary Exploitation
GitHub0xblackash/cve-2026-31431

CVE-2026-31431

CVE-2026-31431

View Repository
223 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

🔥 CVE-2026-31431 - "Copy Fail !!!"

ChatGPT Image Apr 30, 2026, 11_19_10 AM

A surprisingly simple yet deadly local privilege escalation in the Linux kernel

Linux Severity CVSS

📌 Overview

CVE-2026-31431 (nicknamed "Copy Fail") is a local privilege escalation vulnerability in the Linux kernel's cryptographic subsystem, specifically affecting the algif_aead interface.

An unprivileged local user can exploit this flaw to perform a controlled 4-byte write into the page cache of any readable file on the system — including setuid binaries — ultimately allowing arbitrary code execution as root.


🛠️ Root Cause

The vulnerability was introduced in 2017 by commit 72548b093ee3 ("crypto: algif_aead - support in-place operations").

The kernel incorrectly assumed that AEAD requests could safely run in-place (req->src == req->dst). However, when using AF_ALG sockets with splice() from regular files, the source and destination buffers often reside in different memory mappings.

This mismatch led to a logic error allowing controlled memory corruption in the page cache.


🔥 Impact

  • Attack Vector: Local
  • Complexity: Low (public exploits exist)
  • Privileges Required: None (unprivileged user)
  • Impact: Full system compromise (root access)

Exploitation is trivial. A ~10-line Python PoC can reliably gain root on unpatched systems.

CVE-2026-31431

📊 Severity

MetricValue
CVSS v3 Score7.8 (High)
Red Hat RatingImportant

✅ Affected Systems

  • Most Linux distributions running kernels from 2017 to early 2026
  • Ubuntu, Debian, RHEL, CentOS, Fedora, Amazon Linux, SUSE, Arch, etc.
  • Any kernel before the fix commit a664bf3 (or equivalent backports)

🛡️ Mitigation & Fix

Recommended Action: Update your kernel immediately.

The official fix reverts the problematic in-place optimization in crypto/algif_aead.c.

Quick Commands:

root@kitploit:~
# Ubuntu / Debian
sudo apt update && sudo apt upgrade -y

# RHEL / Fedora / Rocky / Alma
sudo dnf update kernel -y

# Check kernel version
uname -r

Temporary Workaround (if immediate patching isn't possible):

  • Disable unprivileged user namespaces
  • Restrict AF_ALG socket usage via seccomp or AppArmor/SELinux

📜 Exploit

Public exploits are already available, including a very small and reliable Python proof-of-concept.

⚠️ Warning: Systems left unpatched after disclosure are highly vulnerable.


🔗 References

  • Linux Kernel Patch
  • CVE Details
  • Original Discovery & Analysis

Stay safe. Patch early. Patch often.


Made with ❤️ for the Linux community

Download Tool
Ubuntu RatingHigh
Attack TypeLocal Privilege Escalation