CVE-2023-53694
riscv: ftrace: Fixup panic by disabling preemption
Description
In the Linux kernel, the following vulnerability has been resolved: riscv: ftrace: Fixup panic by disabling preemption In RISCV, we must use an AUIPC + JALR pair to encode an immediate, forming a jump that jumps to an address over 4K. This may cause errors if we want to enable kernel preemption and remove dependency from patching code with stop_machine(). For example, if a task was switched out on auipc. And, if we changed the ftrace function before it was switched back, then it would jump to an address that has updated 11:0 bits mixing with previous XLEN:12 part. p: patched area performed by dynamic ftrace ftrace_prologue: p| REG_S ra, -SZREG(sp) p| auipc ra, 0x? ------------> preempted ... change ftrace function ... p| jalr -?(ra) <------------- switched back p| REG_L ra, -SZREG(sp) func: xxx ret
INFO
Published Date :
Oct. 22, 2025, 2:15 p.m.
Last Modified :
Oct. 28, 2026, 7:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Update the Linux kernel to the latest version.
- Ensure ftrace preemption logic is correctly handled.
- Test the system for stability after updates.
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-2023-53694.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-53694 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-2023-53694
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-2023-53694 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-53694 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]
Oct. 28, 2026
Action Type Old Value New Value Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: riscv: ftrace: Corregir pánico deshabilitando la preemption En RISCV, debemos usar un par AUIPC + JALR para codificar un inmediato, formando un salto que salta a una dirección de más de 4K. Esto puede causar errores si queremos habilitar la preemption del kernel y eliminar la dependencia de parchear código con stop_machine(). Por ejemplo, si una tarea fue conmutada en auipc. Y, si cambiamos la función ftrace antes de que fuera conmutada de nuevo, entonces saltaría a una dirección que tiene bits 11:0 actualizados mezclándose con la parte XLEN:12 anterior. p: área parcheada realizada por ftrace dinámico ftrace_prologue: p| REG_S ra, -SZREG(sp) p| auipc ra, 0x? ------------> interrumpida ... cambiar función ftrace ... p| jalr -?(ra) <- ------------ conmutada de nuevo p| REG_L ra, -SZREG(sp) func: xxx ret -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 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': 'afc76b8b80112189b6f11e67e19cf58301944814', 'lessThan': '84cfcf240f4a577733b1d98fcd2611a611612b03', 'versionType': 'git'}, {'status': 'affected', 'version': 'afc76b8b80112189b6f11e67e19cf58301944814', 'lessThan': '20a7510e781084364691b4962de31de758194cc9', 'versionType': 'git'}, {'status': 'affected', 'version': 'afc76b8b80112189b6f11e67e19cf58301944814', 'lessThan': '8547649981e6631328cd64f583667501ae385531', 'versionType': 'git'}], 'programFiles': ['arch/riscv/Kconfig'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.12'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.12', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.23', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.2.3', 'versionType': 'semver', 'lessThanOrEqual': '6.2.*'}, {'status': 'unaffected', 'version': '6.3', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['arch/riscv/Kconfig'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 22, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: riscv: ftrace: Fixup panic by disabling preemption In RISCV, we must use an AUIPC + JALR pair to encode an immediate, forming a jump that jumps to an address over 4K. This may cause errors if we want to enable kernel preemption and remove dependency from patching code with stop_machine(). For example, if a task was switched out on auipc. And, if we changed the ftrace function before it was switched back, then it would jump to an address that has updated 11:0 bits mixing with previous XLEN:12 part. p: patched area performed by dynamic ftrace ftrace_prologue: p| REG_S ra, -SZREG(sp) p| auipc ra, 0x? ------------> preempted ... change ftrace function ... p| jalr -?(ra) <------------- switched back p| REG_L ra, -SZREG(sp) func: xxx ret Added Reference https://git.kernel.org/stable/c/20a7510e781084364691b4962de31de758194cc9 Added Reference https://git.kernel.org/stable/c/84cfcf240f4a577733b1d98fcd2611a611612b03 Added Reference https://git.kernel.org/stable/c/8547649981e6631328cd64f583667501ae385531