# CVE-2022-49852: riscv: process: fix kernel info leakage

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-05-01T14:10:07.001Z
- Modified: 2026-06-17T05:19:18.527Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7db91e57a0acde126a162ababfb1e0ab190130cb before c4601d30f7d989b4f354df899ab85b5f7a750d30; from 7db91e57a0acde126a162ababfb1e0ab190130cb before c5c0b3167537793a7cf936fb240366eefd2fc7fb; from 7db91e57a0acde126a162ababfb1e0ab190130cb before e56d18a976dda653194218df6d40d8122c775712; from 7db91e57a0acde126a162ababfb1e0ab190130cb before cc36c7fa5d9384602529ba3eea8c5daee7be4dbc; from 7db91e57a0acde126a162ababfb1e0ab190130cb before 358a68f98304b40b201ba5afe94c20355aa3dc68; from 7db91e57a0acde126a162ababfb1e0ab190130cb before 6510c78490c490a6636e48b61eeaa6fb65981f4b; 4.15 (not affected: before 4.15; from 4.19.267 up to 4.19.*; from 5.4.225 up to 5.4.*; from 5.10.155 up to 5.10.*; from 5.15.79 up to 5.15.*; from 6.0.9 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 4.15 before 4.19.267; from 4.20 before 5.4.225; from 5.5 before 5.10.155; from 5.11 before 5.15.79; from 5.16 before 6.0.9; 6.1

## References

- <https://git.kernel.org/stable/c/c4601d30f7d989b4f354df899ab85b5f7a750d30> (patch)
- <https://git.kernel.org/stable/c/c5c0b3167537793a7cf936fb240366eefd2fc7fb> (patch)
- <https://git.kernel.org/stable/c/e56d18a976dda653194218df6d40d8122c775712> (patch)
- <https://git.kernel.org/stable/c/cc36c7fa5d9384602529ba3eea8c5daee7be4dbc> (patch)
- <https://git.kernel.org/stable/c/358a68f98304b40b201ba5afe94c20355aa3dc68> (patch)
- <https://git.kernel.org/stable/c/6510c78490c490a6636e48b61eeaa6fb65981f4b> (patch)

## Sources

- CVE List: [CVE-2022-49852](https://www.cve.org/CVERecord?id=CVE-2022-49852), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49852](https://nvd.nist.gov/vuln/detail/CVE-2022-49852), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49852 · Whole record: https://cve.day/CVE-2022-49852.json · Rebuilt by cve.day 2026-11-25T22:58:20.901Z
