CVE-2023-53694
Full vulnerability record from the local CVENow database.
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
View original CVE JSON
{
"id": "CVE-2023-53694",
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"published": "2025-10-22T14:15:43.887",
"lastModified": "2026-10-28T19:10:00.193",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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"
},
{
"lang": "es",
"value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nriscv: ftrace: Corregir pánico deshabilitando la preemption\n\nEn 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.\n\np: área parcheada realizada por ftrace dinámico\nftrace_prologue:\np| REG_S ra, -SZREG(sp)\np| auipc ra, 0x? ------------> interrumpida\n\t\t\t\t\t...\n\t\t\t\tcambiar función ftrace\n\t\t\t\t\t...\np| jalr -?(ra) <- ------------ conmutada de nuevo\np| REG_L ra, -SZREG(sp)\nfunc:\n\txxx\n\tret"
}
],
"affected": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"affectedData": [
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "unaffected",
"programFiles": [
"arch/riscv/Kconfig"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "afc76b8b80112189b6f11e67e19cf58301944814",
"lessThan": "84cfcf240f4a577733b1d98fcd2611a611612b03",
"versionType": "git",
"status": "affected"
},
{
"version": "afc76b8b80112189b6f11e67e19cf58301944814",
"lessThan": "20a7510e781084364691b4962de31de758194cc9",
"versionType": "git",
"status": "affected"
},
{
"version": "afc76b8b80112189b6f11e67e19cf58301944814",
"lessThan": "8547649981e6631328cd64f583667501ae385531",
"versionType": "git",
"status": "affected"
}
]
},
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "affected",
"programFiles": [
"arch/riscv/Kconfig"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "5.12",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.12",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.1.23",
"lessThanOrEqual": "6.1.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.2.3",
"lessThanOrEqual": "6.2.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.3",
"lessThanOrEqual": "*",
"versionType": "original_commit_for_fix",
"status": "unaffected"
}
]
}
]
}
],
"metrics": {},
"references": [
{
"url": "https://git.kernel.org/stable/c/20a7510e781084364691b4962de31de758194cc9",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/84cfcf240f4a577733b1d98fcd2611a611612b03",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/8547649981e6631328cd64f583667501ae385531",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
]
}