# CVE-2026-64235: x86/ftrace: Relocate %rip-relative percpu refs in dynamic trampolines

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

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.57% (percentile 41, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-07-24T15:27:40.814Z
- **Modified:** 2026-11-08T16:10:00.183Z

## Who should check

- Anyone running Linux \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< 8093442a2d1d4b42b9340a86023ccb2afb30b93a; \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< d59cc66b702757e3c5a711e78a38583eac0c2738; \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< 9edff632ca216169846f8a63a5a3dc467e239c7a; \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< a17dc12bfed8868e6a86f3b45c16065a70641acb
- Anyone running Linux 6.9

## 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. \]

## Affected and fixed versions

- Linux: \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< 8093442a2d1d4b42b9340a86023ccb2afb30b93a; \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< d59cc66b702757e3c5a711e78a38583eac0c2738; \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< 9edff632ca216169846f8a63a5a3dc467e239c7a; \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< a17dc12bfed8868e6a86f3b45c16065a70641acb (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-64235.md
Affected: Linux >= 59bec00ace28d565ae0a68b23063ef3b961d82d5, < 8093442a2d1d4b42b9340a86023ccb2afb30b93a; >= 59bec00ace28d565ae0a68b23063ef3b961d82d5, < d59cc66b702757e3c5a711e78a38583eac0c2738; >= 59bec00ace28d565ae0a68b23063ef3b961d82d5, < 9edff632ca216169846f8a63a5a3dc467e239c7a; >= 59bec00ace28d565ae0a68b…
Fixed in: Linux 8093442a2d1d4b42b9340a86023ccb2afb30b93a, Linux 9edff632ca216169846f8a63a5a3dc467e239c7a

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-64235 being exploited?

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

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

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< 8093442a2d1d4b42b9340a86023ccb2afb30b93a; \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< d59cc66b702757e3c5a711e78a38583eac0c2738; \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< 9edff632ca216169846f8a63a5a3dc467e239c7a; \>= 59bec00ace28d565ae0a68b23063ef3b961d82d5, \< a17dc12bfed8868e6a86f3b45c16065a70641acb; Linux 6.9.

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

Yes. Fixed in Linux 8093442a2d1d4b42b9340a86023ccb2afb30b93a, Linux 9edff632ca216169846f8a63a5a3dc467e239c7a. No fix listed yet: follow the vendor advisory.

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

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/8093442a2d1d4b42b9340a86023ccb2afb30b93a>
- patch: <https://git.kernel.org/stable/c/d59cc66b702757e3c5a711e78a38583eac0c2738>
- patch: <https://git.kernel.org/stable/c/9edff632ca216169846f8a63a5a3dc467e239c7a>
- patch: <https://git.kernel.org/stable/c/a17dc12bfed8868e6a86f3b45c16065a70641acb>

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

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