PT-2026-61399 · Linux · Linux
CVE-2026-64082
·
Publicado
2026-07-19
·
Atualizado
2026-07-19
CVSS v3.1
7.8
Alta
| Vetor | AV: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.
Correção
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Identificadores relacionados
Produtos afetados
Linux