Exploit database

Vulnerability

CVE-2026-64560

posix-cpu-timers: Prevent UAF caused by non-leader exec() race

Vulnerability details

Score
7.8
Severity
high

CVSS 3.1 · Linux

Vector string

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

In the Linux kernel, the following vulnerability has been resolved: posix-cpu-timers: Prevent UAF caused by non-leader exec() race Wongi and Jungwoo decoded and reported a non-leader exec() related race which can result in an UAF: sys_timer_delete() exec() posix_cpu_timer_del() // Observes old leader p = pid_task(pid, pid_type); de_thread() switch_leader(); release_task(old_leader) __exit_signal(old_leader) sighand = lock(old_leader, sighand); posix_cpu_timers*_exit(); sighand = lock_task_sighand(p) unhash_task(old_leader); sh = lock(p, sighand) old_leader->sighand = NULL; unlock(sighand); (p->sighand == NULL) unlock(sh) return NULL; // Returns without action if(!sighand) return 0; free_posix_timer(); This is "harmless" unless the deleted timer was armed and enqueued in p->signal because on exec() a TGID targeted timer is inherited. As sys_timer_delete() freed the underlying posix timer object run_posix_cpu_timers() or any timerqueue related add/delete operations on other timers will access the freed object's timerqueue node, which results in an UAF. There is a similar problem vs. posix_cpu_timer_set(). For regular posix timers it just transiently returns -ESRCH to user space, but for the use case in do_cpu_nanosleep() it's the same UAF just that the k_itimer is allocated on the stack. Also posix_cpu_timer_rearm() fails to rearm the timer, which means it stops to expire. While debating solutions Frederic pointed out another problem: 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)); On weakly ordered architectures it is not guaranteed that posix_cpu_timer_del() will observe the stores in posix_cpu_timers*_exit() when p->sighand is observed as NULL, which means the WARN() can be a false positive. Solve these issues by: 1) Changing the store in __exit_signal() to smp_store_release(). 2) Adding a smp_acquire__after_ctrl_dep() into the !sighand path of lock_task_sighand(). 3) Creating a helper function for looking up the task and locking sighand which does not return when sighand == NULL. Instead it retries the task lookup and only if that fails it gives up. 4) Using that helper in the three affected functions. #1/#2 ensures that the reader side which observes sighand == NULL also observes all preceeding stores, i.e. the stores in posix_cpu_timers*_exit() and the ones in unhash_task(). #3 ensures that the above described non-leader exec() situation is handled gracefully. When the task lookup returns the old leader, but sighand == NULL then it retries. In the non-leader exec() case the subsequent task lookup will observe the new leader due to #1/#2. In normal exit() scenarios the subsequent lookup fails. When the task lookup fails, the function also checks whether the timer is still enqueued and issues a warning if that's the case. Unfortunately there is nothing which can be done about it, but as the task is already not longer visible the timer should not be accessed anymore. This check also requires memory ordering, which is not provided when the first lookup fails. To achieve that the check is preceeded by a smp_rmb() which pairs with the smp_wmb() in write_seqlock() in __exit_signal(). That ensures that the stores in posix_cpu_timers*_exit() are visible. The history of the non-leader exec() issue goes back to the early days of posix CPU timers, which stored a pointer to the group leader task in the timer. That obviously fails when a non-leader exec() switches the leader. commit e0a70217107e ("posix-cpu-timers: workaround to suppress the problems with mt exec") added a temporary workaround for that in 2010 which surv ---truncated---

CVE Program

Exploit source choices

18 sources
villager1314/cve-2026-64560-analysis
GH-0f2f6d57b53212d1c60b8f69d72975ceGitHubUnofficial GitHub sourcePreferred

villager1314/cve-2026-64560-analysis source repository

2026-08-035 files · 81 stars
feiguang-ai/plz110-6.12.69-cve-2026-64560-ksu
GH-2cd54743dc4f058e62eb99d21dbb8848GitHubUnofficial GitHub source

一加 15T(PLZ110)临时 root + KernelSU per-boot 接管:CVE-2026-64560 移植,不写分区、重启即失效。内核 6.12.69-android16-6-g242e1a07f878。

2026-10-15127 files · 36 stars
feng1586/cve-2026-64560-public
GH-d5555510dcc3660d1db2c537649f03f0GitHubUnofficial GitHub source

CVE-2026-64560 staged security research package

