riscv: process: fix kernel info leakage
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7db91e57a0acde126a162ababfb1e0ab190130cb · < 6510c78490c490a6636e48b61eeaa6fb65981f4b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
riscv: process: fix kernel info leakage
thread_struct's s[12] may contain random kernel memory content, which may be finally leaked to userspace. This is a security hole. Fix it by clearing the s[12] array in thread_struct when fork.
As for kthread case, it's better to clear the s[12] array as well.
From the CVE record · Linux
On RISC-V, the Linux kernel’s thread_struct s[12] array may contain kernel memory content that can leak to userspace. The leak can occur when the array is not cleared during fork; the input does not specify authentication or other interaction requirements.
Engineers running Linux kernels on RISC-V should check their deployments; affected versions are not specified.