{"id":"CVE-2026-64082","published":"2026-07-19T15:39:54Z","modified":"2026-09-02T12:49:41Z","title":"riscv: Fix register corruption from uninitialized cregs on error","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: Fix register corruption from uninitialized cregs on error\n\ncompat_riscv_gpr_set() calls cregs_to_regs() unconditionally, even when\nuser_regset_copyin() fails. Since cregs is an uninitialized stack\nvariable, a copyin failure causes uninitialized stack data to be written\ninto the target task's pt_regs, corrupting its register state and\npotentially leaking kernel stack contents.\n\ncompat_restore_sigcontext() has the same issue: it calls cregs_to_regs()\neven when __copy_from_user() fails, leading to the same corruption of\nthe signal-returning task's register state on error.\n\nOnly call cregs_to_regs() when the user copy succeeds.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00129,"percentile":0.02551,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f2d88b0d7aebfa4643fc58bbae57210c6daff9c6","tags":[]},{"url":"https://git.kernel.org/stable/c/66dedb6028c3df6c6a3372dd935b823917e150d5","tags":[]},{"url":"https://git.kernel.org/stable/c/2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f","tags":[]},{"url":"https://git.kernel.org/stable/c/0599aa23734c48de9bce36d043a9ec90c23945a1","tags":[]},{"url":"https://git.kernel.org/stable/c/9e020156833f1ad0d425a1e3d85b65639f1c1c50","tags":[]},{"url":"https://git.kernel.org/stable/c/6ebcbb53fc9bc30843054ed99fd60b8e542628f4","tags":[]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":0.51},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 7383ee05314be58f8f9f018ee0ac53bef3808aea, < f2d88b0d7aebfa4643fc58bbae57210c6daff9c6",">= 7383ee05314be58f8f9f018ee0ac53bef3808aea, < 66dedb6028c3df6c6a3372dd935b823917e150d5",">= 7383ee05314be58f8f9f018ee0ac53bef3808aea, < 2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f",">= 7383ee05314be58f8f9f018ee0ac53bef3808aea, < 0599aa23734c48de9bce36d043a9ec90c23945a1",">= 7383ee05314be58f8f9f018ee0ac53bef3808aea, < 9e020156833f1ad0d425a1e3d85b65639f1c1c50",">= 7383ee05314be58f8f9f018ee0ac53bef3808aea, < 6ebcbb53fc9bc30843054ed99fd60b8e542628f4"]},{"vendor":"Linux","product":"Linux","versions":["5.19"]}],"euvd":{"id":"EUVD-2026-45655","exploited":false,"provenance":"source"}}