riscv/purgatory: align riscv_kernel_entry
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
riscv/purgatory: align riscv_kernel_entry
When alignment handling is delegated to the kernel, everything must be word-aligned in purgatory, since the trap handler is then set to the kexec one. Without the alignment, hitting the exception would ultimately crash. On other occasions, the kernel's handler would take care of exceptions. This has been tested on a JH7110 SoC with oreboot and its SBI delegating unaligned access exceptions and the kernel configured to handle them.
From the CVE record · Linux
The RISC-V kernel entry in Linux purgatory may be unaligned. When unaligned-access handling is delegated to the kernel, an exception there can crash the system. The input does not describe an attacker path, authentication requirements, or user interaction.
Engineers running the Linux kernel on RISC-V systems should check their deployments; affected versions were not provided.