VDB

CVE-2026-64082

CVE-2026-64082 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
LinuxLinux9e020156833f1ad0d425a1e3d85b65639f1c1c50, 6ebcbb53fc9bc30843054ed99fd60b8e542628f4

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.13%
2.6th percentile

Affected products

VendorProductVersions
LinuxLinux7383ee05314be58f8f9f018ee0ac53bef3808aea, 7383ee05314be58f8f9f018ee0ac53bef3808aea, 7383ee05314be58f8f9f018ee0ac53bef3808aea
LinuxLinux5.19, 0, 6.1.187
LinuxLinux6.18.49, 7383ee05314be58f8f9f018ee0ac53bef3808aea, 5.19
chainguardlinux-qemu-6.18*
linuxlinux_kernel5.19, 5.19, 5.19
chainguardlinux-gcp-6.18*
chainguardlinux-azure-6.18*
chainguardlinux-aws-6.18*
chainguardlinux-qemu-melange0
chainguardlinux-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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›