CVE-2023-52677Published May 17, 2024 · May 17Updated Oct 28
riscv: Check if the code to patch lies in the exit section
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's RISC-V code-patching path did not check whether code to be patched was in the exit section. In that case, it could call vmalloc_to_page() on an address outside the vmalloc region and panic. The input does not specify how an attacker could trigger this or whether authentication or user interaction is required.
Engineers running Linux kernels on RISC-V systems should check their deployments; affected versions are not specified.