riscv: Sanitize syscall table indexing under speculation
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: Sanitize syscall table indexing under speculation
The syscall number is a user-controlled value used to index into the syscall table. Use array_index_nospec() to clamp this value after the bounds check to prevent speculative out-of-bounds access and subsequent data leakage via cache side channels.
From the CVE record · Linux
The Linux kernel’s RISC-V syscall table indexing did not constrain a user-controlled syscall number during speculative execution. A local attacker able to invoke a syscall could potentially cause an out-of-bounds speculative access and leak data through cache side channels.
Engineers running the Linux kernel on RISC-V systems should check their kernel versions; affected versions were not specified.