{"id":"CVE-2023-53694","published":"2025-10-22T13:23:35Z","modified":"2026-05-11T19:50:02Z","title":"riscv: ftrace: Fixup panic by disabling preemption","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: ftrace: Fixup panic by disabling preemption\n\nIn RISCV, we must use an AUIPC + JALR pair to encode an immediate,\nforming a jump that jumps to an address over 4K. This may cause errors\nif we want to enable kernel preemption and remove dependency from\npatching code with stop_machine(). For example, if a task was switched\nout on auipc. And, if we changed the ftrace function before it was\nswitched back, then it would jump to an address that has updated 11:0\nbits mixing with previous XLEN:12 part.\n\np: patched area performed by dynamic ftrace\nftrace_prologue:\np|      REG_S   ra, -SZREG(sp)\np|      auipc   ra, 0x? ------------> preempted\n\t\t\t\t\t...\n\t\t\t\tchange ftrace function\n\t\t\t\t\t...\np|      jalr    -?(ra) <------------- switched back\np|      REG_L   ra, -SZREG(sp)\nfunc:\n\txxx\n\tret","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00211,"percentile":0.11319,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/84cfcf240f4a577733b1d98fcd2611a611612b03","tags":[]},{"url":"https://git.kernel.org/stable/c/20a7510e781084364691b4962de31de758194cc9","tags":[]},{"url":"https://git.kernel.org/stable/c/8547649981e6631328cd64f583667501ae385531","tags":[]}],"priority":{"score":2.3,"factors":[{"name":"EPSS percentile","points":2.26}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= afc76b8b80112189b6f11e67e19cf58301944814, < 84cfcf240f4a577733b1d98fcd2611a611612b03",">= afc76b8b80112189b6f11e67e19cf58301944814, < 20a7510e781084364691b4962de31de758194cc9",">= afc76b8b80112189b6f11e67e19cf58301944814, < 8547649981e6631328cd64f583667501ae385531"]},{"vendor":"Linux","product":"Linux","versions":["5.12"]}],"euvd":{"id":"EUVD-2023-60034","exploited":false,"provenance":"source"}}