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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2022-0185-POC — Proof-of-concept exploit for CVE-2022-0185, a Linux kernel heap buffer overflow enabling local privilege escalation and container escape via FUSE and ROP chains. | Kitploit
Tools/GitHubGitHub/prabeershakya/cve-2022-0185-poc
Privilege EscalationVulnerability AnalysisExploitationLearning & EducationContainer EscapeBinary ExploitationLabs & Practice
GitHubprabeershakya/cve-2022-0185-poc

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

Proof-of-concept exploit for CVE-2022-0185, a Linux kernel heap buffer overflow enabling local privilege escalation and container escape via FUSE and ROP chains.

View Repository
227 months agoNot yet reviewed

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

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

Build

make

Usage

Local Privilege Escalation (Ubuntu)

# 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

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