CVE-2023-53694

riscv: ftrace: Fixup panic by disabling preemption

published October 22, 2025

CVSS
—
EPSS
0%
Percentile
10.9
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00211 · 10.9th percentile
Published
2025-10-22T13:23Z
EPSS history
Timeline
  • 22 OCT 13:23Z
    riscv: ftrace: Fixup panic by disabling preemption
    cvelistv5