{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-64082","id":"CVE-2026-64082","title":"riscv: Fix register corruption from uninitialized cregs on error","description":"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 registe","descriptionLong":"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.","published":"2026-07-19T15:39:54.074Z","updated":"2026-10-28T02:30:26.883981268Z","reserved":"2026-07-19T07:54:57.031Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7383ee05314be58f8f9f018ee0ac53bef3808aea","lessThan":"f2d88b0d7aebfa4643fc58bbae57210c6daff9c6","status":"affected","versionType":"git"},{"version":"7383ee05314be58f8f9f018ee0ac53bef3808aea","lessThan":"66dedb6028c3df6c6a3372dd935b823917e150d5","status":"affected","versionType":"git"},{"version":"7383ee05314be58f8f9f018ee0ac53bef3808aea","lessThan":"2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f","status":"affected","versionType":"git"},{"version":"7383ee05314be58f8f9f018ee0ac53bef3808aea","lessThan":"0599aa23734c48de9bce36d043a9ec90c23945a1","status":"affected","versionType":"git"},{"version":"7383ee05314be58f8f9f018ee0ac53bef3808aea","lessThan":"9e020156833f1ad0d425a1e3d85b65639f1c1c50","status":"affected","versionType":"git"},{"version":"7383ee05314be58f8f9f018ee0ac53bef3808aea","lessThan":"6ebcbb53fc9bc30843054ed99fd60b8e542628f4","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","lessThan":"5.19","status":"unaffected","versionType":"semver"},{"version":"6.1.187","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.156","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.108","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.49","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.0.11","lessThanOrEqual":"7.0.*","status":"unaffected","versionType":"semver"},{"version":"7.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-908"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/f2d88b0d7aebfa4643fc58bbae57210c6daff9c6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/66dedb6028c3df6c6a3372dd935b823917e150d5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0599aa23734c48de9bce36d043a9ec90c23945a1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9e020156833f1ad0d425a1e3d85b65639f1c1c50","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6ebcbb53fc9bc30843054ed99fd60b8e542628f4","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64082.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64082","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00129,"epssPercentile":0.02647,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-64082","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64082","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-64082","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-64082","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}