CVE-2026-64560
posix-cpu-timers:防止由非领导者 exec() 竞争导致的 UAF
- 已发布
- 2026年7月29日
- 已更新
- 2026年10月19日
- 分配 CNA
- Linux
- 观察到的证据
- 2026年8月10日
初级CVSS
nvd · CVSS 3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H低 · 未来 30 天
- 百分位
- 43.2%
- 型号日期
- 2026年11月4日
EPSS 是统计估计,而不是确定性或影响衡量标准。将其与 CVSS、KEV 状态、暴露程度和您的环境相结合。
总结
在 Linux 内核中,已解决以下漏洞:posix-cpu-timers:防止由非领导者 exec() 竞争导致的 UAF Wongi 和 Jungwoo 解码并报告了一个与非领导者 exec() 相关的竞争,该竞争可能导致 UAF: ``` sys_timer_delete() exec() de_thread() switch_leader(); release_task(old_leader) __exit_signal(old_leader) sighand = lock(old_leader, sighand); posix_cpu_timers*_exit(); unhash_task(old_leader); old_leader->sighand = NULL; unlock(sighand); posix_cpu_timer_del() // Observes old leader p = pid_task(pid, pid_type); sighand = lock_task_sighand(p) sh = lock(p, sighand) (p->sighand == NULL) unlock(sh) return NULL; // Returns without action if(!sighand) return 0; free_posix_timer(); ``` 这“无害”,除非被删除的定时器已武装并排入 p->signal 队列,因为在 exec() 时,针对 TGID 的定时器会被继承。由于 sys_timer_delete() 释放了底层的 posix 定时器对象,run_posix_cpu_timers() 或任何其他定时器上的 timerqueue 相关添加/删除操作将访问已释放对象的 timerqueue 节点,从而导致 UAF。 posix_cpu_timer_set() 也存在类似问题。对于常规 posix 定时器,它只是暂时向用户空间返回 -ESRCH,但对于 do_cpu_nanosleep() 中的用例,这是相同的 UAF,只是 k_itimer 是在栈上分配的。此外,posix_cpu_timer_rearm() 无法重新武装定时器,这意味着它停止到期。 在讨论解决方案时,Frederic 指出了另一个问题: ``` posix_cpu_timer_del(tmr) __exit_signal(p) posix_cpu_timers*_exit(p); unhash_task(p); p->sighand = NULL; sh = lock_task_sighand(p) sighand = p->sighand; if (!sighand) return NULL; lock(sighand); if (!sh) WARN_ON_ONCE(timer_queued(tmr)); ``` 在弱有序架构上,当 p->sighand 被观察为 NULL 时,无法保证 posix_cpu_timer_del() 会观察到 posix_cpu_timers*_exit() 中的存储,这意味着 WARN() 可能是误报。 通过以下方式解决这些问题: 1) 将 __exit_signal() 中的存储更改为 smp_store_release()。 2) 在 lock_task_sighand() 的 !sighand 路径中添加 smp_acquire__after_ctrl_dep()。 3) 创建一个用于查找任务并锁定 sighand 的辅助函数,该函数在 sighand == NULL 时不返回。相反,它会重试任务查找,并且仅当该查找失败时才放弃。 4) 在三个受影响的函数中使用该辅助函数。 #1/#2 确保观察到 sighand == NULL 的读取方也能观察到所有先前的存储,即 posix_cpu_timers*_exit() 中的存储以及 unhash_task() 中的存储。#3 确保上述非领导者 exec() 情况得到妥善处理。当任务查找返回旧领导者,但 sighand == NULL 时,它会重试。在非领导者 exec() 情况下,由于 #1/#2,后续的任务查找将观察到新领导者。在正常的 exit() 场景中,后续查找会失败。当任务查找失败时,该函数还会检查定时器是否仍处于排队状态,如果是,则发出警告。不幸的是,对此无能为力,但由于任务已不再可见,因此不应再访问该定时器。此检查还需要内存排序,而首次查找失败时并不提供该排序。为实现这一点,检查之前有一个 smp_rmb(),它与 __exit_signal() 中 write_seqlock() 的 smp_wmb() 配对。这确保 posix_cpu_timers*_exit() 中的存储可见。 非领导者 exec() 问题的历史可以追溯到 posix CPU 定时器的早期,当时定时器中存储了指向组领导任务的指针。当非领导者 exec() 切换领导者时,这显然会失败。commit e0a70217107e(“posix-cpu-timers: workaround to suppress the problems with mt exec”)在 2010 年添加了一个临时解决方法,该解决方法存续了——已截断——
来源
Linux 内核针对 CVE-2026-64560 的 UAF 分析,包含竞态触发 PoC、补丁审查、受影响的 LTS/Android 版本矩阵,以及针对已修补设备的自检。
Device-bound CVE-2026-64560 adaptation for RedMi K80pro miro OS 3.0.304.0
针对 OnePlus 13 构建版本上 CVE-2026-64560 的设备特定 Android 内核漏洞利用,通过 ADB shell 提供临时 root 权限,并附带经过验证的载荷与移植工具。
CVE-2026-64560 toolkit: Go single-binary toolchain + realme RMX5010 (A16, SM8750) target port
Kernel UAF exploit chain for CVE-2026-64560 on REDMI K90 Max (Android 17): race in posix-cpu-timers, KASLR leak, cred overwrite, and KernelSU module load.
针对 CVE-2026-64560 的 KernelCTF 漏洞利用,该漏洞是 Linux 内核中 posix-cpu-timers 的释放后使用(use-after-free)问题,由非领导者 exec() 竞态触发,目标为 LTS 6.12.95。
- rootkit漏洞利用
Flutter/Shizuku Android app that chains the CVE-2026-64560 kernel UAF to write creds, load a custom kernel module and install KernelSU for one-tap root.
OnePlus Ace 6 temporary root tool (CVE-2026-64560) - device-verified port with corrected bootidParent address
小米 15 dada OS4.0.0.8 的设备绑定 CVE-2026-64560 适配
CVE-2026-64560 针对 realme RMX6699(Snapdragon 8 Elite,内核 6.6.118,Android 17/COOS17)的临时 root 漏洞利用
Temporary root tool for OnePlus Ace 6 that exploits the CVE-2026-64560 Linux kernel POSIX CPU timer use-after-free to gain root until reboot, without modifying system partitions.
- ksu-root漏洞利用
在 REDMI K90 Max(代号 prague / OS4.0.0.14)上,从手机端一键开一个临时 root。利用 CVE-2026-64560(posix-cpu-timers UAF)加载 KernelSU LKM,重启即失效。不需要电脑、不刷机、不解锁 Bootloader。
Staged Android kernel LPE research package for CVE-2026-64560 on Xiaomi 18 Pro: KASLR slide recovery, SELinux permissive, kprobe read, cred overwrite and LKM load.
PMX110 (OPPO MT6995, kernel 6.18.21) CVE-2026-64560 research: port, evidence, bounded run scripts
Porting template and derivation toolkit for adapting the CVE-2026-64560 Android kernel UAF local-privilege-escalation chain to the Redmi 14C (pond, MediaTek).
Documentation-only research notes on adapting CVE-2026-64560 temporary root for Redmi K90 (annibale) on HyperOS, covering firmware compatibility, stage observations, and root verification.
Android kernel exploit chain and reproducible build pipeline that uses CVE-2026-64560 to gain root on the OnePlus ACE 6T, with porting notes and evidence.
一加 15T(PLZ110)临时 root + KernelSU per-boot 接管:CVE-2026-64560 移植,不写分区、重启即失效。内核 6.12.69-android16-6-g242e1a07f878。
Android kernel root research toolkit for Honor 90 GT: SELinux device probing, slab spray primitive validation, and AArch64 kernel Image disassembly for offsets and patch checks.
负责任的使用
仅在您拥有或有权测试的系统上使用漏洞信息。 Kitploit 链接到公共研究元数据,并且不存储漏洞代码或恶意负载。