Skip to main content

Linux Kernel CVE-2026-64560

| EUVDEUVD-2026-50417 HIGH
2026-07-29 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-78ph-mc3q-52vv
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Share

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY
7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
7.0 HIGH

Local unprivileged access (AV:L/PR:L) with no interaction; exploitation hinges on winning a narrow exec/delete race so AC:H; kernel UAF yields full C/I/A impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE
HIGH
qualitative
Red Hat
7.0 MEDIUM
qualitative

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Generated
Jul 30, 2026 - 06:58 vuln.today
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch available
Jul 29, 2026 - 18:17 EUVD
CVE Published
Jul 29, 2026 - 17:16 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 29, 2026 - 17:16 cve.org
HIGH 7.8

DescriptionCVE.org

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().

  1. 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.

  1. 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---

AnalysisAI

Local privilege-escalation/denial-of-service in the Linux kernel's POSIX CPU timers subsystem arises from a use-after-free triggered by a race between sys_timer_delete() and a non-leader exec(). When de_thread() switches the thread-group leader and releases the old leader, posix_cpu_timer_del() can observe the stale leader with a now-NULL sighand, return without unqueueing an armed TGID-targeted timer, and free the underlying k_itimer while its timerqueue node remains enqueued in p->signal - leaving run_posix_cpu_timers() and other timer add/delete operations to dereference freed memory. There is no public exploit identified at time of analysis and the flaw is not in CISA KEV; a vendor patch is available in stable releases.

Technical ContextAI

The affected component is the kernel's posix-cpu-timers facility, which manages per-process (CLOCK_PROCESS_CPUTIME_ID / TGID-targeted) and per-thread CPU-time timers stored in a timerqueue anchored in the task's signal_struct. The root-cause class is a use-after-free (CWE-416) produced by a time-of-check/time-of-use race condition (CWE-362): lock_task_sighand() returned NULL when p->sighand had been cleared during __exit_signal()/de_thread(), causing timer-deletion code to skip dequeuing an armed timer before freeing it. A TGID-targeted timer is inherited across exec() when a non-leader thread calls execve() and de_thread() promotes it to leader (switch_leader()) and releases the old leader, so the deleting thread's pid_task() lookup can still resolve the old leader. A secondary correctness bug is memory-ordering: on weakly ordered architectures the reader observing sighand==NULL was not guaranteed to see the preceding stores from posix_cpu_timers*_exit()/unhash_task(). The fix converts the sighand store to smp_store_release(), adds smp_acquire__after_ctrl_dep() and an smp_rmb() paired with the write_seqlock() smp_wmb(), and introduces a retrying task-lookup-and-sighand-lock helper used by posix_cpu_timer_del(), posix_cpu_timer_set(), and posix_cpu_timer_rearm().

RemediationAI

Upstream fix available (commits 920f893f735e92ba3a1cd9256899a186b161928d and ad1cafa1bdaa71da85d71cac053838bbe97852b6); the change is included in stable release Linux 7.1.5 and mainline 7.2-rc3, so upgrade to a distribution kernel that incorporates these commits or to kernel 7.1.5 / 7.2-rc3 or later. Because there is no configuration toggle for POSIX CPU timers, there is no clean feature-disable workaround; compensating controls are limited to reducing local attacker exposure - restrict untrusted local and container workloads, minimize shells/accounts on affected multi-tenant hosts, and apply syscall filtering (seccomp) to block or restrict timer_create/timer_delete for untrusted sandboxes, accepting that this breaks applications relying on POSIX CPU timers. Verify the fix is present with your distro's security tracker keyed to CVE-2026-64560 and pull the patched kernel from https://git.kernel.org/stable/c/920f893f735e92ba3a1cd9256899a186b161928d.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Affected

Share

CVE-2026-64560 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy