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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/neuschaefer/cve-2016-0728-testbed
Vulnerability AnalysisExploitationLearning & EducationBinary Exploitation
GitHubneuschaefer/cve-2016-0728-testbed

cve-2016-0728-testbed

A testbed for CVE-2016-0728, a refcount leak/overflow bug in Linux

View Repository
512710 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    647
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    421
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    389
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    333
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    331

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2016-0728 testbed

This repository contains a test program for CVE-2016-0728, a refcount leak and overflow bug in Linux, that leads to a use-after-free.

The bug was found and explained by Perception Point. I am not affiliated to them.

Usage

Welcome to the CVE-2016-0728 testbed
sizeof(struct msg_msg) == 0x30, sizeof(struct key) == 0xb8

PID: 27673, UID: (1000/1000)
Keyring: 1b66e5d6, "test-1a328d6e"
Usage:   1
Press a key: (f)ork (i)ncref (a)uto-incref (r)evoke (h)eap-spray (s)hell (q)uit

On my test system, a root shell could be obtained in the following way:

  1. Bring the refcount up to -2; If you incref too often, you will probably crash the kernel.
  2. Fork twice to overflow it, so the key garbage collector frees the keyring
  3. Spray the heap with fake keyrings
  4. Call revoke
  5. execl("/bin/sh", "sh", NULL)

I found it useful to run watch -n0.1 cat /proc/keys to see what's happening.

Portability

This code has only been tested on x86-64, but it should run on other architectures as well, because I didn't use magic offsets, but copied the structure definitions from the Linux headers and used sizeof (except that I hard-coded the addresses of prepare_kernel_cred and commit_creds).

Download Tool