CVE-2026-64082

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
19/07/2026
Last modified:
20/07/2026

Description

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