CVE-2026-64082 Details
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.
A vulnerability in the Linux kernel's RISC-V compatibility layer can lead to register corruption. The issue arises in the 'compat_riscv_gpr_set()' and 'compat_restore_sigcontext()' functions, where an uninitialized stack variable is used. When 'user_regset_copyin()' fails, it allows uninitialized data to be written into the task's 'pt_regs', corrupting the register state and potentially leaking kernel stack information. This vulnerability affects several versions of the Linux kernel.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for downloading the latest kernel version can be found on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0599aa23734c48de9bce36d043a9ec90c23945a1 | kernel.org | Patch |
| https://git.kernel.org/stable/c/2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f | kernel.org | Patch |
| https://git.kernel.org/stable/c/66dedb6028c3df6c6a3372dd935b823917e150d5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6ebcbb53fc9bc30843054ed99fd60b8e542628f4 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9e020156833f1ad0d425a1e3d85b65639f1c1c50 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f2d88b0d7aebfa4643fc58bbae57210c6daff9c6 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-908 | Use of Uninitialized Resource | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.19, < 7.0.11 7.1 rc1 7.1 rc2 7.1 rc3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 3, 2026 | Initial Analysis | [email protected] |
| Sep 2, 2026 | CVE Modified | kernel.org |
| Jul 20, 2026 | CVE Modified | kernel.org |
| Jul 19, 2026 | New CVE Received | kernel.org |