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.

7018413小时31分前Kitploit 审核通过
分享
查看仓库

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

English | 简体中文

漏洞信息

项目值
CVECVE-2026-98260
类型本地提权,use-after-free(timerqueue rb-tree erase)
目标荣耀 MagicPad3 Pro 13.3 YLP-W00(Android 16)
内核6.12.38(MagicOS 10.0.0)、6.12.58(MagicOS 11.0.0.109)
SELinuxEnforcing
缓解措施KASLR 开;SMEP/SMAP/PAN 开;KASAN 编译但未启用
范围BL 锁定;不写任何分区

漏洞原理

非 leader 线程 execve() 失败后,已排队的 posix-cpu timer 节点没有被摘除。 父进程回收 zombie 时,release_task() → posix_cpu_timers_exit() → cleanup_timerqueue() 对已被 exit_itimers() 释放的 k_itimer 执行 rb_erase(),stale node 位于已释放的 slab 页中。

LPE 链技术细节

共用原语。 利用 execve() 为子进程分配的私有 cred(cred_jar, 0xb8 字节),地址来自 kmem_cache_alloc 的 trace(调用点 low21 0x19c474);KASLR slide 来自 timer 分配调用点。victim 的 k_itimer slab 被释放后由 AF_UNIX send 的分片页(order 0–3)重新占用;payload 在 V+0x78 处放伪 rb 节点:__rb_parent_color = A(节点自身地址)、 rb_right = 0、rb_left = target。因此 RB_EMPTY_NODE() 为真、 rb_next() 返回 NULL,cleanup_timerqueue() 只弹出该节点; __rb_erase_augmented() 走 left-child 分支,把 __rb_parent_color 写到 target。

A. Trigger(src/poc.c)。 同样的 exec 失败布置,不带 payload: reap 对已释放内存执行 rb_erase,在 cleanup_timerqueue() 中 panic。

B. Fake cred(src/exp.c)。 两次 reap 把 helper 的 cred 指向喷在 回收页里的 fake cred(user_ns/group_info/ucounts 复用真实 init_* 符号)。用 getuid()==0 && geteuid()==0 验证原语,但不能 exec: commit_creds() 有 BUG_ON(cred != real_cred),且 fake cred 的 security = NULL。

C. Real-cred 零写(src/uid0.c)。 原地写 target = cred + 8 (uid/gid);子进程 setuid(0)(kuid == old uid,无需 CAP_SETUID)后 exec /system/bin/sh,得到 u:r:shell:s0 的 uid-0 shell(仅 bounding set,无 CAP_DAC_OVERRIDE)。

D. KernelSU(app/)。 同一原语上追加三次写:selinux_state - 7 (permissive)、cred + 0x40(bit16 = CAP_SYS_MODULE)、cred + 8 (loader uid/gid)。loader finit_module() 加载按当前 release 打过补丁的 kernelsu.ko(vermagic 重写、226 符号按 slide 重定位);launcher 保持 uid 2000,由模块授权(su -c id → u:r:ksu:s0)。

适配版本

内核 release设备 / 系统状态
6.12.38-android16-5-gfde7767f6ef6-abogki481467632-4kYLP-W00 / MagicOS 10.0.0已验证
6.12.58-android16-6-g3a7ac1674240-abogki541502914-4kYLP-W00 / MagicOS 11.0.0.109已验证

每个 profile 自带调用点、selinux_state 和 226 条 ko-syms 表;二进制和 APK 按精确 uname -r 选择。

构建与运行

make            # build/poc   仅触发
make exp        # build/exp   fake-cred 验证
make uid0       # build/uid0  uid-0 shell
make apk        # app/CVE98260Root.apk

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

App:安装 app/CVE98260Root.apk,以 shell 启动 Shizuku,然后 1. 授权 Shizuku → 2. 部署资产 → 3. 开始提权。

仓库结构

src/poc.c              仅触发
src/exp.c              fake-cred 链
src/uid0.c             真实 cred 的 uid-0 shell
src/kernel_profile.h   各 release 的调用点、符号与结构偏移
app/                   Shizuku + KernelSU App
docs/analysis.md       技术笔记
docs/release-notes.md  发布记录

当前 release:v1.4.5-app。 许可证:MIT,见 LICENSE。

下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    967
  • 2

    wifit3

    derv82/wifit3

    Wifite 但仅限 USB 且跨平台。

    742
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    719
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    489
  • 5

    SafeLine

    chaitin/safeline

    自托管WAF和反向代理,可过滤恶意HTTP流量、阻止SQL注入、XSS和机器人攻击,具备速率限制和动态HTML/JS加密功能。

    445
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    由 AI 驱动的 OSINT 引擎,可在网络上发现并映射 7,700+ 个社交媒体身份

    336

探索所有工具

浏览我们的工具集合

查看所有工具 →