Repository navigation
feat(backend): add cve_2026_98260 posix timer route for Nothing Phone (3) - #1053
Merged
Merged
Conversation
- wire: route id 4 / route.posix_timer_uaf, backend id 3 / cve_2026_98260. - profile: optional backend token, posix timer geometry fields, HOCON schema. - app/profile-core plumbing and contract tests.
- ported tick-timer UAF trigger, spray, leak and fake credential primitives. - registered root_child x cve_2026_98260 x posix_timer_uaf in the catalogue. - KernelSU/APatch/Nova handoff with per-manager package and temp cleanup. - design, device gate and verification records.
- 6.6.127-android15-8-gf0987337fa35-ab15756704-4k on C5.0-260924-2115. - posix_timer_uaf geometry and cve_2026_98260 backend selection. - index registration and supported-device tables.
- Kotlin availability now mirrors the native catalog for backend 3. - PosixTimerConfig.Fields is the single posix field descriptor used by app validation. - RouteCatalogAgreementTest pins ProfileConfig.Routes to RouteKind tokens.
- RoutePolicyList now contains all four routes for generic consumers. - PiRoutePolicyList keeps the 43499 race window on its original three policies. - route_policy_test covers the full registry and the PI default.
- Split the 1773-line ported primitive into trace/spray/cred units with one ptimer_state accessor. - Move KernelSU/APatch/Nova command construction into session/manager_handoff; the core executes a prepared command. - Add --manager-package and share the retry_stage helper across both backends. - Remove the unused root-script write and duplicate route setup owner.
- Both entry paths forward the selected manager package to native. - RunArtifacts owns the work dir and direct-run artifact cleanup, with logged failures.
- KernelSU, APatch and SukiSU Nova all passed after the handoff/core refactor. - Temporary directories were clean after each run.
- Records the review findings, final structure and registered C primitive exception. - Includes the verification matrix and explicit preservation list.
Octobersama
added a commit
to Octobersama/LSPrivilege
that referenced
this pull request
Dec 3, 2026
feat: add cve_2026_98260 posix timer route (fork mirror of LSPosed#1053)
This was referenced Dec 3, 2026
Collaborator
|
merge to another branch first |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述 / Summary
新增 CVE-2026-98260 backend 与
posix_timer_uafroute,并为 Nothing Phone (3)Metroid(A024,C5.0-260924-2115)增加
6.6.127-android15-8-gf0987337fa35-ab15756704-4kprofile。
该 backend 使用 POSIX tick timer 的 UAF 写入原语完成:
W1 SELinux byte-fix → W1b panic_on_warn → W2 fake credential → W3 seccomp
(shell 入口通常跳过)→ root manager handoff。
设计、最终结构和例外记录见:
docs/analysis/cve-2026-98260-refactor-plan.md设备与验证 / Device and evidence
6.6.127-android15-8-gf0987337fa35-ab15756704-4kSeccomp: 0)实测结果:
uid=0 ... context=u:r:ksu:s0、kernelsu Live、Enforcingkernelpatch Live、APatch ready、Enforcingsuuid=0、kernelsu Live、Enforcing/data/local/tmp只剩系统项bin.mt.plus、dalvik-cache;最终重启后无 root 模块、Enforcing变更 / Changes
1. 契约 / Contract
posix_timer_uaf,backend id 3cve_2026_98260backendtoken;route.posix_timer_uaf私有字段2. 后端 / Backend
retry_stage重试语义session/manager_handoff:--manager-package传 manager 包名root_child × cve_2026_98260 × posix_timer_uaf组合驱动3. 结构重构 / Refactor
RoutePolicyList包含全部路由;PI 攻击窗口使用PiRoutePolicyList子集route/posix_timer/{trace,spray,cred},状态收敛到ptimer_state()ptimer_setupownerRunArtifacts清理session/backend/retry_stage.hpp4. Profile
SUPPORTED_DEVICES{,_ZH}增加 Nothing Phone (3)(A024),Shizuku recommendedReview 路线 / Suggested review route
设计边界
docs/analysis/cve-2026-98260-refactor-plan.md契约与 wire
profile/model.h、profile/binary.cpp、profile-core/.../RouteKind.kt、PosixTimerConfig.kt、ComponentKind.ktroute_catalog_test/RouteCatalogAgreementTest、profile_binary_test、PosixTimerConfigTest路由注册与调度
route/route_policy.hpp、route/component_catalog.hpp、route/orchestrator.hpp98260 后端
session/backend/cve_2026_98260_backend.cpp原语与 handoff
route/posix_timer/*:只看状态边界和 API,不要求逐行审 syscall 常量session/manager_handoff.*:包名校验、APatch module 解析、失败关闭路径App/cleanup
RunArtifacts.kt、两条入口的 argv 与 cleanup 调用Profile/docs
SUPPORTED_DEVICES、gate 文档Commit 映射:
ffb2eba045d5509f344b09c0f62ae279ce3dd51962857bc0511ea96663ff277712f51720验证 / Verification
make -C src lsprivilege:0 error / 0 warningmake -C src lint-tidy:0 findingscmp_disasm.pyvs9b51c391:6 个攻击函数全部LAYOUT-SHIFT(仅标注的全局地址操作数不同),RESULT: PASS
route_policy_test、component_catalog_test、backend_contract_test、profile_binary_test、route_catalog_test全 ok:profile-core:test:ok:app:testDebugUnitTest:99 tests,3 failed;三者均为既有 golden/fixture问题(
NativeDocumentEquivalenceTest、ExporterAgreementTest、ProfileMigrationEquivalenceTest),在未改动的 upstreammain上同样失败:app:assembleDebug:成功兼容性与回滚 / Compatibility and rollback
/data文件并在运行后清理已知边界 / Known limitations
C primitive 保持 C 实现
accessor、拆分文件、明确 process-lifetime ownership
43499 retry helper 未设备复测
cmp_disasm覆盖;本目标设备的 profile 只验证98260,无法在设备上跑 43499 路径
APatch module 解析
kernelpatch.ko;缺失时从 manager APK 的assets/androidNN-X.Y_kernelpatch.ko解压PR 规模
PR,可按上表拆为 contract/backend/profile 与 refactor 两组
Checklist
cmp_disasm