CVE-2022-49852

riscv: process: fix kernel info leakage

HIGH
7.1
CVSS Score
Published: May 1, 2025 at 02:10 PM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.15 ≤ v < 4.19.2674.15 ≤ v < 5.10.1554.15 ≤ v < 5.15.794.15 ≤ v < 5.4.2254.15 ≤ v < 6.0.94.15 ≤ v < 6.14.20 ≤ v < 5.4.2255.11 ≤ v < 5.15.795.16 ≤ v < 6.0.95.5 ≤ v < 5.10.1554.156.1 rc16.1 rc26.1 rc36.1 rc47db91e57a0acde126a162ababfb1e0ab190130cb
Vendor states this is fixed in 358a68f98304b40b201ba5afe94c20355aa3dc68 (fixed)
Vendor states this is fixed in 6510c78490c490a6636e48b61eeaa6fb65981f4b (fixed)
Vendor states this is fixed in c4601d30f7d989b4f354df899ab85b5f7a750d30 (fixed)
Vendor states this is fixed in c5c0b3167537793a7cf936fb240366eefd2fc7fb (fixed)
Vendor states this is fixed in cc36c7fa5d9384602529ba3eea8c5daee7be4dbc (fixed)
Vendor states this is fixed in e56d18a976dda653194218df6d40d8122c775712 (fixed)
Vendor states this is fixed in 4.15 (unaffected)
Vendor states this is fixed in 4.19.267 (unaffected)
Vendor states this is fixed in 5.10.155 (unaffected)
Vendor states this is fixed in 5.15.79 (unaffected)
Vendor states this is fixed in 5.4.225 (unaffected)
Vendor states this is fixed in 6.0.9 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/358a68f98304b40b201ba5afe94c20355aa3dc68
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6510c78490c490a6636e48b61eeaa6fb65981f4b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c4601d30f7d989b4f354df899ab85b5f7a750d30
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c5c0b3167537793a7cf936fb240366eefd2fc7fb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cc36c7fa5d9384602529ba3eea8c5daee7be4dbc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e56d18a976dda653194218df6d40d8122c775712

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card