# CVE-2026-64560: posix-cpu-timers: Prevent UAF caused by non-leader exec() race

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 8, 2026-11-26)
- **CWE:** CWE-416, CWE-362
- **Published:** 2026-07-29T16:47:17.602Z
- **Modified:** 2026-11-13T18:20:08.020Z

## Who should check

- Anyone running Linux \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 67aa823e3e8c229c6d374df79c804f6721cb83b6; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< d8bcb28abad857f1415da7656f19b2ada90af04f; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< cc35ddbc497311e0b6b9a6a6a4f4d1217d6ab1aa; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 12a891c773aeb5823d63dbd0cb2ab931d6c21c9b; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< e74443f5db0037c556ef436fa64b88bf4ea08f83; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 6a7ecc25abe6f0fecc6e62a05096987200edbd02; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< ad1cafa1bdaa71da85d71cac053838bbe97852b6; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 920f893f735e92ba3a1cd9256899a186b161928d
- Anyone running Linux 5.7

## 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---

## Affected and fixed versions

- Linux: \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 67aa823e3e8c229c6d374df79c804f6721cb83b6; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< d8bcb28abad857f1415da7656f19b2ada90af04f; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< cc35ddbc497311e0b6b9a6a6a4f4d1217d6ab1aa; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 12a891c773aeb5823d63dbd0cb2ab931d6c21c9b; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< e74443f5db0037c556ef436fa64b88bf4ea08f83; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 6a7ecc25abe6f0fecc6e62a05096987200edbd02; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< ad1cafa1bdaa71da85d71cac053838bbe97852b6; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 920f893f735e92ba3a1cd9256899a186b161928d (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- Upgrade Linux to 920f893f735e92ba3a1cd9256899a186b161928d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64560. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64560.md
Affected: Linux >= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, < 67aa823e3e8c229c6d374df79c804f6721cb83b6; >= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, < d8bcb28abad857f1415da7656f19b2ada90af04f; >= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, < cc35ddbc497311e0b6b9a6a6a4f4d1217d6ab1aa; >= 55e8c8eb2c7b6bf30e99423…
Fixed in: Linux 67aa823e3e8c229c6d374df79c804f6721cb83b6, Linux 12a891c773aeb5823d63dbd0cb2ab931d6c21c9b, Linux 6a7ecc25abe6f0fecc6e62a05096987200edbd02, Linux 920f893f735e92ba3a1cd9256899a186b161928d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64560 being exploited?

There is no confirmed exploitation: CVE-2026-64560 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64560?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64560?

Linux \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 67aa823e3e8c229c6d374df79c804f6721cb83b6; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< d8bcb28abad857f1415da7656f19b2ada90af04f; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< cc35ddbc497311e0b6b9a6a6a4f4d1217d6ab1aa; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 12a891c773aeb5823d63dbd0cb2ab931d6c21c9b; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< e74443f5db0037c556ef436fa64b88bf4ea08f83; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 6a7ecc25abe6f0fecc6e62a05096987200edbd02; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< ad1cafa1bdaa71da85d71cac053838bbe97852b6; \>= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, \< 920f893f735e92ba3a1cd9256899a186b161928d; Linux 5.7.

### Is there a fix for CVE-2026-64560?

Yes. Fixed in Linux 67aa823e3e8c229c6d374df79c804f6721cb83b6, Linux 12a891c773aeb5823d63dbd0cb2ab931d6c21c9b, Linux 6a7ecc25abe6f0fecc6e62a05096987200edbd02, Linux 920f893f735e92ba3a1cd9256899a186b161928d. Upgrade Linux to 920f893f735e92ba3a1cd9256899a186b161928d or later.

### How do I check if I'm affected by CVE-2026-64560?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/67aa823e3e8c229c6d374df79c804f6721cb83b6>
- patch: <https://git.kernel.org/stable/c/d8bcb28abad857f1415da7656f19b2ada90af04f>
- patch: <https://git.kernel.org/stable/c/cc35ddbc497311e0b6b9a6a6a4f4d1217d6ab1aa>
- patch: <https://git.kernel.org/stable/c/12a891c773aeb5823d63dbd0cb2ab931d6c21c9b>
- patch: <https://git.kernel.org/stable/c/e74443f5db0037c556ef436fa64b88bf4ea08f83>
- patch: <https://git.kernel.org/stable/c/6a7ecc25abe6f0fecc6e62a05096987200edbd02>
- patch: <https://git.kernel.org/stable/c/ad1cafa1bdaa71da85d71cac053838bbe97852b6>
- patch: <https://git.kernel.org/stable/c/920f893f735e92ba3a1cd9256899a186b161928d>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64560>

HTML: <https://flawdb.com/CVE-2026-64560> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64560>
