Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Einreichen
ToolsExploitsBlog
Einreichen

Hacking-, PenTest- und Cybersicherheits-Tools für Ihr Sicherheitsarsenal!

Kitploit ist ein Verzeichnis von Hacking-, Cybersicherheits- und Pentesting-Tools. Entdecken Sie die neuesten Projekt-Updates, um Schwachstellen zu finden, Systeme zu analysieren, Tests zu automatisieren und Ihre Sicherheit zu stärken.

FeedsKontaktDatenschutz© 2026 Kitploit

Tool-Verzeichnis

Kategorien

Alle Kategorien anzeigen
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.

70184vor 10h 47mVon Kitploit geprüft
Teilen
Repository anzeigen
Inhalt in der angeforderten Sprache nicht verfügbar. Englische Version wird angezeigt.

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
Tool herunterladen

Beliebteste

Alle anzeigen →

Entdecken Sie die meistgenutzten Tools unserer Community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    981
  • 2

    wifit3

    derv82/wifit3

    Wifite, aber nur USB & plattformübergreifend.

    742
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 Das ultimative OSINT-Toolkit: Untersuchungsgraph, Konfidenzbewertung, Alias-Familien, Karte, Zeitleiste und Berichte. 49 Module, 400+ Websites, keine API-Schlüssel erforderlich.

    727
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer ist eine Open-Source-Plattform für Privileged Access Management (PAM), die DevOps- und IT-Teams bedarfsgesteuerten und sicheren Zugriff auf SSH-, RDP-, Kubernetes-, Datenbank- und RemoteApp-Endpunkte über einen Webbrowser bietet.

    488
  • 5

    SafeLine

    chaitin/safeline

    Selbst gehosteter WAF und Reverse Proxy, der bösartigen HTTP-Verkehr filtert, SQL-Injection, XSS und Bot-Angriffe blockiert, mit Ratenbegrenzung und dynamischer HTML/JS-Verschlüsselung.

    440
  • 6

    ARTEX

    baarai/artex

    LLM-basierte Multi-Agenten-Plattform für autonome Penetrationstests mit Planer-/Worker-Agenten, Asset- und Explorationsgraphen, MITM-Verkehrsaufzeichnung und Schwachstellen-Retesting.

    340

Alle Tools erkunden

Durchsuchen Sie unsere Tool-Sammlung

Alle Tools anzeigen →