[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108957":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":9,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":18,"hasPages":18,"topics":20,"createdAt":9,"pushedAt":21,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":14,"starSnapshotCount":14,"syncStatus":13,"lastSyncTime":25,"discoverSource":26},108957,"InfinityCore-Android-CVE-2026-98260","ylh440104\u002FInfinityCore-Android-CVE-2026-98260","ylh440104","CVE-2026-98260 (Timer) Android\u002FARM64 port",null,"C",67,22,2,0,1,8,42.39,false,"main",[],"2026-10-25 05:35:18","2026-11-23 07:37:28","# InfinityCore Android — CVE-2026-98260 (Timer)\n\n## 中文\n\n### 概述\n\nInfinity Core 系列 Timer 子系统漏洞的 ARM64 实现，目标内核形态为 7.0 系（Ubuntu 26.04 7.0.0-30-generic 同源代码结构）。本仓库实现完整的触发与提权链，关键偏移已按该目标版本结构布局写死，可直接对照目标 vmlinux 修正符号地址。\n\n### 漏洞原理\n\n非 leader 线程调用 exec() 时 `de_thread()` 交换 TID 并 `release_task(leader)`，POSIX timer 清理被放在多个可失败操作之后。exec 失败后，已释放的 k_itimer 的 timerqueue 节点仍留在存活任务的 timerqueue 中，后续清理再次解引用该节点造成 UAF。\n\n利用链：oracle 线程池打竞态 → AIO ring 堆喷回收 UAF 对象 → elist 泄露 task 地址 → 受控页构造 fake timer + fake cred → timerqueue 摘除双写把 fake cred 写进 task->cred → setresuid(0) 拿 root shell。\n\n### 已写死的布局常量（7.0 结构）\n\n    k_itimer.it.cpu.elist        0xe0\n    k_itimer.it.cpu.handling     0xf0\n    k_itimer.it_interval         0x68\n    k_itimer 大小                0x180\n    task_struct.cpu_timers 头    0xca0\n    task_struct.cred             0xd00\n    cred.uid\u002Fgid\u002Feuid\u002F...        4\u002F8\u002F14\u002F18\u002F24\u002F28\u002F34\u002F38\n    cred.cap_inh\u002Fprm\u002Feff         0x30\u002F0x40\u002F0x50\n    cred.security                0x80\n    cred.user_ns                 0x90\n    cred 大小                    0xb8\n\n需要按目标机修正的：符号地址（本机 KASLR 泄露会自校准，无需硬编码）。\n\n### 文件\n\n    timer_lpe.c           主程序\n    ic_timer_target.h     结构布局（已写死）\n    ic_compat.h           syscall 封装、AArch64 汇编原语\n    ic_util.h             通用工具\n    ic_shellcode_arm64.c  AArch64 shellcode 生成器\n    ic_target.h           其他偏移\n\n### 编译\n\n    export ANDROID_NDK_HOME=\u002Fpath\u002Fto\u002Fndk\n    $ANDROID_NDK_HOME\u002Ftoolchains\u002Fllvm\u002Fprebuilt\u002Flinux-x86_64\u002Fbin\u002Faarch64-linux-android29-clang \\\n        -O2 -std=gnu11 -static -fno-stack-protector -fno-pic -no-pie \\\n        -I. timer_lpe.c ic_shellcode_arm64.c -o ic98260 \\\n        -Wl,--gc-sections -Wl,-z,norelro -pthread\n\n## English\n\n### Overview\n\nAn ARM64 implementation of the Infinity Core Timer subsystem vulnerability, targeting the 7.0-series kernel shape (same code structure as Ubuntu 26.04 7.0.0-30-generic). Complete trigger and escalation chain. Key offsets are hardcoded to that target structure layout; only symbol addresses need to be matched against the target vmlinux.\n\n### Root cause\n\nWhen a non-leader thread calls exec(), de_thread() exchanges TIDs and calls release_task(leader); POSIX timer cleanup sits behind several fallible operations. After a failed exec, the freed k_itimer's timerqueue node stays in a live task's timerqueue, and later cleanup dereferences it again.\n\nChain: oracle thread pool races → AIO ring spray reclaims the UAF object → elist leaks the task address → fake timer and fake cred crafted in a controlled page → timerqueue unlink double-writes the fake cred into task->cred → setresuid(0) gives a root shell.\n\n### Hardcoded layout (7.0 structure)\n\n    k_itimer.it.cpu.elist        0xe0\n    k_itimer.it.cpu.handling     0xf0\n    k_itimer.it_interval         0x68\n    sizeof(k_itimer)             0x180\n    task_struct.cpu_timers head  0xca0\n    task_struct.cred             0xd00\n    cred.uid\u002Fgid\u002Feuid\u002F...        4\u002F8\u002F14\u002F18\u002F24\u002F28\u002F34\u002F38\n    cred.cap_inh\u002Fprm\u002Feff         0x30\u002F0x40\u002F0x50\n    cred.security                0x80\n    cred.user_ns                 0x90\n    sizeof(cred)                 0xb8\n\nOnly symbol addresses need per-target adjustment; the in-kernel KASLR leak self-calibrates.\n\n### Files\n\n    timer_lpe.c           main program\n    ic_timer_target.h     structure layout (hardcoded)\n    ic_compat.h           syscall wrappers, AArch64 asm primitives\n    ic_util.h             shared helpers\n    ic_shellcode_arm64.c  AArch64 shellcode emitter\n    ic_target.h           other offsets\n\n### Build\n\n    export ANDROID_NDK_HOME=\u002Fpath\u002Fto\u002Fndk\n    $ANDROID_NDK_HOME\u002Ftoolchains\u002Fllvm\u002Fprebuilt\u002Flinux-x86_64\u002Fbin\u002Faarch64-linux-android29-clang \\\n        -O2 -std=gnu11 -static -fno-stack-protector -fno-pic -no-pie \\\n        -I. timer_lpe.c ic_shellcode_arm64.c -o ic98260 \\\n        -Wl,--gc-sections -Wl,-z,norelro -pthread","这是一个针对 Android ARM64 平台的 Linux 内核本地提权（LPE）利用工具，实现 CVE-2026-98260（Timer 子系统 UAF 漏洞）的完整攻击链。核心功能包括竞态触发、AIO ring 堆喷回收、task\u002Fcred 地址泄露、伪造 timer 与 cred 结构，并通过 timerqueue 双写完成权限提升至 root。技术特点为结构偏移硬编码适配 Linux 7.0 系内核（如 Ubuntu 26.04 同源版本），支持 KASLR 自校准，依赖静态编译与 NDK 工具链。适用于 Android 设备内核安全研究、漏洞复现及红队本地提权场景。","2026-11-24 04:35:25","CREATED_QUERY"]