Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 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
22186 months agoNot yet reviewed
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
Ubuntu RatingHigh
Attack TypeLocal Privilege Escalation

✅ 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:

# 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

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    867
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    544
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    385
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    360
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    302
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    279

Explore all tools

Browse our collection of tools

View all tools →