Target-specific Android CVE-2026-98260 research port for Xiaomi nezha
nezha) Android PortThis is a temporary local privilege escalation PoC targeting an exact firmware and kernel build. Starting from an authorized ordinary ADB shell, it separately verifies SELinux Permissive, UID/GID 0, and full Linux capabilities, and provides a root shell service within the current boot cycle.
| Item | Applicable Scope |
|---|---|
| Device | Xiaomi 17 Ultra, codename nezha; 25128PNA1C and 2512BPNDAC have been observed |
| System | HyperOS 4 OS4.0.4.0.XPACNXM, Android 17 |
| Fingerprint | Xiaomi/nezha/nezha:17/CP2A.260605.016/OS4.0.4.0.XPACNXM:user/release-keys |
| Kernel | 6.12.69-android16-6-g43b5ab7e247d-abogki561813157-4k |
| Starting point | Authorized ADB shell, UID 2000, SELinux Enforcing |
| Success criteria | UID/GID 0, SELinux Permissive, CapEff=000001ffffffffff, independently confirmed by a new ADB shell |
The android16 in the kernel string is a branch name; the device system version is Android 17. ro.product.model is used only for diagnostic output; the script confirms the target by device codename, full system fingerprint, and kernel.
Install Android NDK r28.2 (28.2.13676358) on Windows. build.ps1 looks for the NDK by default in %LOCALAPPDATA%\Android\Sdk\ndk\28.2.13676358, or you can pass -NdkHome.
powershell -NoProfile -ExecutionPolicy Bypass -File .\build.ps1 -VerifyReference
The script uses API 35 AArch64 Clang with -std=gnu11 -O2 -pthread to rebuild the four on-device programs. -VerifyReference compares the SHA-256 of the newly compiled artifacts against those in bin/; the binary manifest can be verified separately. The build process does not connect to the device.
Add Android platform-tools to PATH, connect and authorize a target device, then double-click 开始小米17U临时ROOT.bat. You can also specify an ADB serial number:
powershell -NoProfile -ExecutionPolicy Bypass -File .\run_98260.ps1 -Serial <ADB serial number> -Reboot
At runtime it verifies the exact firmware, kernel, and on-device file hashes, and records the boot ID of each boot. SELinux, UID/GID, and full capabilities are three independent stages; seeing only Permissive or UID 0 does not mean full ROOT has been obtained.
When the target page is occupied by another task, the device side outputs PARKED and retains the dangerous zombie rather than forcibly reclaiming it. The host returns code 125; the two batch entry points only retry with a reboot up to three times for this kind of safe shutdown, and stop immediately on other errors. After success, you can run from a newly opened ADB shell:
adb shell -t /data/local/tmp/pc98260-su
Logs are saved locally in logs/ and are not included in Git. Temporary ROOT disappears after the current boot cycle ends. No support is claimed for other system updates or kernel builds, and there are no reviewable success-rate statistics.
The nezha kernel inlines alloc_posix_timer, which the popsicle port uses. Based on the machine code of the target boot, this repository instead reads x19 at do_timer_create+0xb0, and updates the exact link addresses of selinux_state and __arm64_sys_getpid. The source retains fail-stop checks for misses.
This repository contains only the temporary ROOT PoC; bootloader unlock payloads, partition backups, original boot images, device serial numbers, and run logs are not uploaded. The original code and documentation of this project are under the MIT License; third-party licenses for the Android NDK used by the precompiled binaries are in the notices.