CVE-2022-49852

riscv: process: fix kernel info leakage

No CVSS score yet EPSS 0.21%

Published 1 May 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-49852

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49852 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.1% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7db91e57a0acde126a162ababfb1e0ab190130cb, before c4601d30f7d989b4f354df899ab85b5f7a750d30
affected from 7db91e57a0acde126a162ababfb1e0ab190130cb, before c5c0b3167537793a7cf936fb240366eefd2fc7fb
affected from 7db91e57a0acde126a162ababfb1e0ab190130cb, before e56d18a976dda653194218df6d40d8122c775712
affected from 7db91e57a0acde126a162ababfb1e0ab190130cb, before cc36c7fa5d9384602529ba3eea8c5daee7be4dbc
affected from 7db91e57a0acde126a162ababfb1e0ab190130cb, before 358a68f98304b40b201ba5afe94c20355aa3dc68
affected from 7db91e57a0acde126a162ababfb1e0ab190130cb, before 6510c78490c490a6636e48b61eeaa6fb65981f4b
Other versions: unaffected
Linux
affected 4.15
unaffected before 4.15
unaffected from 4.19.267 up to and including 4.19.*
unaffected from 5.4.225 up to and including 5.4.*
unaffected from 5.10.155 up to and including 5.10.*
unaffected from 5.15.79 up to and including 5.15.*
unaffected from 6.0.9 up to and including 6.0.*
unaffected 6.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49852 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49852

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-49852
trivy image --scanners vuln IMAGE | grep CVE-2022-49852

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-49852 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.