Linux: Use After Free
CVE-2026-64560 is a high-severity use after free vulnerability in Linux, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions 67aa823e3e8c229c6d374df79c804f6721cb83b6, d8bcb28abad857f1415da7656f19b2ada90af04f, cc35ddbc497311e0b6b9a6a6a4f4d1217d6ab1aa as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.66% chance of exploitation within 30 days, higher than 52% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Linux to 67aa823e3e8c229c6d374df79c804f6721cb83b6 or d8bcb28abad857f1415da7656f19b2ada90af04f or cc35ddbc497311e0b6b9a6a6a4f4d1217d6ab1aa or 12a891c773aeb5823d63dbd0cb2ab931d6c21c9b, whichever matches your release line, or a later version.
- Update Linux Kernel to 5.10.262 or 5.15.213 or 6.1.180 or 6.6.147, whichever matches your release line, or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59 up to, but not including, 67aa823e3e8c229c6d374df79c804f6721cb83b6; 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59 up to, but not including, d8bcb28abad857f1415da7656f19b2ada90af04f; 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59 up to, but not including, cc35ddbc497311e0b6b9a6a6a4f4d1217d6ab1aa; 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59 up to, but not including, 12a891c773aeb5823d63dbd0cb2ab931d6c21c9b; 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59 up to, but not including, e74443f5db0037c556ef436fa64b88bf4ea08f83; 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59 up to, but not including, 6a7ecc25abe6f0fecc6e62a05096987200edbd02; 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59 up to, but not including, ad1cafa1bdaa71da85d71cac053838bbe97852b6; 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59 up to, but not including, 920f893f735e92ba3a1cd9256899a186b161928d; and 1 more ranges | 67aa823e3e8c229c6d374df79c804f6721cb83b6, d8bcb28abad857f1415da7656f19b2ada90af04f, cc35ddbc497311e0b6b9a6a6a4f4d1217d6ab1aa, 12a891c773aeb5823d63dbd0cb2ab931d6c21c9b, e74443f5db0037c556ef436fa64b88bf4ea08f83, 6a7ecc25abe6f0fecc6e62a05096987200edbd02 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | V3.1.6 and later; V3.1.7 and later | Not stated |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | V3.1.6 and later; V3.1.7 and later | Not stated |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | V3.1.6 and later; V3.1.7 and later | Not stated |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | V3.1.6 and later; V3.1.7 and later | Not stated |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | all versions | Not stated |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | V3.1.6 and later; V3.1.7 and later | Not stated |
| Linux | Linux Kernel | 5.7 up to, but not including, 5.10.262; 5.11 up to, but not including, 5.15.213; 5.16 up to, but not including, 6.1.180; 6.2 up to, but not including, 6.6.147; 6.7 up to, but not including, 6.12.100; 6.13 up to, but not including, 6.18.41; 6.19 up to, but not including, 7.1.5; 7.2 | 5.10.262, 5.15.213, 6.1.180, 6.6.147, 6.12.100, 6.18.41 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by CNA.
Official 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---
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Use After Free
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.
How developers prevent this class of flaw
- Choose a language that provides automatic memory management.
- When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- git.kernel.org/stable/c/12a891c773aeb5823d63dbd0cb2ab931d6c21c9b
- git.kernel.org/stable/c/67aa823e3e8c229c6d374df79c804f6721cb83b6
- git.kernel.org/stable/c/6a7ecc25abe6f0fecc6e62a05096987200edbd02
- git.kernel.org/stable/c/920f893f735e92ba3a1cd9256899a186b161928d
- git.kernel.org/stable/c/ad1cafa1bdaa71da85d71cac053838bbe97852b6
- git.kernel.org/stable/c/cc35ddbc497311e0b6b9a6a6a4f4d1217d6ab1aa
- git.kernel.org/stable/c/d8bcb28abad857f1415da7656f19b2ada90af04f
- git.kernel.org/stable/c/e74443f5db0037c556ef436fa64b88bf4ea08f83
Third-party and government advisories
- cert-portal.siemens.com/productcert/html/ssa-019113.htmlThird Party Advisory
- cert-portal.siemens.com/productcert/html/ssa-457936.htmlThird Party Advisory
- cert-portal.siemens.com/productcert/html/ssa-784472.htmlThird Party Advisory
Recent Use After Free vulnerabilities
- 9.8 Critical severity
- 7.5 High severity
- 8.8 High severity
- 8.8 High severity
- 9.8 Critical severity
- 9.8 Critical severity
Spotted an error? Tell us.