# CVE-2023-52677: riscv: Check if the code to patch lies in the exit section

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 16% of CVEs (2026-11-30)
- Published: 2024-05-17T14:24:42.051Z
- Modified: 2026-06-17T06:43:19.383Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

riscv: Check if the code to patch lies in the exit section

Otherwise we fall through to vmalloc_to_page() which panics since the
address does not lie in the vmalloc region.

(As written by CVE List.)

## Affected

- Linux Linux: from 043cb41a85de1c0e944da61ad7a264960e22c865 before 938f70d14618ec72e10d6fcf8a546134136d7c13; from 043cb41a85de1c0e944da61ad7a264960e22c865 before 890cfe5337e0aaf03ece1429db04d23c88da72e7; from 043cb41a85de1c0e944da61ad7a264960e22c865 before 8db56df4a954b774bdc68917046a685a9fa2e4bc; from 043cb41a85de1c0e944da61ad7a264960e22c865 before 1d7a03052846f34d624d0ab41a879adf5e85c85f; from 043cb41a85de1c0e944da61ad7a264960e22c865 before 420370f3ae3d3b883813fd3051a38805160b2b9f; 5.7 (not affected: before 5.7; from 5.15.148 up to 5.15.*; from 6.1.75 up to 6.1.*; from 6.6.14 up to 6.6.*; from 6.7.2 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 5.7 before 5.15.148; from 5.16 before 6.1.75; from 6.2 before 6.6.14; from 6.7 before 6.7.2

## References

- <https://git.kernel.org/stable/c/938f70d14618ec72e10d6fcf8a546134136d7c13> (patch)
- <https://git.kernel.org/stable/c/890cfe5337e0aaf03ece1429db04d23c88da72e7> (patch)
- <https://git.kernel.org/stable/c/8db56df4a954b774bdc68917046a685a9fa2e4bc> (patch)
- <https://git.kernel.org/stable/c/1d7a03052846f34d624d0ab41a879adf5e85c85f> (patch)
- <https://git.kernel.org/stable/c/420370f3ae3d3b883813fd3051a38805160b2b9f> (patch)

## Sources

- CVE List: [CVE-2023-52677](https://www.cve.org/CVERecord?id=CVE-2023-52677), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52677](https://nvd.nist.gov/vuln/detail/CVE-2023-52677), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52677 · Whole record: https://cve.day/CVE-2023-52677.json · Rebuilt by cve.day 2026-11-25T22:58:33.968Z
