[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111229":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":14,"starSnapshotCount":14,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},111229,"CVE-2026-98260","woshigenm\u002FCVE-2026-98260","woshigenm","Android LPE (CVE-2026-98260) on Honor MagicPad3 Pro 13.3 (YLP-W00), kernel 6.12.38 — PoC\u002FEXP, uid-0 shell, KernelSU app",null,"C",67,18,1,0,5,15,47.84,"MIT License",false,"main",true,[],"2026-11-21 18:36:31","2026-11-23 17:20:26","# CVE-2026-98260 — posix-cpu-timers UAF (Android LPE)\n\nEnglish | [简体中文](README.zh-CN.md)\n\n## Vulnerability\n\n| Item | Value |\n|---|---|\n| CVE | CVE-2026-98260 |\n| Type | LPE, use-after-free (timerqueue rb-tree erase) |\n| Target | Honor MagicPad3 Pro 13.3 YLP-W00 (Android 16) |\n| Kernels | `6.12.38` (MagicOS 10.0.0), `6.12.58` (MagicOS 11.0.0.109 \u002F 11.0.0.117 SP4) |\n| SELinux | Enforcing |\n| Mitigations | KASLR on; SMEP\u002FSMAP\u002FPAN on; KASAN compiled but off |\n| Scope | bootloader locked; no partition writes |\n\n## Root cause\n\nA non-leader thread whose `execve()` fails keeps its queued posix-cpu timer\nnode. When the zombie is released, `release_task()` → `posix_cpu_timers_exit()`\n→ `cleanup_timerqueue()` runs `rb_erase()` on a `k_itimer` that\n`exit_itimers()` already freed. The stale node lives in a freed slab page.\n\n## LPE chain (technical detail)\n\n**Shared primitive.** The exec'd child's private `cred` (cred_jar, 0xb8) is\nleaked from the `kmem_cache_alloc` trace (call-site low21 `0x19c474`); the\nKASLR slide comes from the timer call site. The victim's `k_itimer` slab is\nfreed and reclaimed by AF_UNIX send fragments (order 0–3); the payload places\na fake rb node at `V+0x78`: `__rb_parent_color = A` (the node's own address),\n`rb_right = 0`, `rb_left = target`. `RB_EMPTY_NODE()` is therefore true and\n`rb_next()` returns NULL, so `cleanup_timerqueue()` pops exactly this node;\n`__rb_erase_augmented()` takes the left-child case and writes\n`__rb_parent_color` to `target`.\n\n**A. Trigger (`src\u002Fpoc.c`).** Same failed-exec setup without a payload: the\nreap erases the stale node against freed memory and panics in\n`cleanup_timerqueue()`.\n\n**B. Fake cred (`src\u002Fexp.c`).** Two reaps point the helper's `cred` at a fake\ncred built in the reclaimed page (`user_ns`\u002F`group_info`\u002F`ucounts` reuse the\nreal `init_*` symbols). It verifies the primitive (`getuid()==0 &&\ngeteuid()==0`) but cannot exec: `commit_creds()` has\n`BUG_ON(cred != real_cred)` and the fake cred has `security = NULL`.\n\n**C. Real-cred zero write (`src\u002Fuid0.c`).** Write `target = cred + 8`\n(uid\u002Fgid) in place; the child calls `setuid(0)` (kuid == old uid, no\nCAP_SETUID) and execs `\u002Fsystem\u002Fbin\u002Fsh` → uid-0 shell in `u:r:shell:s0`\n(bounding set only, no `CAP_DAC_OVERRIDE`).\n\n**D. KernelSU (`app\u002F`).** Three more writes on the same primitive:\n`selinux_state - 7` (permissive), `cred + 0x40` (bit 16 = CAP_SYS_MODULE),\n`cred + 8` (loader uid\u002Fgid). The loader then `finit_module()`s\n`kernelsu.ko` patched for the running release (vermagic rewrite, 226 symbols\nrelocated by the slide); the launcher stays uid 2000 and the module grants\nroot (`su -c id` → `u:r:ksu:s0`).\n\n## Adapted versions\n\n| Kernel release | Device \u002F OS | Status |\n|---|---|---|\n| `6.12.38-android16-5-gfde7767f6ef6-abogki481467632-4k` | YLP-W00 \u002F MagicOS 10.0.0 | verified |\n| `6.12.58-android16-6-g3a7ac1674240-abogki541502914-4k` | YLP-W00 \u002F MagicOS 11.0.0.109 | verified |\n| `6.12.58-android16-6-g142ddad31e60-abogki576095858-4k` | YLP-W00 \u002F MagicOS 11.0.0.117(SP4) | static adaptation; runtime pending |\n\nEach profile carries its own call sites, `selinux_state` and a 226-symbol\n`ko-syms` table; binaries and the APK select by exact `uname -r`.\n\n## Build and run\n\n```sh\nmake            # build\u002Fpoc   (trigger only)\nmake exp        # build\u002Fexp   (fake-cred proof)\nmake uid0       # build\u002Fuid0  (uid-0 shell)\nmake apk        # app\u002FCVE98260Root.apk\n\nadb push build\u002Fuid0 \u002Fdata\u002Flocal\u002Ftmp\u002Fuid0\nadb shell chmod 755 \u002Fdata\u002Flocal\u002Ftmp\u002Fuid0\nadb shell \u002Fdata\u002Flocal\u002Ftmp\u002Fuid0 --check\nadb shell \u002Fdata\u002Flocal\u002Ftmp\u002Fuid0\n```\n\nApp: install `app\u002FCVE98260Root.apk`, start Shizuku as shell, then\n`1. 授权 Shizuku` → `2. 部署资产` → `3. 开始提权`.\n\n## Repository\n\n```text\nsrc\u002Fpoc.c              trigger only\nsrc\u002Fexp.c              fake-cred chain\nsrc\u002Fuid0.c             real-cred uid-0 shell\nsrc\u002Fkernel_profile.h   per-release call sites, symbols, offsets\napp\u002F                   Shizuku + KernelSU app\ndocs\u002Fanalysis.md       technical notes\ndocs\u002Frelease-notes.md  release record\n```\n\nRelease: [`v1.4.5-app`](https:\u002F\u002Fgithub.com\u002Fwoshigenm\u002FCVE-2026-98260\u002Freleases\u002Ftag\u002Fv1.4.5-app).\nLicense: MIT, see [`LICENSE`](LICENSE).\n","这是一个针对荣耀MagicPad3 Pro平板（YLP-W00）Android 16系统的本地提权（LPE）漏洞利用项目，基于CVE-2026-98260——posix-cpu-timers组件中的释放后使用（UAF）漏洞。项目提供完整的PoC与EXP，支持在SELinux Enforcing、KASLR开启且Bootloader锁定的环境下获取uid-0 shell，并集成KernelSU内核模块加载能力。技术上利用timerqueue红黑树擦除逻辑缺陷，结合slab内存重用与cred结构体篡改，实现无需分区写入的稳定提权。适用于Android安全研究、设备漏洞验证及内核提权链分析等场景。",2,"2026-11-24 04:40:30","CREATED_QUERY"]