# CVE-2023-53694: riscv: ftrace: Fixup panic by disabling preemption

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-10-22T13:23:35.869Z
- **Modified:** 2026-10-28T19:10:00.193Z

## Who should check

- Anyone running Linux \>= afc76b8b80112189b6f11e67e19cf58301944814, \< 84cfcf240f4a577733b1d98fcd2611a611612b03; \>= afc76b8b80112189b6f11e67e19cf58301944814, \< 20a7510e781084364691b4962de31de758194cc9; \>= afc76b8b80112189b6f11e67e19cf58301944814, \< 8547649981e6631328cd64f583667501ae385531
- Anyone running Linux 5.12

## 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

- Linux: \>= afc76b8b80112189b6f11e67e19cf58301944814, \< 84cfcf240f4a577733b1d98fcd2611a611612b03; \>= afc76b8b80112189b6f11e67e19cf58301944814, \< 20a7510e781084364691b4962de31de758194cc9; \>= afc76b8b80112189b6f11e67e19cf58301944814, \< 8547649981e6631328cd64f583667501ae385531 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- Upgrade Linux to 8547649981e6631328cd64f583667501ae385531 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/84cfcf240f4a577733b1d98fcd2611a611612b03>
- other: <https://git.kernel.org/stable/c/20a7510e781084364691b4962de31de758194cc9>
- other: <https://git.kernel.org/stable/c/8547649981e6631328cd64f583667501ae385531>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53694>

HTML: <https://flawdb.com/CVE-2023-53694> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53694>
