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/wired0ut/cve-2012-6422
Privilege EscalationVulnerability AnalysisExploitationCTFBinary Exploitation
GitHubwired0ut/cve-2012-6422

CVE-2012-6422

An exploitation for the /dev/exynos-mem vulnerability introduced in earlier samsung phones.

View Repository
1231 year agoNot yet reviewed
Share

Exynos Exploit

This is a POC for exploiting the /dev/exynos-mem vulnerability introduced in earlier samsung phones. It was done out of interest in kernel vulnerability research and as a part of a CTF challenge.

The Exploit

The vulnerability introduced in these phones is the permissions for the exynos-mem device. It allowed users both R/W, even as non-root! The exynos-mem device is a device that lets you read/write directly to the /dev/mem, meaning you can directly write to kernel code/data.

By utilizing /proc/iomem you can quickly find out which physical addresses correspond to what memory on the operating system, and even find out where the Kernel Code / Data memory is.

The exploit is doing a few things in order to achieve root from this:

  1. Given that we're not root, we cannot access /proc/kallsyms, which handicaps us. Therefore, we scan the kernel memory to find the format string used in kallsyms (seq_printf(m, "%pK %c %s\n", (void *)iter->value, iter->type, iter->name);) and patch it to be %p instead of %pK in order to get the symbol addresses printed out to us as users.
  2. Read /proc/kallsyms to find the address of the symbol nsown_capable, which is used for identifying whether or not a user calling setuid() has permissions to do so.
  3. Use this address and overwrite the function code of nsown_capable to simply return true;, letting any user call setuid() to whatever uid he wants.
  4. Call setuid(0) and system(/bin/sh).

Notes

The constants in the file might need to be changed a bit to be correct for your system; set them as needed.

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.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    547
  • 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.

    369
  • 4

    redforge

    cybersecurity91/redforge

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

    366
  • 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.

    309
  • 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.

    282

Explore all tools

Browse our collection of tools

View all tools →