One-click root kit for vivo iQOO Neo9S Pro (MT6989) exploiting CVE-2026-43499 futex PI UAF via MCAST transport, with scripts and analysis docs.
GhostLock one-click root kit for the vivo iQOO Neo9S Pro (V2339FA, MediaTek MT6989). This repository contains: MCAST transport porting patch, one-click scripts, and full analysis documentation; for the complete runnable kit (including binaries and KernelSU), see Releases.
Device: vivo iQOO Neo9S Pro (V2339FA / PD2339, MT6989) Firmware: PD2339_A_16.2.12.1.W10.V000L1 (Android 16) Kernel: 6.1.145-android14-11-maybe-dirty Vulnerability: CVE-2026-43499 (futex PI requeue UAF) For device owners / security research only. Use on your own device.
setsockopt(SOL_IP, MCAST_JOIN_SOURCE_GROUP, buf, 0x108) as the poisoning primitive, fully covering the stale rt_mutex_waiter and completing the full chain (W1→W2→W3→KernelSU).ghostlock-kit-20260913.zip from Releases and extract it.cd <extract-dir>\ghostlock-kit
powershell -ExecutionPolicy Bypass -File .\scripts\run-at-lockscreen.ps1 -Reboot
[+] Root succeeded!, it is done (do not unlock the phone during execution). Verify:adb shell su -c id
# uid=0(root) gid=0(root) groups=0(root) context=u:r:ksu:s0
Failure triggers a kernel panic and automatic reboot; the script will automatically wait and retry (success rate about 25–30% per attempt; at the lock screen it almost always succeeds on the first try). root is temporary (KernelSU late-load); after the phone reboots, the script must be rerun.
.
├── scripts/
│ ├── run-at-lockscreen.ps1 # One-click: reboot→wait for lock screen→push and verify→run→auto retry (recommended)
│ └── retry-if-needed.ps1 # Generic retry (does not force reboot)
├── src/
│ └── ghostlock-mcast.patch # Source changes (baseline ghostlock-app @ 50d2b72)
├── docs/ # Analysis documentation (exploit report/transport analysis/waiter and PI walk/device manual/troubleshooting log)
└── LICENSE # Apache-2.0 (inherited from upstream)
Binaries and the complete kit (files/ghostlock, files/ksud, files/offsets.json, KernelSU APK) are not placed in the git repository;
please download ghostlock-kit-20260913.zip from Releases.
| Asset | Description | SHA-256 |
|---|---|---|
ghostlock-kit-20260913.zip | Complete kit (scripts + binaries + APK + docs) | df547f6b2852a0d86582958e049ef5a44599a5a91ce0dace2162fb7d0fcab11d |
Key files in the kit (MD5):
| File | MD5 |
|---|---|
files/ghostlock (exploit program) | e581609ed114d33efa3b8a1958f85637 |
files/ksud (official KernelSU v3.3.0 user-space) | de059ed8ffd896129a0a4bbe338c946a |
files/offsets.json (offsets for this device) | a2498197161b01bdcc5dffc0614fbfbd |
FUTEX_WAIT_REQUEUE_PI, task->pi_blocked_on still dangles, pointing to the rt_mutex_waiter on its stack.setsockopt(SOL_IP, MCAST_JOIN_SOURCE_GROUP, buf, 0x108) causes do_ip_setsockopt to execute
memset(0x108) + copy_from_user(0x108), and the copy range [S'−0x338, S'−0x230) fully covers the waiter (the waiter is located at buffer offset 0x60);
setting buf[8]=0 makes the family check fail, and the syscall returns cleanly after the copy.sched_setattr → rt_mutex_adjust_prio_chain reads the forged waiter → rb_erase left-only relink
forms the *(target) := value write primitive.cred = init_cred → W3 clears seccomp (skipped in the shell flow) → root script late-loads KernelSU.See docs/ for details (including evidence chain, disassembly analysis, and crash scenes).
| Issue | Handling |
|---|---|
| Phone reboots after failure | Normal (probabilistic event); after reboot do not unlock, just rerun the script |
| Manager shows "not installed/not working" | First confirm su -c id works; open the manager and refresh, do not swipe it away/force stop |
| root disappears after reboot | Normal (late-load is not persistent); rerun the script |
| Want to use ReSukiSU | Not usable on this device (opening the manager immediately freezes and reboots); if needed, configure a matching version separately |
| After a system update | offsets.json may become invalid and needs to be regenerated/imported |
# Baseline: ghostlock-app @ 50d2b72 (includes PR#127)
git clone https://github.com/YuKongA/ghostlock-app.git
cd ghostlock-app && git checkout 50d2b72
git apply /path/to/src/ghostlock-mcast.patch
make NDK_ROOT=<your-ndk> ghostlock
Patch contents: MCAST transport (do_mcast_fake_lock_route), route selection, observe/pre-build logic,
GHOSTLOCK_WALK_LOG (consumer-side walk localization), root script pstore backup, GHOSTLOCK_SKIP_VR.
ksud and APK in this kit come from the official v3.3.0 release, and copyright belongs to their authorsFor local security research and personal root use by device owners on their own devices only; do not use on any unauthorized device or for illegal purposes. Using this tool may cause device instability or data risk; please back up on your own and bear the corresponding consequences.