# CVE-2023-53135: riscv: Use READ\_ONCE\_NOCHECK in imprecise unwinding stack mode

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-05-02T15:56:08.287Z
- **Modified:** 2026-06-17T06:44:21.740Z

## Who should check

- Anyone running Linux \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< a99a61d9e1bfca2fc37d223a6a185c0eb66aba02; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 3de277af481ab931fab9e295ad8762692920732a; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 3a9418d2c93c1c86ce4d0595112d91c7a8e70c2c; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 324912d6c0c4006711054d389faa2239c1655e1e; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 17fa90ffba20743c946920fbb0afe160d0ead8c9; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 76950340cf03b149412fe0d5f0810e52ac1df8cb
- Anyone running Linux 4.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

riscv: Use READ\_ONCE\_NOCHECK in imprecise unwinding stack mode

When CONFIG\_FRAME\_POINTER is unset, the stack unwinding function
walk\_stackframe randomly reads the stack and then, when KASAN is enabled,
it can lead to the following backtrace:

\[    0.000000\] ==================================================================
\[    0.000000\] BUG: KASAN: stack-out-of-bounds in walk\_stackframe+0xa6/0x11a
\[    0.000000\] Read of size 8 at addr ffffffff81807c40 by task swapper/0
\[    0.000000\]
\[    0.000000\] CPU: 0 PID: 0 Comm: swapper Not tainted 6.2.0-12919-g24203e6db61f \#43
\[    0.000000\] Hardware name: riscv-virtio,qemu (DT)
\[    0.000000\] Call Trace:
\[    0.000000\] \[\<ffffffff80007ba8\>\] walk\_stackframe+0x0/0x11a
\[    0.000000\] \[\<ffffffff80099ecc\>\] init\_param\_lock+0x26/0x2a
\[    0.000000\] \[\<ffffffff80007c4a\>\] walk\_stackframe+0xa2/0x11a
\[    0.000000\] \[\<ffffffff80c49c80\>\] dump\_stack\_lvl+0x22/0x36
\[    0.000000\] \[\<ffffffff80c3783e\>\] print\_report+0x198/0x4a8
\[    0.000000\] \[\<ffffffff80099ecc\>\] init\_param\_lock+0x26/0x2a
\[    0.000000\] \[\<ffffffff80007c4a\>\] walk\_stackframe+0xa2/0x11a
\[    0.000000\] \[\<ffffffff8015f68a\>\] kasan\_report+0x9a/0xc8
\[    0.000000\] \[\<ffffffff80007c4a\>\] walk\_stackframe+0xa2/0x11a
\[    0.000000\] \[\<ffffffff80007c4a\>\] walk\_stackframe+0xa2/0x11a
\[    0.000000\] \[\<ffffffff8006e99c\>\] desc\_make\_final+0x80/0x84
\[    0.000000\] \[\<ffffffff8009a04e\>\] stack\_trace\_save+0x88/0xa6
\[    0.000000\] \[\<ffffffff80099fc2\>\] filter\_irq\_stacks+0x72/0x76
\[    0.000000\] \[\<ffffffff8006b95e\>\] devkmsg\_read+0x32a/0x32e
\[    0.000000\] \[\<ffffffff8015ec16\>\] kasan\_save\_stack+0x28/0x52
\[    0.000000\] \[\<ffffffff8006e998\>\] desc\_make\_final+0x7c/0x84
\[    0.000000\] \[\<ffffffff8009a04a\>\] stack\_trace\_save+0x84/0xa6
\[    0.000000\] \[\<ffffffff8015ec52\>\] kasan\_set\_track+0x12/0x20
\[    0.000000\] \[\<ffffffff8015f22e\>\] \_\_kasan\_slab\_alloc+0x58/0x5e
\[    0.000000\] \[\<ffffffff8015e7ea\>\] \_\_kmem\_cache\_create+0x21e/0x39a
\[    0.000000\] \[\<ffffffff80e133ac\>\] create\_boot\_cache+0x70/0x9c
\[    0.000000\] \[\<ffffffff80e17ab2\>\] kmem\_cache\_init+0x6c/0x11e
\[    0.000000\] \[\<ffffffff80e00fd6\>\] mm\_init+0xd8/0xfe
\[    0.000000\] \[\<ffffffff80e011d8\>\] start\_kernel+0x190/0x3ca
\[    0.000000\]
\[    0.000000\] The buggy address belongs to stack of task swapper/0
\[    0.000000\]  and is located at offset 0 in frame:
\[    0.000000\]  stack\_trace\_save+0x0/0xa6
\[    0.000000\]
\[    0.000000\] This frame has 1 object:
\[    0.000000\]  \[32, 56) 'c'
\[    0.000000\]
\[    0.000000\] The buggy address belongs to the physical page:
\[    0.000000\] page:(\_\_\_\_ptrval\_\_\_\_) refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x81a07
\[    0.000000\] flags: 0x1000(reserved\|zone=0)
\[    0.000000\] raw: 0000000000001000 ff600003f1e3d150 ff600003f1e3d150 0000000000000000
\[    0.000000\] raw: 0000000000000000 0000000000000000 00000001ffffffff
\[    0.000000\] page dumped because: kasan: bad access detected
\[    0.000000\]
\[    0.000000\] Memory state around the buggy address:
\[    0.000000\]  ffffffff81807b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
\[    0.000000\]  ffffffff81807b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
\[    0.000000\] \>ffffffff81807c00: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 f3
\[    0.000000\]                                            ^
\[    0.000000\]  ffffffff81807c80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
\[    0.000000\]  ffffffff81807d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
\[    0.000000\] ==================================================================

