CVE-2026-64082
riscv: Fix register corruption from uninitialized cregs on error
Reported by linux · Published July 19, 2026
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.
EPSS 0.13% · 2.6th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | 9e020156833f1ad0d425a1e3d85b65639f1c1c50, 6ebcbb53fc9bc30843054ed99fd60b8e542628f4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 7383ee05314be58f8f9f018ee0ac53bef3808aea, 7383ee05314be58f8f9f018ee0ac53bef3808aea, 7383ee05314be58f8f9f018ee0ac53bef3808aea |
| Linux | Linux | 5.19, 0, 6.1.187 |
| Linux | Linux | 6.18.49, 7383ee05314be58f8f9f018ee0ac53bef3808aea, 5.19 |
| chainguard | linux-qemu-6.18 | * |
| linux | linux_kernel | 5.19, 5.19, 5.19 |
| chainguard | linux-gcp-6.18 | * |
| chainguard | linux-azure-6.18 | * |
| chainguard | linux-aws-6.18 | * |
| chainguard | linux-qemu-melange | 0 |
| chainguard | linux-vmware-6.18 | * |
Timeline
- Jul 19, 2026 CVE Published
- Jul 20, 2026 Coalition ESS Score
- Jul 20, 2026 Security Advisory (31 in total, the first dated here)
- Aug 7, 2026 EPSS Score (10 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (30 in total, the first dated here)
- Sep 2, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64082
vulnetix vdb fixes CVE-2026-64082
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64082/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart