CVE-2023-53694 Details
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
A vulnerability in the Linux kernel's handling of function tracing (ftrace) on RISCV architecture can lead to a kernel panic. This issue arises because an AUIPC + JALR pair is needed to encode an immediate jump to an address over 4K. The vulnerability occurs when kernel preemption is enabled, creating a dependency on patching code with stop_machine(). If a task is switched out during the AUIPC instruction and the ftrace function is changed before the task is switched back, it can result in an incorrect jump to an address with mixed bit values, causing a panic. The vulnerability affects several versions of the Linux kernel.
Users can apply the available patch in the Linux kernel stable tree to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/20a7510e781084364691b4962de31de758194cc9 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/84cfcf240f4a577733b1d98fcd2611a611612b03 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/8547649981e6631328cd64f583667501ae385531 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 28, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 22, 2025 | New CVE Received | kernel.org |
Volerion