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-2022-0185-POC | Kitploit
Tools/GitHubGitHub/prabeershakya/cve-2022-0185-poc
Privilege EscalationVulnerability AnalysisExploitationLearning & EducationContainer EscapeBinary ExploitationLabs & Practice
GitHubprabeershakya/cve-2022-0185-poc

CVE-2022-0185-POC

View Repository
5 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-2022-0185 — Proof of Concept

A proof-of-concept exploit for CVE-2022-0185, a heap-based buffer overflow in the Linux kernel's legacy_parse_param function (fs/fs_context.c). This allows a local unprivileged user to escalate privileges to root.

Original exploit by Crusaders of Rust. Full writeup: https://www.willsroot.io/2022/01/cve-2022-0185.html


Vulnerability

The bug is an integer underflow in the bounds check inside legacy_parse_param(). When the internal buffer size reaches 4095 bytes, the unsigned subtraction wraps around and bypasses the check, enabling an unbounded heap overflow in the kmalloc-4k slab.

Affected kernels: Linux 5.1 – 5.15 Patched in: Linux 5.16+


Files


Build

root@kitploit:~
make

Usage

Local Privilege Escalation (Ubuntu)

root@kitploit:~
# Enter a user namespace to get CAP_SYS_ADMIN
unshare -Urm

# Run the exploit — makes /bin/bash SUID
./exploit_fuse

# Get a root shell
bash -p

Works on Ubuntu kernels ≥ 5.7. Adjust single_start and modprobe_path offsets in exploit_fuse.c for your kernel version.

kCTF Container Escape

root@kitploit:~
./exploit_kctf

~50% reliability, targeted at Kubernetes 1.22 (kernel 5.10).


Disclaimer

For educational and research purposes only. Do not use against systems you do not own or have explicit permission to test.

Download Tool
FileDescription
exploit_fuse.cUbuntu LPE exploit using FUSE + SYSVIPC
exploit_kctf.ckCTF container escape using pipes + ROP chain
fakefuse.c / .hCustom FUSE filesystem for race condition
util.c / .hShared utilities
libfuse/, libfuse3.aStatically compiled libfuse (no dl_open)
MakefileBuild script