CVE-2026-64082

riscv: Fix register corruption from uninitialized cregs on error

HIGH
7.8
CVSS Score
Published: July 19, 2026 at 03:39 PM UTC
Updated: September 3, 2026 at 08:14 PM 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.8
Exploit prediction
EPSS 0.1%

Description

In the Linux kernel, the following vulnerability has been resolved: riscv: Fix register corruption from uninitialized cregs on error compat_riscv_gpr_set() calls cregs_to_regs() unconditionally, even when user_regset_copyin() fails. Since cregs is an uninitialized stack variable, a copyin failure causes uninitialized stack data to be written into the target task's pt_regs, corrupting its register state and potentially leaking kernel stack contents. compat_restore_sigcontext() has the same issue: it calls cregs_to_regs() even when __copy_from_user() fails, leading to the same corruption of the signal-returning task's register state on error. Only call cregs_to_regs() when the user copy succeeds.

Affected

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

5.19 ≤ v < 6.1.1875.19 ≤ v < 6.12.1085.19 ≤ v < 6.18.495.19 ≤ v < 6.6.1565.19 ≤ v < 7.0.115.19 ≤ v < 7.17.1 rc17.1 rc27.1 rc37383ee05314be58f8f9f018ee0ac53bef3808aea
Vendor states this is fixed in 0599aa23734c48de9bce36d043a9ec90c23945a1 (fixed)
Vendor states this is fixed in 2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f (fixed)
Vendor states this is fixed in 66dedb6028c3df6c6a3372dd935b823917e150d5 (fixed)
Vendor states this is fixed in 6ebcbb53fc9bc30843054ed99fd60b8e542628f4 (fixed)
Vendor states this is fixed in 9e020156833f1ad0d425a1e3d85b65639f1c1c50 (fixed)
Vendor states this is fixed in f2d88b0d7aebfa4643fc58bbae57210c6daff9c6 (fixed)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 6.1.187 (unaffected)
Vendor states this is fixed in 6.12.108 (unaffected)
Vendor states this is fixed in 6.18.49 (unaffected)
Vendor states this is fixed in 6.6.156 (unaffected)
Vendor states this is fixed in 7.0.11 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusANALYZED
CWE
CWE-908

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