CVE-2026-64235
x86/ftrace: Relocate %rip-relative percpu refs in dynamic trampolines
Description
In the Linux kernel, the following vulnerability has been resolved: x86/ftrace: Relocate %rip-relative percpu refs in dynamic trampolines With CONFIG_CALL_DEPTH_TRACKING enabled on an x86 retbleed-affected platform (eg: Skylake), with retbleed=stuff, registering a dynamic ftrace trampoline crashes on the first call into the traced function: BUG: unable to handle page fault for address: ffff88817ae18880 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 4b53067 P4D 4b53067 PUD 0 Oops: Oops: 0002 [#1] SMP PTI CPU: 3 UID: 0 PID: 187 Comm: usleep Not tainted 7.0.10 #243 PREEMPT(full) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Arch Linux 1.17.0-2-2 04/01/2014 Code: 24 78 00 00 00 00 48 89 ea 48 89 54 24 20 48 8b b4 24 b8 00 00 00 48 8b bc 24 b0 00 00 00 48 89 bc 24 80 00 00 00 48 83 ef 05 <65> 48 c1 3d 1f a8 b6 02 05 48 8b 15 f6 00 00 00 4c 89 3c 24 4c 89 Call Trace: <TASK> ? find_held_lock ? exc_page_fault ? lock_release ? __x64_sys_clock_nanosleep ? lockdep_hardirqs_on_prepare ? trace_hardirqs_on __x64_sys_clock_nanosleep do_syscall_64 ? exc_page_fault ? call_depth_return_thunk entry_SYSCALL_64_after_hwframe ... Kernel panic - not syncing: Fatal exception This small reproducer allows to easily trigger the crash: # echo 'p __x64_sys_clock_nanosleep' > /sys/kernel/tracing/kprobe_events # echo 1 > /sys/kernel/tracing/events/kprobes/p___x64_sys_clock_nanosleep_0/enable # usleep 1 Monitoring the crash under GDB points to the exact instruction in charge of incrementing the call depth: sarq $5, %gs:__x86_call_depth(%rip) This instruction matches the one inserted by the ftrace_regs_caller from ftrace_64.S. This emitted code was likely working fine until the introduction of 59bec00ace28 ("x86/percpu: Introduce %rip-relative addressing to PER_CPU_VAR()"): it has made the call depth accounting addressing relative to $rip, instead of being based on an absolute address. As this code exact location depends on where the trampoline lives in memory, the corresponding displacement needs to be adjusted at runtime to actually correctly find the per-cpu __x86_call_depth value, otherwise the targeted address is wrong, leading to the page fault seen above. Fix the %rip-relative displacement of the copied CALL_DEPTH_ACCOUNT instruction (from ftrace_regs_caller) by calling text_poke_apply_relocation(), as it is done for example by the x86 BPF JIT compiler through x86_call_depth_emit_accounting(). This corrects both CALL_DEPTH_ACCOUNT slots, in ftrace_caller and ftrace_regs_caller. [ bp: Massage. ]
INFO
Published Date :
July 24, 2026, 4:16 p.m.
Last Modified :
Nov. 8, 2026, 4:10 p.m.
Remotely Exploit :
Yes !
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Apply kernel patch to correct %rip-relative displacement.
- Update the Linux kernel to the patched version.
- Rebuild and install the updated kernel.
- Reboot the system with the new kernel.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-64235.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-64235 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-64235
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-64235 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-64235 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Nov. 08, 2026
Action Type Old Value New Value Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: x86/ftrace: Reubicar referencias percpu relativas a %rip en trampolines dinámicos Con CONFIG_CALL_DEPTH_TRACKING habilitado en una plataforma x86 afectada por retbleed (ej: Skylake), con retbleed=stuff, registrar un trampoline ftrace dinámico falla en la primera llamada a la función rastreada: BUG: no se puede manejar el fallo de página para la dirección: ffff88817ae18880 #PF: acceso de escritura de supervisor en modo kernel #PF: error_code(0x0002) - página no presente PGD 4b53067 P4D 4b53067 PUD 0 Oops: Oops: 0002 [#1] SMP PTI CPU: 3 UID: 0 PID: 187 Comm: usleep No contaminado 7.0.10 #243 PREEMPT(full) Nombre del hardware: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Arch Linux 1.17.0-2-2 04/01/2014 Code: 24 78 00 00 00 00 48 89 ea 48 89 54 24 20 48 8b b4 24 b8 00 00 00 48 8b bc 24 b0 00 00 00 48 89 bc 24 80 00 00 00 48 83 ef 05 menor que 65mayor que 48 c1 3d 1f a8 b6 02 05 48 8b 15 f6 00 00 00 4c 89 3c 24 4c 89 Traza de Llamadas: [TAREA] ? find_held_lock ? exc_page_fault ? lock_release ? __x64_sys_clock_nanosleep ? lockdep_hardirqs_on_prepare ? trace_hardirqs_on __x64_sys_clock_nanosleep do_syscall_64 ? exc_page_fault ? call_depth_return_thunk entry_SYSCALL_64_after_hwframe ... Pánico del kernel - no sincronizando: Excepción fatal Este pequeño reproductor permite activar fácilmente el fallo: # echo ’p __x64_sys_clock_nanosleep’ > /sys/kernel/tracing/kprobe_events # echo 1 > /sys/kernel/tracing/events/kprobes/p___x64_sys_clock_nanosleep_0/enable # usleep 1 Monitorizar el fallo bajo GDB apunta a la instrucción exacta encargada de incrementar la profundidad de llamada: sarq $5, %gs:__x86_call_depth(%rip) Esta instrucción coincide con la insertada por el ftrace_regs_caller de ftrace_64.S. Este código emitido probablemente funcionaba bien hasta la introducción de 59bec00ace28 (’x86/percpu: Introducir direccionamiento relativo a %rip en PER_CPU_VAR()’): ha hecho que el direccionamiento de la contabilidad de la profundidad de llamada sea relativo a $rip, en lugar de basarse en una dirección absoluta. Como la ubicación exacta de este código depende de dónde reside el trampoline en memoria, el desplazamiento correspondiente necesita ser ajustado en tiempo de ejecución para encontrar realmente de forma correcta el valor __x86_call_depth por CPU; de lo contrario, la dirección objetivo es incorrecta, lo que lleva al fallo de página visto anteriormente. Corregir el desplazamiento relativo a %rip de la instrucción CALL_DEPTH_ACCOUNT copiada (de ftrace_regs_caller) llamando a text_poke_apply_relocation(), como se hace, por ejemplo, por el compilador JIT BPF de x86 a través de x86_call_depth_emit_accounting(). Esto corrige ambas ranuras CALL_DEPTH_ACCOUNT, en ftrace_caller y ftrace_regs_caller. [ bp: Ajustes. ] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 19, 2026
Action Type Old Value New Value Added CWE CWE-476 -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 16, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/8093442a2d1d4b42b9340a86023ccb2afb30b93a Added Reference https://git.kernel.org/stable/c/9edff632ca216169846f8a63a5a3dc467e239c7a Added Reference https://git.kernel.org/stable/c/a17dc12bfed8868e6a86f3b45c16065a70641acb Added Reference https://git.kernel.org/stable/c/d59cc66b702757e3c5a711e78a38583eac0c2738 Removed Reference https://git.kernel.org/stable/c/8093442a2d1d4b42b9340a86023ccb2afb30b93a Removed Reference https://git.kernel.org/stable/c/9edff632ca216169846f8a63a5a3dc467e239c7a Removed Reference https://git.kernel.org/stable/c/a17dc12bfed8868e6a86f3b45c16065a70641acb Removed Reference https://git.kernel.org/stable/c/d59cc66b702757e3c5a711e78a38583eac0c2738 Removed Reference Type https://git.kernel.org/stable/c/8093442a2d1d4b42b9340a86023ccb2afb30b93a Types: Patch Removed Reference Type https://git.kernel.org/stable/c/9edff632ca216169846f8a63a5a3dc467e239c7a Types: Patch Removed Reference Type https://git.kernel.org/stable/c/a17dc12bfed8868e6a86f3b45c16065a70641acb Types: Patch Removed Reference Type https://git.kernel.org/stable/c/d59cc66b702757e3c5a711e78a38583eac0c2738 Types: Patch -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 16, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-64235', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-10-16T15:37:47.446270Z'} -
Initial Analysis by [email protected]
Aug. 12, 2026
Action Type Old Value New Value Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.35 *cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.12 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.9 up to (excluding) 6.12.93 Added Reference Type kernel.org: https://git.kernel.org/stable/c/8093442a2d1d4b42b9340a86023ccb2afb30b93a Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/9edff632ca216169846f8a63a5a3dc467e239c7a Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a17dc12bfed8868e6a86f3b45c16065a70641acb Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/d59cc66b702757e3c5a711e78a38583eac0c2738 Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 27, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 24, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '59bec00ace28d565ae0a68b23063ef3b961d82d5', 'lessThan': '8093442a2d1d4b42b9340a86023ccb2afb30b93a', 'versionType': 'git'}, {'status': 'affected', 'version': '59bec00ace28d565ae0a68b23063ef3b961d82d5', 'lessThan': 'd59cc66b702757e3c5a711e78a38583eac0c2738', 'versionType': 'git'}, {'status': 'affected', 'version': '59bec00ace28d565ae0a68b23063ef3b961d82d5', 'lessThan': '9edff632ca216169846f8a63a5a3dc467e239c7a', 'versionType': 'git'}, {'status': 'affected', 'version': '59bec00ace28d565ae0a68b23063ef3b961d82d5', 'lessThan': 'a17dc12bfed8868e6a86f3b45c16065a70641acb', 'versionType': 'git'}], 'programFiles': ['arch/x86/kernel/ftrace.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.9'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.9', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.93', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.35', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.12', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['arch/x86/kernel/ftrace.c'], 'defaultStatus': 'affected'}] Added Description In the Linux kernel, the following vulnerability has been resolved: x86/ftrace: Relocate %rip-relative percpu refs in dynamic trampolines With CONFIG_CALL_DEPTH_TRACKING enabled on an x86 retbleed-affected platform (eg: Skylake), with retbleed=stuff, registering a dynamic ftrace trampoline crashes on the first call into the traced function: BUG: unable to handle page fault for address: ffff88817ae18880 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 4b53067 P4D 4b53067 PUD 0 Oops: Oops: 0002 [#1] SMP PTI CPU: 3 UID: 0 PID: 187 Comm: usleep Not tainted 7.0.10 #243 PREEMPT(full) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Arch Linux 1.17.0-2-2 04/01/2014 Code: 24 78 00 00 00 00 48 89 ea 48 89 54 24 20 48 8b b4 24 b8 00 00 00 48 8b bc 24 b0 00 00 00 48 89 bc 24 80 00 00 00 48 83 ef 05 <65> 48 c1 3d 1f a8 b6 02 05 48 8b 15 f6 00 00 00 4c 89 3c 24 4c 89 Call Trace: <TASK> ? find_held_lock ? exc_page_fault ? lock_release ? __x64_sys_clock_nanosleep ? lockdep_hardirqs_on_prepare ? trace_hardirqs_on __x64_sys_clock_nanosleep do_syscall_64 ? exc_page_fault ? call_depth_return_thunk entry_SYSCALL_64_after_hwframe ... Kernel panic - not syncing: Fatal exception This small reproducer allows to easily trigger the crash: # echo 'p __x64_sys_clock_nanosleep' > /sys/kernel/tracing/kprobe_events # echo 1 > /sys/kernel/tracing/events/kprobes/p___x64_sys_clock_nanosleep_0/enable # usleep 1 Monitoring the crash under GDB points to the exact instruction in charge of incrementing the call depth: sarq $5, %gs:__x86_call_depth(%rip) This instruction matches the one inserted by the ftrace_regs_caller from ftrace_64.S. This emitted code was likely working fine until the introduction of 59bec00ace28 ("x86/percpu: Introduce %rip-relative addressing to PER_CPU_VAR()"): it has made the call depth accounting addressing relative to $rip, instead of being based on an absolute address. As this code exact location depends on where the trampoline lives in memory, the corresponding displacement needs to be adjusted at runtime to actually correctly find the per-cpu __x86_call_depth value, otherwise the targeted address is wrong, leading to the page fault seen above. Fix the %rip-relative displacement of the copied CALL_DEPTH_ACCOUNT instruction (from ftrace_regs_caller) by calling text_poke_apply_relocation(), as it is done for example by the x86 BPF JIT compiler through x86_call_depth_emit_accounting(). This corrects both CALL_DEPTH_ACCOUNT slots, in ftrace_caller and ftrace_regs_caller. [ bp: Massage. ] Added Reference https://git.kernel.org/stable/c/8093442a2d1d4b42b9340a86023ccb2afb30b93a Added Reference https://git.kernel.org/stable/c/9edff632ca216169846f8a63a5a3dc467e239c7a Added Reference https://git.kernel.org/stable/c/a17dc12bfed8868e6a86f3b45c16065a70641acb Added Reference https://git.kernel.org/stable/c/d59cc66b702757e3c5a711e78a38583eac0c2738