CVE-2026-98260 (exec: posix CPU timer UAF) - one-command temporary root for OnePlus 16 (PYB110) from uid 2000 shell, with KernelSU/FinaSU handover
One-click temporary root toolkit: uses only CVE-2026-98260 to get uid=0 from an ordinary shell (uid=2000 / u:r:shell:s0),
then hands root over to KernelSU or FinaSU for management.
Target firmware:
OnePlus 16 (PYB110)/ ColorOS 17 / Android 17 Target kernel:6.18.21-android17-5-gf957accaf563-ab15926176-4k(<6.18.54, i.e. before the fix) Starting point: raw shell with onlyadbavailable, no need to unlock the bootloader, no need to flash anything
| Stage | Status |
|---|---|
Vulnerability present (begin_new_exec did not backport posixtimer_exec) | ✅ Verified instruction by instruction in the binary |
UAF triggered (node left in rbtree after bail, release_task unlinks it a second time) | ✅ Recorded frame by frame with kprobe |
Zero-write primitive (rb_erase writes 8 bytes) | ✅ Measured |
SELinux → Permissive (zero-write selinux_state - 7) | ✅ Measured |
uid=0 (forged cred pointer write) | ✅ Measured |
| KSU / FinaSU handover + survival across soft reboot | ✅ Measured |
| Full-flow duration | ≈ 35–45 s (single hit) |
Tested device: OnePlus 16 / PYB110 / 6.18.21-android17-5-gf957accaf563-ab15926176-4k.
Other models/kernels are unverified; syms.txt and the binaries in bin/ are all from this machine.
ROOT.bat /finasu /fast
Running without arguments prompts for the manager; /ksu or /finasu specifies it directly.
ROOT.bat # 交互选择管理器
ROOT.bat /ksu /fast # KernelSU + fast 模式
ROOT.bat /finasu /reboot # 先整机重启再跑 FinaSU
ROOT.bat /recover # 软重启卡死后的急救
ROOT.bat /cleanup # 只清理推到设备上的文件
ROOT.bat /check # 只体检资产/设备/python
See usage in ROOT.bat for the full parameters.
| STEP | Content |
|---|---|
| 0 | Check device / python / assets, push and chmod 755 |
| 1 | take_slide_fast.sh sampling + slide_from_syms.py voting to derive the KASLR slide |
| 1.5 | Boot load gate (look at the runnable count in /proc/loadavg, not load1) |
| 2 | Confirm slide: only counts as correct when brm_plant prints [uaf] captured=2048 |
| 3 | 98260 main chain: race → bail → discard page → 8 KiB stream reclaim → fake rb_node → rb_erase zero write |
| 4 | Load the kernel module (ksud insmod / late-load) + install the manager APK |
| 5 | su -c id verification + restart the manager + 180 s survival observation window |
| 6 | Clean up the files pushed to the device (/data/adb is kept) |
Details: docs/01-how-it-works.md.
ROOT.bat 一键入口(自适应路径,单条命令跑完 STEP 0–6)
scripts/
fastroot.ps1 主流程(PowerShell 5.1)
take_slide_fast.sh 内核化 trace 采样(设备侧)
slide_from_syms.py KASLR slide 投票(用 syms.txt 当 symbol 源)
ksu_load.sh KernelSU 移交
fina_load.sh FinaSU 移交
rootrun.sh 以 root 身份跑设备侧脚本的薄封装
patch_brm.py 把 brm_plant 的编译期常量换成目标机器的地址
docs/
01-how-it-works.md 原理与三要素
02-requirements.md 依赖、如何准备 syms.txt / 二进制
03-offsets.md 本机实测的偏移与常量表
04-troubleshooting.md 失败模式对照表
05-recovery.md 软重启卡死 / 死机急救
06-bugreport-findings.md bugreport 实证
tools/
fetch-deps.ps1 下载 python / adb / KernelSU / FinaSU
make-release.ps1 把 bin/ + syms.txt 打成一个完整可跑包
bin/, syms.txt, and third-party APKs are not committed to the repository (due to size + licensing reasons). Prepare them according to docs/02-requirements.md:
brm_plant, pc98260_su, forker: see the build instructions in docs/02 (brm_plant needs to be recompiled for the target device address)syms.txt: extract it from your own phone's boot_a_kernel.bin; it cannot be shared across device modelsksu-base.ko / ksud_official: official KernelSU release (GPL-3.0)KernelSU / FinaSU APKs: their respective official releasesOr just run tools/fetch-deps.ps1.
slide changes every boot, and the script recalculates it automatically.ksud soft-reboot will stop the framework services and not bring them back up automatically; in testing it left the device completely dead (see docs/05-recovery.md). To refresh the UI, use am force-stop + am start.ctl.restart zygote will also leave the device dead: once ZN's zygote_next is ctl.stopped, init no longer brings it back up; restarting only zygote → framework fails to start → init abort → the whole device hard-hangs (even USB drops). The script now automatically detects ZN and skips the soft reboot; see docs/09-zygisknext-freeze.md.panic_on_oops=1 + panic_on_rcu_stall=1: wild writes / page-search storms will directly reboot the whole device; the script already implements throttling and circuit breaking.LICENSE)ksud: GPL-3.0 (upstream)Zygisk Next, LSPosed: their respective licensesSee NOTICE.md for details.
sganggs/CVE-2026-98260-BRM-AN00, zsw125/o3root, janewas/cve-2026-98260-vivo-gki-researchsu (FinaSU / KernelSU) without a soft rebootksud late-load needs both --kmi and --package-name, otherwise it silently does
nothing and you end up with the SU_NOT_READY_AFTER_15S failure:
/data/local/tmp/ksud_fina late-load --allow-shell \
--kmi android17-6.18 --package-name me.yuki.fina
That creates /system/bin/su (it is the late-load that creates it, not ksud install)
and su -c id then returns uid=0 ... context=u:r:ksu:s0. Details: docs/07-finasu-lateload.md.
The exploit source is included (exploit/), the machine-specific numbers are not.
Three steps, all local to you:
python tools/make-offsets.py --syms syms.txt --out exploit/offsets.h # 7 link addresses
powershell -ExecutionPolicy Bypass -File exploit\build.ps1 # -> bin\brm_plant
ROOT.bat /finasu # slide -> plant -> manager
syms.txt, exploit/offsets.h, slide values and the built binaries are git-ignored:
a fresh clone refuses to run until you derive your own. Full procedure, including how to
extract a symbol table from your own boot image and how to sanity-check the two
symbol + distance constants: docs/08-porting.md.
If you are on the exact same build (OnePlus 16 / PYB110 / 6.18.21-android17-5-gf957accaf563-ab15926176-4k),
a release with prebuilt brm_plant and pc98260_su is published:
Releases. slide is still passed at runtime, and the baked-in link
addresses only match that one kernel — anywhere else, build from source.