PT-2026-61399 · Linux · Linux

CVE-2026-64082

·

Published

2026-07-19

·

Updated

2026-07-19

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Related Identifiers

CVE-2026-64082

Affected Products

Linux