{"id":"CVE-2026-64082","aliases":["CVE-2026-64082"],"related":[],"kind":"vulnerability","state":"published","title":"riscv: Fix register corruption from uninitialized cregs on error","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-07-19T15:39:54.074Z","modified":"2026-09-03T20:03:09.430Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"type":"git","introduced":"7383ee05314be58f8f9f018ee0ac53bef3808aea","fixed":"f2d88b0d7aebfa4643fc58bbae57210c6daff9c6","status":"affected"},{"type":"git","introduced":"7383ee05314be58f8f9f018ee0ac53bef3808aea","fixed":"66dedb6028c3df6c6a3372dd935b823917e150d5","status":"affected"},{"type":"git","introduced":"7383ee05314be58f8f9f018ee0ac53bef3808aea","fixed":"2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f","status":"affected"},{"type":"git","introduced":"7383ee05314be58f8f9f018ee0ac53bef3808aea","fixed":"0599aa23734c48de9bce36d043a9ec90c23945a1","status":"affected"},{"type":"git","introduced":"7383ee05314be58f8f9f018ee0ac53bef3808aea","fixed":"9e020156833f1ad0d425a1e3d85b65639f1c1c50","status":"affected"},{"type":"git","introduced":"7383ee05314be58f8f9f018ee0ac53bef3808aea","fixed":"6ebcbb53fc9bc30843054ed99fd60b8e542628f4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.19","status":"unaffected"},{"type":"semver","introduced":"6.1.187","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.156","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.108","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.49","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.11","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.19","fixed":"7.0.11"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/f2d88b0d7aebfa4643fc58bbae57210c6daff9c6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66dedb6028c3df6c6a3372dd935b823917e150d5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0599aa23734c48de9bce36d043a9ec90c23945a1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9e020156833f1ad0d425a1e3d85b65639f1c1c50","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6ebcbb53fc9bc30843054ed99fd60b8e542628f4","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64082","url":"https://www.cve.org/CVERecord?id=CVE-2026-64082","licence":"CVE Terms of Use","modified":"2026-09-02T12:49:41.782Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64082","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64082","licence":"Public domain","modified":"2026-09-03T20:03:09.430Z"}],"updatedAt":"2026-11-25T22:59:28.982Z","epss":{"score":0.00129,"percentile":0.0278,"date":"2026-12-01T12:00:22.000Z"}}