Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-98260 — Android kernel LPE research for CVE-2026-98260 (posix-cpu-timers UAF): trigger PoC, fake-cred and real-cred uid-0 shell chains, plus a Shizuku/KernelSU bootstrap app. | Kitploit
Tools/GitHubGitHub/woshigenm/cve-2026-98260
Android SecurityPrivilege EscalationMemory ForensicsExploitationPost-ExploitationMobile SecurityPayload DevelopmentBinary Exploitation
GitHubwoshigenm/cve-2026-98260

CVE-2026-98260

Android kernel LPE research for CVE-2026-98260 (posix-cpu-timers UAF): trigger PoC, fake-cred and real-cred uid-0 shell chains, plus a Shizuku/KernelSU bootstrap app.

7019415h 4m agoReviewed by Kitploit
Share
View Repository

CVE-2026-98260 — posix-cpu-timers UAF (Android LPE)

English | 简体中文

Vulnerability

ItemValue
CVECVE-2026-98260
TypeLPE, use-after-free (timerqueue rb-tree erase)
TargetHonor MagicPad3 Pro 13.3 YLP-W00 (Android 16)
Kernels6.12.38 (MagicOS 10.0.0), 6.12.58 (MagicOS 11.0.0.109 / 11.0.0.117 SP4)
SELinuxEnforcing
MitigationsKASLR on; SMEP/SMAP/PAN on; KASAN compiled but off
Scopebootloader locked; no partition writes

Root cause

A non-leader thread whose execve() fails keeps its queued posix-cpu timer node. When the zombie is released, release_task() → posix_cpu_timers_exit() → cleanup_timerqueue() runs rb_erase() on a k_itimer that exit_itimers() already freed. The stale node lives in a freed slab page.

LPE chain (technical detail)

Shared primitive. The exec'd child's private cred (cred_jar, 0xb8) is leaked from the kmem_cache_alloc trace (call-site low21 0x19c474); the KASLR slide comes from the timer call site. The victim's k_itimer slab is freed and reclaimed by AF_UNIX send fragments (order 0–3); the payload places a fake rb node at V+0x78: __rb_parent_color = A (the node's own address), rb_right = 0, rb_left = target. RB_EMPTY_NODE() is therefore true and rb_next() returns NULL, so cleanup_timerqueue() pops exactly this node; __rb_erase_augmented() takes the left-child case and writes __rb_parent_color to target.

A. Trigger (src/poc.c). Same failed-exec setup without a payload: the reap erases the stale node against freed memory and panics in cleanup_timerqueue().

B. Fake cred (src/exp.c). Two reaps point the helper's cred at a fake cred built in the reclaimed page (user_ns/group_info/ucounts reuse the real init_* symbols). It verifies the primitive (getuid()==0 && geteuid()==0) but cannot exec: commit_creds() has BUG_ON(cred != real_cred) and the fake cred has security = NULL.

C. Real-cred zero write (src/uid0.c). Write target = cred + 8 (uid/gid) in place; the child calls setuid(0) (kuid == old uid, no CAP_SETUID) and execs /system/bin/sh → uid-0 shell in u:r:shell:s0 (bounding set only, no CAP_DAC_OVERRIDE).

D. KernelSU (app/). Three more writes on the same primitive: selinux_state - 7 (permissive), cred + 0x40 (bit 16 = CAP_SYS_MODULE), cred + 8 (loader uid/gid). The loader then finit_module()s kernelsu.ko patched for the running release (vermagic rewrite, 226 symbols relocated by the slide); the launcher stays uid 2000 and the module grants root (su -c id → u:r:ksu:s0).

Adapted versions

Kernel releaseDevice / OSStatus
6.12.38-android16-5-gfde7767f6ef6-abogki481467632-4kYLP-W00 / MagicOS 10.0.0verified
6.12.58-android16-6-g3a7ac1674240-abogki541502914-4kYLP-W00 / MagicOS 11.0.0.109verified
6.12.58-android16-6-g142ddad31e60-abogki576095858-4kYLP-W00 / MagicOS 11.0.0.117(SP4)verified; event IDs probed at runtime

Each profile carries its own call sites, selinux_state and a 226-symbol ko-syms table; binaries and the APK select by exact uname -r.

scripts/adapt.py regenerates the profile and ko-syms table from a new vmlinux.elf (optional --baseline, --config, --ko). The app loads only the exact ko-syms-<uname -r>.txt; ko_patch validates the table header and fails closed on release or count mismatch.

python3 scripts/adapt.py --release-dir <dir-with-vmlinux.elf> \
    [--baseline <previous-release-dir>] [--ko kernelsu.ko] [--out <dir>]

Build and run

make            # build/poc   (trigger only)
make exp        # build/exp   (fake-cred proof)
make uid0       # build/uid0  (uid-0 shell)
make apk        # app/CVE98260Root.apk

adb shell mkdir -p /data/local/tmp/cve98260
adb push build/uid0 /data/local/tmp/cve98260/uid0
adb shell chmod 755 /data/local/tmp/cve98260/uid0
adb shell /data/local/tmp/cve98260/uid0 --check
adb shell /data/local/tmp/cve98260/uid0

App: install app/CVE98260Root.apk, start Shizuku as shell, then 1. 授权 Shizuku → 2. 部署资产 → 3. 开始提权. Assets go to /data/local/tmp/cve98260; ksud/kernelsu.ko are cached under cache/ keyed by manager version/APK stamp and uname -r. Live output uses logcat tag CVE98260; a finished run writes /sdcard/cve98260.log.

Repository

src/poc.c              trigger only
src/exp.c              fake-cred chain
src/uid0.c             real-cred uid-0 shell
src/kernel_profile.h   per-release call sites, symbols, offsets
app/                   Shizuku + KernelSU app
docs/analysis.md       technical notes
docs/release-notes.md  release record

Release: v1.4.7-app. License: MIT, see LICENSE.

Donate

If this work helped you, you can buy the author a drink:

donate QR code
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    960
  • 2

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    742
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    697
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    490
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    445
  • 6

    mcp-reverse

    1llu50ry/mcp-reverse

    MCP server exposing 180+ reverse-engineering tools that aggregate Ghidra, IDA, x64dbg, Frida and 56 other backends with native binary parsers and a 4,200-skill knowledge base.

    334

Explore all tools

Browse our collection of tools

View all tools →