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 — Python proof-of-concept for CVE-2026-31431 (Copy Fail), a Linux kernel local privilege escalation via AF_ALG socket and splice() memory corruption, yielding root. | Kitploit
Tools/GitHubGitHub/abiyeenzo/cve-2026-31431
Privilege EscalationMemory ForensicsVulnerability AnalysisExploitationPapers & ResearchBinary Exploitation
GitHubabiyeenzo/cve-2026-31431

CVE-2026-31431

Python proof-of-concept for CVE-2026-31431 (Copy Fail), a Linux kernel local privilege escalation via AF_ALG socket and splice() memory corruption, yielding root.

View Repository
3Nov 4, 2026Not yet reviewed
Share

Copy Fail - CVE-2026-31431 (LPE)

Description

This repository contains a PoC (Proof of Concept) for the vulnerability CVE-2026-31431, known as Copy Fail, which affects the Linux kernel. It is a local privilege escalation flaw that allows a standard user to obtain root privileges by exploiting improper memory buffer handling during operations combining AF_ALG sockets and the splice() system call.


Discovery and credits

  • Discovered by: Theori security research team (Xint Code).
  • Disclosure date: February 2026.
  • Context: The vulnerability was identified during a security audit of the Linux kernel's cryptographic subsystems and memory buffer manipulation via splice().

Tested distributions and versions

The script was tested and validated on the following environments, under default configurations with no patches applied:

Distribution / OSKernel versionStatus
Ubuntu 24.04 LTS6.17.0-1007-awsVulnerable / Working
Amazon Linux 20236.18.8-9.213.amzn2023Vulnerable / Working
RHEL 10.16.12.0-124.45.1.el10_1Vulnerable / Working
SUSE 166.12.0-160000.9-defaultVulnerable / Working
Kali Linux (WSL2)6.6.87.2-microsoft-standard-WSL2Working (virtualized environment)

(Note: The tests on Kali Linux were performed in a WSL2 (Windows Subsystem for Linux) environment. Since WSL2 kernels are modified by Microsoft, behavior may differ from a native kernel. As kernel 6.6.87 is an LTS branch, Microsoft may have backported the security fix. Make sure the privilege escalation is genuine before validating this test.)


Technical operation

  1. Creating an AF_ALG socket: Configuring an AEAD cipher (authencesn(hmac(sha256),cbc(aes))) via the kernel's socket options.
  2. Memory manipulation via splice(): Using the system call to unintentionally inject or overwrite data into the memory page of a sensitive read-only binary (such as /usr/bin/su).
  3. Executing the payload: Decompressing a zlib payload injected into memory in order to bypass security controls and obtain a root shell via the su call.

Usage

Prerequisites

  • Python 3 interpreter installed.
  • Isolated test environment (virtual machine or container with an unpatched kernel).

Execution

python3 exploit.py
Download Tool

Related Tools

  • PEASS-ng

    PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)

  • PrivescCheck

    Privilege Escalation Enumeration Script for Windows

  • LinEnum

    Scripted Local Linux Enumeration & Privilege Escalation Checks

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.2k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    845
  • 3

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    446
  • 4

    ARTEX

    baarai/artex

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

    369
  • 5

    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.

    359
  • 6

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    332

Explore all tools

Browse our collection of tools

View all tools →