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-2026-98260-vivo-x-fold6-poc — Android kernel UAF proof-of-concept that zeroes cred->uid/gid to obtain temporary uid=0 root on vivo X Fold6 (PD2545), with SELinux and anti-root bypass helpers. | Kitploit
Tools/GitHubGitHub/super2tt/cve-2026-98260-vivo-x-fold6-poc
Android SecurityPrivilege EscalationMemory ForensicsExploitationMobile SecurityBinary Exploitation
GitHubsuper2tt/cve-2026-98260-vivo-x-fold6-poc

CVE-2026-98260-vivo-x-fold6-poc

Share

Android kernel UAF proof-of-concept that zeroes cred->uid/gid to obtain temporary uid=0 root on vivo X Fold6 (PD2545), with SELinux and anti-root bypass helpers.

View Repository
1722 days agoNot yet reviewed

Temporary root on vivo PD2545 (CVE-2026-98260)

In short: this tool gives your phone a temporary uid=0 (root identity), but it cannot load KernelSU yet — see section 5 for why.

For use on devices you own only. It only touches memory; nothing is written to any partition and nothing is flashed.


1. Tested hardware

This PoC was tuned for one specific device; it will most likely not work anywhere else:

ItemValue
Phonevivo PD2545 (model V2545A)
OSAndroid 16
Kernel6.12.58-android16-6-gdd6fd5c98918-abogki543627742-4k
Kernel build date2026-08-05
RAM16 GB
You needa PC + adb + Android NDK

2. Build

With the Android NDK installed, run two commands (replace $CC with the clang in your NDK):

CC=$HOME/Library/Android/sdk/ndk/30.0.16248370/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android35-clang

$CC -static -O2 -pthread -o poc_tmp_root poc_tmp_root.c
$CC -static -O2 -pthread -o poc_prim    poc_prim.c

Two executables are produced. -static keeps them independent of the libs on the phone.


3. Usage

Step 1 — push the files

adb push poc_tmp_root poc_prim root_agent.sh go.sh /data/local/tmp/
adb shell 'chmod 755 /data/local/tmp/{poc_tmp_root,poc_prim,root_agent.sh,go.sh}'

Step 2 — run the one-shot script

SER=<your device serial> ./tmp_root.sh

The script does three things, and the order matters:

  1. flips SELinux from Enforcing to Permissive (otherwise the kernel blocks the write);
  2. waits 10 seconds to let the system settle;
  3. disables vivo's own anti-root module vr.ko (without this, the process is killed as soon as it becomes uid=0).

Step 3 — check the result

adb shell 'head -2 /dev/root_log'

4. Success indicators

If you see these two lines, it worked:

ROOT_AGENT ready uid=0
ROOT_FIFO /dev/root_cmd

After that you can drive it like a root shell:

adb shell 'echo "id" > /dev/root_cmd'
adb shell 'cat /dev/root_log'

which prints:

uid=0(root) gid=0(root) ...

Notes

  • Single-run success rate is roughly 1 in 3; if it misses, just run step 2 again (no reboot needed);
  • If the log shows SKIP: slow reclaim or ROOT_AGENT NOT_ROOT, that attempt missed;
  • Leftover spinning processes slow the reclaim down — a full power cycle restores the success rate.

5. Bringing up KernelSU — and why it keeps failing

Once you have uid=0, the normal next step is to load the KernelSU kernel module:

insmod kernelsu.ko        # or: ksud late-load

This always fails on our device with Operation not permitted.

The problem is not the uid, it is capabilities:

uid=0(root)               <- we have this
CapEff: 0000000000000000  <- but every capability bit is 0

insmod requires CAP_SYS_MODULE, a capability, not uid 0. Our PoC only zeroes cred->uid/cred->gid; it does not touch the capability fields:

OperationRequiresDo we have it
Read /data/adbjust uid 0yes
chown files, kill other processesCAP_CHOWN / CAP_KILLno
Load a kernel module (KSU)CAP_SYS_MODULEno

Other routes were tried as well: modprobe via usermodehelper (blocked by the system), several finit_module variants (all stopped by the capability check), and clearing usermodehelper_disabled (no effect).

Why not simply write the capability bits too? The bug gives a single controlled 8-byte write, and its safety depends entirely on the written value being 0 (writing 0 makes the kernel skip the red-black tree colour fix-up; a non-zero value takes the path that crashes). Zeroing uid/gid happens to be usable, but the capability mask would have to be 0x1ffffffffff — a non-zero value — which triggers that crashing path.

So the conclusion is:

This bug gives us uid=0 but not capabilities. Getting KernelSU requires a different primitive with an arbitrary write (not included in this repository).


6. Safety

  • Everything happens in memory only (pipe pages, perf ring buffers, kernel objects). No partition is written, nothing is flashed, boot is untouched; the worst case is a kernel panic and a reboot;
  • For legal testing on your own device only;
  • If you need full capabilities, use a different bug — do not force this PoC.

7. Files

FilePurpose
poc_tmp_root.cMain exploit: memory choreography + spray + UAF trigger -> cred->uid/gid = 0
poc_prim.cHelper primitives: --slide (KASLR leak), --selinux, --vr (disable vivo's anti-root module)
go.shMakes SELinux permissive and disables vr.ko
kp_arm.shArms a kernel probe that turns the race from "almost never" into "almost always"
root_agent.shStays resident after uid=0 and serves /dev/root_cmd + /dev/root_log
tmp_root.shRuns all of the above in order

8. ScreenShots

ScreenShots
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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    361
  • 4

    redforge

    cybersecurity91/redforge

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

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

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

    322

Explore all tools

Browse our collection of tools

View all tools →