2026-10-19120 files · 30 stars
a23bc/op13-cve-2026-64560
GH-8a45f9c7af288ef0f5c475f939787718GitHubUnofficial GitHub source

a23bc/op13-cve-2026-64560 source repository

2026-09-2459 files · 16 stars
no-world/rootkit
GH-4e1c81f209356a53c0f21519df205900GitHubUnofficial GitHub source

越狱助手 · RootKit for Honor Magic9 (CVE-2026-64560 → cred 写 → 自制内核模块 → KernelSU),Flutter + Shizuku 一键 root

2026-10-24183 files · 11 stars
qingle009/opace6-cve-2026-64560
GH-9402833d722d7cd1909c04732e535a13GitHubUnofficial GitHub source

OnePlus Ace 6 temporary root tool (CVE-2026-64560) - device-verified port with corrected bootidParent address

2026-09-2632 files · 11 stars
wangs-official/opace6-cve-2026-64560
GH-938716d7bb21279aed0a36a8553e75d3GitHubUnofficial GitHub source

针对 OnePlus Ace6 设备的 cve-2026-64560 复现

2026-09-2531 files · 8 stars
become-illusory/cve-2026-64560-a16
GH-62795ef7663ec78bf961141c94d4c5a3GitHubUnofficial GitHub source

CVE-2026-64560 toolkit: Go single-binary toolchain + realme RMX5010 (A16, SM8750) target port

2026-09-2593 files · 6 stars
chayewuu/prague-cve-2026-64560-os4.0
GH-34a0ed735f38ed590aa74a6cb506e245GitHubUnofficial GitHub source

REDMI K90 Max在OS4.0.0.14.XAACNXM利用CVE-2026-64560获取ROOT权限。

2026-10-1720 files · 6 stars
wanwuzhishi/ksu-root
GH-301199c9bb080b0772fdd85cbf6a4777GitHubUnofficial GitHub source

在 REDMI K90 Max(代号 prague / OS4.0.0.14)上,从手机端一键开一个临时 root。利用 CVE-2026-64560(posix-cpu-timers UAF)加载 KernelSU LKM,重启即失效。不需要电脑、不刷机、不解锁 Bootloader。

2026-10-2545 files · 6 stars
sangsheng2026/honor-90gt-mag-an00-root-research
GH-e2bb33f25c5dfe2d640cadf16e3f502bGitHubUnofficial GitHub source

荣耀 90 GT (MAG-AN00) 提权尝试全记录:CVE-2026-64560 移植、堆喷射原语穷举与漏洞判定方法论

2026-10-0916 files · 3 stars
totsiaw/cve-2026-64560-rmx6699
GH-3e69e2c88abcb252c1d84d1c127caceeGitHubUnofficial GitHub source

CVE-2026-64560 temporary-root exploit for realme RMX6699 (Snapdragon 8 Elite, kernel 6.6.118, Android 17/COOS17)

2026-10-17129 files · 3 stars
itsmichiya/exploit-cve-2026-64560
GH-1e31e9d3c925d428535f03a62887c474GitHubUnofficial GitHub source

Exploit for CVE-2026-64560, kernelctf-lts-6.12.95

2026-07-235 files · 2 stars
feng1586/cve-2026-64560-sources
GH-3513fc35b5bb71ac60fe6488e0db5ba8GitHubUnofficial GitHub source

Corresponding source for the CVE-2026-64560 public binaries

2026-10-191,146 files · 1 stars
maosasagawa/pmx110-cve-2026-64560
GH-3b65374860ef7bd1fcaca207fa8ff527GitHubUnofficial GitHub source

PMX110 (OPPO MT6995, kernel 6.18.21) CVE-2026-64560 research: port, evidence, bounded run scripts

2026-10-1736 files · 1 stars
youssefnoser/opd2415-6.6.118-cve-2026-64560-ksu
GH-9247836616796f879c19808cd689e07bGitHubUnofficial GitHub source

Per-boot KernelSU late-load via CVE-2026-64560 — OnePlus Pad 3 (OPD2415, SM8750, kernel 6.6.118-android15-8, 4K, locked bootloader): payload port, device profile + kallsyms evidence, host driver, companion APK (me.exo1i.opd2415)

2026-10-27175 files · 1 stars
000999888111/op13-cve-2026-64560
GH-00a2781aa7745a1ae991553a9e9498d6GitHubUnofficial GitHub source

000999888111/op13-cve-2026-64560 source repository

2026-10-04437 files · 0 stars