## https://sploitus.com/exploit?id=28C8120C-CE6C-515B-80F8-7917AC287FB6
# CVE-KERNEL Β· Linux Kernel LPE Chain
Multi-CVE Local Privilege Escalation chain for Linux kernel vulnerabilities
uid=1000 β root via xfrm-ESP, RxRPC, or Fragnesia page-cache write
---
## Overview
**CVE-KERNEL** is a Python-based Local Privilege Escalation (LPE) tool that chains multiple Linux kernel CVEs to escalate from an unprivileged user to root. The exploit targets page-cache corruption primitives through kernel networking subsystems.
> **Modified By [MadExploits](https://github.com/MadExploits)** β UI overhaul, colored terminal output, and improved exploit flow presentation.
| CVE | Vector | Target |
|-----|--------|--------|
| **CVE-2026-43284** | xfrm-ESP | `/usr/bin/su` binary corruption |
| **CVE-2026-43500** | RxRPC + splice | `/etc/passwd` page-cache write |
| **CVE-2026-46300** | Fragnesia (ESP-in-TCP) | Page-cache write via `skb_try_coalesce` |
---
## Features
- **Multi-vector exploit chain** β Automatically tries ESP β RxRPC β Fragnesia
- **Patch detection** β Checks if `/usr/bin/su` or `/etc/passwd` is already compromised
- **Interactive root shell** β Spawns PTY shell via `su -` on successful exploitation
- **Kernel module validation** β Verifies `esp4`, `esp6`, `rxrpc` and `CONFIG_ESPINTCP`
- **User namespace support** β Acquires `CAP_NET_RAW` via unprivileged namespaces
- **Styled terminal UI** β Color-coded output with ASCII banner
---
## Preview
```
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Linux Kernel LPE Chains β
β CVE-2026-43284 | CVE-2026-43500 | CVE-2026-46300 β
β β
β Modified By MadExploits β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[*] Current user: uid=1000
ββ Exploit Chain ββ
[ESP] Attempting to corrupt /usr/bin/su...
[+] Namespace created successfully
[*] (Full SU corruption requires XFRM SA setup - C only)
[RxRPC] Attempting to corrupt /etc/passwd...
[*] Current root entry: b'root:x:0:0:root:/root:/bin/b'
ββ Fragnesia (CVE-2026-46300) ββ
[Fragnesia] Attempting CVE-2026-46300 exploit...
[+] ESP-in-TCP support detected
[+] User namespace created (CAP_NET_RAW acquired)
```
---
## Requirements
| Requirement | Description |
|-------------|-------------|
| **OS** | Linux (x86_64) |
| **Python** | 3.8 or higher |
| **Privileges** | Unprivileged user (uid β 0) |
| **Kernel modules** | `esp4`, `esp6`, `rxrpc` (loadable) |
| **Kernel config** | `CONFIG_ESPINTCP=y` or `=m` |
| **User namespaces** | Enabled (`/proc/sys/kernel/unprivileged_userns_clone`) |
### Load required kernel modules
```bash
sudo modprobe esp4
sudo modprobe esp6
sudo modprobe rxrpc
```
### Verify modules are loaded
```bash
lsmod | grep -E 'esp4|esp6|rxrpc'
```
---
## Installation
```bash
git clone https://github.com/MadExploits/CVE-2026-46300.git
cd CVE-KERNEL
```
No external Python dependencies β uses only the standard library.
---
## Usage
```bash
python3 main.py
```
### Exit codes
| Code | Meaning |
|------|---------|
| `0` | Exploit succeeded or already root |
| `1` | Exploit failed (patched system or missing modules) |
---
## Exploit Flow
```mermaid
flowchart TD
A[Start] --> B{Already root?}
B -->|Yes| C[Spawn root shell]
B -->|No| D{Already patched?}
D -->|Yes| C
D -->|No| E[ESP - CVE-2026-43284]
E --> F[RxRPC - CVE-2026-43500]
F --> G{Patched?}
G -->|Yes| C
G -->|No| H[Fragnesia - CVE-2026-46300]
H --> I{Patched?}
I -->|Yes| C
I -->|No| J[Exploit failed]
```
### Attack vectors
#### 1. ESP β CVE-2026-43284
Corrupts `/usr/bin/su` via XFRM Security Association and user namespace isolation. Requires XFRM netlink socket setup (full implementation in C).
#### 2. RxRPC β CVE-2026-43500
Writes to `/etc/passwd` page cache through RxRPC key manipulation and `splice()`/`vmsplice()` syscalls.
#### 3. Fragnesia β CVE-2026-46300
Triggers `skb_try_coalesce` bug via ESP-in-TCP fragmented packets to achieve page-cache write primitive.
---
## Python vs C Implementation
This repository ships the **Python proof-of-concept**. Full exploitation requires low-level syscalls available only in the C version:
| Capability | Python | C |
|------------|:------:|:-:|
| User namespace setup | β
| β
|
| Patch detection | β
| β
|
| RAW socket trigger | β
| β
|
| XFRM netlink sockets | β | β
|
| splice / vmsplice | β | β
|
| AF_ALG crypto ops | β | β
|
| RxRPC protocol handling | β | β
|
---
## Troubleshooting
| Issue | Solution |
|-------|----------|
| `ESP modules not loaded` | Run `sudo modprobe esp4 esp6` |
| `ESP-in-TCP not enabled` | Kernel lacks `CONFIG_ESPINTCP` β use different kernel |
| `unshare failed` | Enable user namespaces or run on supported distro |
| `RAW sockets require CAP_NET_RAW` | Ensure user namespaces are enabled |
| Exploit failed | System may be patched β check kernel version |
```bash
# Quick diagnostic
lsmod | grep -E 'esp4|esp6|rxrpc'
grep ESPINTCP /boot/config-$(uname -r)
cat /proc/sys/kernel/unprivileged_userns_clone
```
---
## Project Structure
```
CVE-KERNEL/
βββ main.py # Main exploit script (Python PoC)
βββ README.md # Documentation
```
---
## Disclaimer
> **FOR EDUCATIONAL AND AUTHORIZED SECURITY TESTING ONLY**
This tool is provided strictly for **educational purposes**, **security research**, and **authorized penetration testing** on systems you own or have explicit written permission to test.
- Unauthorized access to computer systems is **illegal**
- The authors and contributors are **not responsible** for any misuse or damage
- Always comply with applicable laws and regulations in your jurisdiction
- Use only in isolated lab environments or with proper authorization
---
## Credits
| | |
|---|---|
| **Modified By** | **MadExploits** |
| **CVE References** | CVE-2026-43284 Β· CVE-2026-43500 Β· CVE-2026-46300 |
---
## License
This project is released for educational and research purposes. Use at your own risk.
Modified By MadExploits Β· Linux Kernel LPE Research