Fix that by using READ\_ONCE\_NOCHECK when reading the stack in imprecise
mode.

## Affected and fixed versions

- Linux: \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< a99a61d9e1bfca2fc37d223a6a185c0eb66aba02; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 3de277af481ab931fab9e295ad8762692920732a; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 3a9418d2c93c1c86ce4d0595112d91c7a8e70c2c; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 324912d6c0c4006711054d389faa2239c1655e1e; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 17fa90ffba20743c946920fbb0afe160d0ead8c9; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 76950340cf03b149412fe0d5f0810e52ac1df8cb (cvelist)
- Linux: 4.15 (cvelist)

## Mitigation

- Upgrade Linux to 76950340cf03b149412fe0d5f0810e52ac1df8cb 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-53135. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53135.md
Affected: Linux >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < a99a61d9e1bfca2fc37d223a6a185c0eb66aba02; >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < 3de277af481ab931fab9e295ad8762692920732a; >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < 3a9418d2c93c1c86ce4d0595112d91c7a8e70c2c; >= 5d8544e2d0075a5f3c9a2cf…
Fixed in: Linux 3de277af481ab931fab9e295ad8762692920732a, Linux 3a9418d2c93c1c86ce4d0595112d91c7a8e70c2c, Linux 324912d6c0c4006711054d389faa2239c1655e1e, Linux 17fa90ffba20743c946920fbb0afe160d0ead8c9, Linux 76950340cf03b149412fe0d5f0810e52ac1df8cb

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-53135 being exploited?

There is no confirmed exploitation: CVE-2023-53135 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53135?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53135?

Linux \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< a99a61d9e1bfca2fc37d223a6a185c0eb66aba02; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 3de277af481ab931fab9e295ad8762692920732a; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 3a9418d2c93c1c86ce4d0595112d91c7a8e70c2c; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 324912d6c0c4006711054d389faa2239c1655e1e; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 17fa90ffba20743c946920fbb0afe160d0ead8c9; \>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \< 76950340cf03b149412fe0d5f0810e52ac1df8cb; Linux 4.15.

### Is there a fix for CVE-2023-53135?

Yes. Fixed in Linux 3de277af481ab931fab9e295ad8762692920732a, Linux 3a9418d2c93c1c86ce4d0595112d91c7a8e70c2c, Linux 324912d6c0c4006711054d389faa2239c1655e1e, Linux 17fa90ffba20743c946920fbb0afe160d0ead8c9, Linux 76950340cf03b149412fe0d5f0810e52ac1df8cb. Upgrade Linux to 76950340cf03b149412fe0d5f0810e52ac1df8cb or later.

### How do I check if I'm affected by CVE-2023-53135?

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

- patch: <https://git.kernel.org/stable/c/a99a61d9e1bfca2fc37d223a6a185c0eb66aba02>
- patch: <https://git.kernel.org/stable/c/3de277af481ab931fab9e295ad8762692920732a>
- patch: <https://git.kernel.org/stable/c/3a9418d2c93c1c86ce4d0595112d91c7a8e70c2c>
- patch: <https://git.kernel.org/stable/c/324912d6c0c4006711054d389faa2239c1655e1e>
- patch: <https://git.kernel.org/stable/c/17fa90ffba20743c946920fbb0afe160d0ead8c9>
- patch: <https://git.kernel.org/stable/c/76950340cf03b149412fe0d5f0810e52ac1df8cb>

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

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