CVE-2023-53694
riscv: ftrace: Fixup panic by disabling preemption
Mitigation
- Upgrade Linux to 8547649981e6631328cd64f583667501ae385531 or later.
Who should check
- Anyone running Linux >= afc76b8b80112189b6f11e67e19cf58301944814, < 84cfcf240f4a577733b1d98fcd2611a611612b03; >= afc76b8b80112189b6f11e67e19cf58301944814, < 20a7510e781084364691b4962de31de758194cc9; >= afc76b8b80112189b6f11e67e19cf58301944814, < 8547649981e6631328cd64f583667501ae385531
- Anyone running Linux 5.12
Vulnerability facts
- Affected
- Linux >= afc76b8b80112189b6f11e67e19cf58301944814, < 84cfcf240f4a577733b1d98fcd2611a611612b03; >= afc76b8b80112189b6f11e67e19cf58301944814, < 20a7510e781084364691b4962de31de758194cc9; >= afc76b8b80112189b6f11e67e19cf58301944814, < 8547649981e6631328cd64f583667501ae385531; Linux 5.12
- Fixed in
- Linux 84cfcf240f4a577733b1d98fcd2611a611612b03, Linux 20a7510e781084364691b4962de31de758194cc9, Linux 8547649981e6631328cd64f583667501ae385531
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.27% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- Modified
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
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= afc76b8b80112189b6f11e67e19cf58301944814, < 84cfcf240f4a577733b1d98fcd2611a611612b03; >= afc76b8b80112189b6f11e67e19cf58301944814, < 20a7510e781084364691b4962de31de758194cc9; >= afc76b8b80112189b6f11e67e19cf58301944814, < 8547649981e6631328cd64f583667501ae385531 | — | cvelist |
| Linux | 5.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-53694. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-53694.md Affected: Linux >= afc76b8b80112189b6f11e67e19cf58301944814, < 84cfcf240f4a577733b1d98fcd2611a611612b03; >= afc76b8b80112189b6f11e67e19cf58301944814, < 20a7510e781084364691b4962de31de758194cc9; >= afc76b8b80112189b6f11e67e19cf58301944814, < 8547649981e6631328cd64f583667501ae385531; Linux 5.12 Fixed in: Linux 84cfcf240f4a577733b1d98fcd2611a611612b03, Linux 20a7510e781084364691b4962de31de758194cc9, Linux 8547649981e6631328cd64f583667501ae385531 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2023-53694 being exploited?
There is no confirmed exploitation: CVE-2023-53694 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-53694?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2023-53694?
Linux >= afc76b8b80112189b6f11e67e19cf58301944814, < 84cfcf240f4a577733b1d98fcd2611a611612b03; >= afc76b8b80112189b6f11e67e19cf58301944814, < 20a7510e781084364691b4962de31de758194cc9; >= afc76b8b80112189b6f11e67e19cf58301944814, < 8547649981e6631328cd64f583667501ae385531; Linux 5.12.
Is there a fix for CVE-2023-53694?
Yes. Fixed in Linux 84cfcf240f4a577733b1d98fcd2611a611612b03, Linux 20a7510e781084364691b4962de31de758194cc9, Linux 8547649981e6631328cd64f583667501ae385531. Upgrade Linux to 8547649981e6631328cd64f583667501ae385531 or later.
How do I check if I'm affected by CVE-2023-53694?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.