riscv: mm: Unconditionally sfence.vma for spurious fault
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: mm: Unconditionally sfence.vma for spurious fault
Svvptc does not guarantee that it's safe to just return here. Since we have already cleared our bit, if, theoretically, the bounded timeframe for the accessed page to become valid still hasn't happened after sret, we could fault again and actually crash.
Hopefully, these spurious faults should be rare enough that this is an acceptable slowdown.
From the CVE record · Linux
The Linux kernel’s RISC-V memory-management code can return from a spurious page fault without an sfence.vma operation. If the accessed page is still not valid after the return, another fault could crash the kernel. The input does not describe an attack path, authentication requirements, or user interaction.
Engineers running Linux kernels on RISC-V systems should check their versions; affected versions are not specified.