Skip to content
KitploitKITPLOIT
StrumentiExploitsBlog
Log in
Invia
StrumentiExploitsBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

FeedContattoPrivacy© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
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
Strumenti/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.

7018411h 1m faRevisionato da Kitploit
Condividi
Vedi Repository
Contenuto non disponibile nella lingua richiesta. Visualizzazione della versione inglese.

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
Scarica lo strumento

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    # App di esecuzione con un tocco GhostLock (CVE-2026-43499)

    981
  • 2

    wifit3

    derv82/wifit3

    Wifite ma solo USB e multipiattaforma.

    742
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 Il toolkit OSINT definitivo: grafo di indagine, punteggio di affidabilità, famiglie di alias, mappa, timeline e report. 49 moduli, oltre 400 siti, nessuna chiave API richiesta.

    727
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer è una piattaforma open-source di gestione degli accessi privilegiati (PAM) che fornisce ai team DevOps e IT un accesso sicuro e on-demand a endpoint SSH, RDP, Kubernetes, database e RemoteApp tramite un browser web.

    488
  • 5

    SafeLine

    chaitin/safeline

    WAF self-hosted e reverse proxy che filtra il traffico HTTP malevolo, blocca SQL injection, XSS e attacchi bot, con limitazione del tasso e crittografia dinamica HTML/JS.

    440
  • 6

    ARTEX

    baarai/artex

    Piattaforma di penetration testing autonoma multi-agente basata su LLM con agenti planner/worker, grafi di asset e di esplorazione, registrazione del traffico MITM e retesting delle vulnerabilità.

    340

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →