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 — Modular framework for researching and exploiting a Linux kernel privilege escalation vulnerability using AF_ALG and page cache injection to modify SUID binaries in memory. | Kitploit
Tools/GitHubGitHub/pulentoski/cve-2026-31431
Privilege EscalationVulnerability AnalysisExploitationLearning & EducationBinary ExploitationLabs & Practice
GitHubpulentoski/cve-2026-31431

CVE-2026-31431

Modular framework for researching and exploiting a Linux kernel privilege escalation vulnerability using AF_ALG and page cache injection to modify SUID binaries in memory.

View Repository
3 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 - Kernel Exploitation Research Framework

Modular framework for studying a Linux privilege escalation (LPE) vulnerability based on AF_ALG + Page Cache Injection techniques.


🎯 Objective

This project is designed for:

  • Research of Linux kernel vulnerabilities
  • Teaching real exploitation techniques (LPE)
  • Running controlled cybersecurity labs

⚙️ What does this project do?

This framework implements a technique that allows:

  • Modifying the in-memory content (page cache) of SUID binaries
  • Altering their behavior at runtime
  • Attempting to escalate privileges to root without modifying the binary on disk

🧠 How does the vulnerability work?

The exploitation is based on the combination of multiple kernel mechanisms:

1. AF_ALG (Linux Crypto API)

Allows interacting with cryptographic algorithms from user space through special sockets.


2. Manipulated sendmsg()

Specially crafted structures are sent to the kernel to trigger unexpected behavior.


3. splice()

Allows transferring data between file descriptors directly in kernel space (zero-copy).


4. Page Cache Injection

The in-memory content of files is modified without altering the file on disk.

✔️ Result: The binary executes modified code only in memory


🔥 Execution flow

  1. Automatic system detection (kernel, mitigations)
  2. SUID binary selection (e.g.: /usr/bin/su)
  3. Payload loading
  4. Splitting into 4-byte chunks
  5. Injection using AF_ALG + splice()
  6. Alteration of the binary's behavior
  7. Execution of the modified binary in memory

🚀 Usage

Basic execution:

root@kitploit:~
python3 main.py

Expected flow:

root@kitploit:~
[+] Scanning system...
[+] Vulnerable kernel detected
[+] Target found: /usr/bin/su
[+] Injecting payload...
[+] Execution completed

📌 Requirements

  • Potentially vulnerable Linux system
  • Kernel without associated patches
  • Support for:
root@kitploit:~
/proc/crypto   → AF_ALG
splice syscall → kernel transfer
  • Read permissions on SUID binaries

📁 Project structure

root@kitploit:~
exploit/
 ├── core.py        # Exploitation engine
 ├── payloads.py    # Payload management
 ├── targets.py     # Target definitions
 └── detectors.py   # Vulnerability detection

modules/
 ├── logger.py      # Structured logging
 ├── stealth.py     # Anti-detection
 └── utils.py       # Utilities

main.py             # Entry point

⚠️ Limitations

  • ❌ Not a universal exploit
  • ❌ Dependent on exact kernel version
  • ❌ Based on race conditions (non-deterministic)

It may fail if mitigations such as the following are present:

  • SELinux (enforcing)
  • AppArmor
  • GRSecurity

🧪 Recommended usage

  • Virtual machines
  • Isolated labs
  • Controlled testing environments

👨‍🏫 Educational usage

This framework allows teaching:

  • Kernel exploitation
  • Privilege escalation techniques (LPE)
  • Page Cache attacks
  • Race conditions
  • Userland ↔ kernel interaction

⚠️ Disclaimer

This project is exclusively for:

  • Education
  • Research
  • Controlled environments

❌ Do not use on systems without authorization.


📜 License

MIT License

Download Tool