CVE-2026-64082
Received Received - Intake

Linux Kernel Register Corruption via Uninitialized Cregs

Vulnerability report for CVE-2026-64082, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-19

Last updated on: 2026-07-19

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-19
Last Modified
2026-07-19
Generated
2026-07-20
AI Q&A
2026-07-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves register corruption due to uninitialized cregs on error. The functions compat_riscv_gpr_set() and compat_restore_sigcontext() call cregs_to_regs() even when user_regset_copyin() or __copy_from_user() fails. Since cregs is an uninitialized stack variable, failure leads to uninitialized stack data corrupting the target task's pt_regs or signal-returning task's register state, potentially leaking kernel stack contents.

Detection Guidance

This vulnerability is specific to the Linux kernel's RISC-V implementation and requires kernel-level inspection. Detection involves checking kernel logs for errors related to register corruption or failed user copy operations in RISC-V compatibility layers. Use commands like dmesg | grep -i riscv or journalctl -k | grep -i riscv to search for relevant errors.

Impact Analysis

This vulnerability could allow an attacker to corrupt kernel registers, leading to system instability, crashes, or unauthorized access. It may also leak sensitive kernel memory contents, posing a security risk by exposing internal data.

Compliance Impact

This vulnerability does not directly affect compliance with GDPR, HIPAA, or similar standards as it pertains to kernel-level register corruption in the Linux riscv architecture. Compliance impacts would depend on system-specific implementations and data exposure risks, which are not detailed in the provided CVE information.

Mitigation Strategies

Apply the latest kernel update provided by your Linux distribution to patch this vulnerability. If immediate patching is not possible, consider disabling RISC-V compatibility features if unused. Monitor kernel logs for signs of exploitation or corruption.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-64082. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart