Skip to content
KitploitKITPLOIT
أدواتعمليات الاستغلالالمدونة
Log in
إرسال
أدواتعمليات الاستغلالالمدونة
إرسال

أدوات الاختراق واختبار الاختراق والأمن السيبراني لترسانتك الأمنية!

Kitploit هو دليل لأدوات الاختراق والأمن السيبراني واختبار الاختراق. اكتشف آخر تحديثات المشاريع للعثور على الثغرات وتحليل الأنظمة وأتمتة الاختبارات وتعزيز أمنك.

الخلاصاتاتصالالخصوصية© 2026 Kitploit

دليل الأدوات

الفئات

عرض جميع الفئات
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
أدوات/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.

70194منذ 14س 57دتمت المراجعة من قبل Kitploit
مشاركة
عرض المستودع
المحتوى غير متوفر باللغة المطلوبة. عرض النسخة الإنجليزية.

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
تنزيل الأداة

الأكثر شعبية

عرض الكل →

اكتشف الأدوات الأكثر استخدامًا من قبل مجتمعنا.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    # تطبيق GhostLock للتنفيذ بنقرة واحدة (CVE-2026-43499)

    960
  • 2

    wifit3

    derv82/wifit3

    Wifite لكن عبر USB فقط ومتعدد المنصات.

    742
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 مجموعة أدوات OSINT المثالية: رسم بياني للتحقيق، وتقييم الثقة، وعائلات الأسماء المستعارة، وخريطة، وخط زمني، وتقارير. 49 وحدة، وأكثر من 400 موقع، دون الحاجة إلى مفاتيح API.

    697
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer هي منصة مفتوحة المصدر لإدارة الامتيازات (PAM) توفر لفرق DevOps وتكنولوجيا المعلومات وصولًا آمنًا عند الطلب إلى نقاط نهاية SSH وRDP وKubernetes وقواعد البيانات وRemoteApp عبر متصفح الويب.

    490
  • 5

    SafeLine

    chaitin/safeline

    WAF مستضافة ذاتيًا ووكيل عكسي يقوم بتصفية حركة المرور HTTP الضارة، ويمنع هجمات SQL injection و XSS وهجمات البوت، مع تحديد معدل الطلبات وتشفير HTML/JS الديناميكي.

    445
  • 6

    mcp-reverse

    1llu50ry/mcp-reverse

    خادم MCP يوفّر أكثر من 180 أداة لهندسة عكسية تجمع Ghidra وIDA وx64dbg وFrida و56 من الواجهات الخلفية الأخرى، مع محلّلات ثنائية أصلية وقاعدة معرفية تضم 4,200 مهارة.

    334

استكشف جميع الأدوات

تصفح مجموعتنا من الأدوات

عرض جميع الأدوات →