# CVE-2026-64082: riscv: Fix register corruption from uninitialized cregs on error

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2026-07-19T15:39:54.074Z
- **Modified:** 2026-09-03T20:03:09.430Z

## Who should check

- Anyone running Linux \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< f2d88b0d7aebfa4643fc58bbae57210c6daff9c6; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 66dedb6028c3df6c6a3372dd935b823917e150d5; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 0599aa23734c48de9bce36d043a9ec90c23945a1; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 9e020156833f1ad0d425a1e3d85b65639f1c1c50; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 6ebcbb53fc9bc30843054ed99fd60b8e542628f4
- Anyone running Linux 5.19

## Description

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.

## Affected and fixed versions

- Linux: \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< f2d88b0d7aebfa4643fc58bbae57210c6daff9c6; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 66dedb6028c3df6c6a3372dd935b823917e150d5; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 0599aa23734c48de9bce36d043a9ec90c23945a1; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 9e020156833f1ad0d425a1e3d85b65639f1c1c50; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 6ebcbb53fc9bc30843054ed99fd60b8e542628f4 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 6ebcbb53fc9bc30843054ed99fd60b8e542628f4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64082. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64082.md
Affected: Linux >= 7383ee05314be58f8f9f018ee0ac53bef3808aea, < f2d88b0d7aebfa4643fc58bbae57210c6daff9c6; >= 7383ee05314be58f8f9f018ee0ac53bef3808aea, < 66dedb6028c3df6c6a3372dd935b823917e150d5; >= 7383ee05314be58f8f9f018ee0ac53bef3808aea, < 2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f; >= 7383ee05314be58f8f9f018…
Fixed in: Linux 66dedb6028c3df6c6a3372dd935b823917e150d5, Linux 2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f, Linux 0599aa23734c48de9bce36d043a9ec90c23945a1, Linux 9e020156833f1ad0d425a1e3d85b65639f1c1c50, Linux 6ebcbb53fc9bc30843054ed99fd60b8e542628f4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64082 being exploited?

There is no confirmed exploitation: CVE-2026-64082 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64082?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64082?

Linux \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< f2d88b0d7aebfa4643fc58bbae57210c6daff9c6; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 66dedb6028c3df6c6a3372dd935b823917e150d5; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 0599aa23734c48de9bce36d043a9ec90c23945a1; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 9e020156833f1ad0d425a1e3d85b65639f1c1c50; \>= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \< 6ebcbb53fc9bc30843054ed99fd60b8e542628f4; Linux 5.19.

### Is there a fix for CVE-2026-64082?

Yes. Fixed in Linux 66dedb6028c3df6c6a3372dd935b823917e150d5, Linux 2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f, Linux 0599aa23734c48de9bce36d043a9ec90c23945a1, Linux 9e020156833f1ad0d425a1e3d85b65639f1c1c50, Linux 6ebcbb53fc9bc30843054ed99fd60b8e542628f4. Upgrade Linux to 6ebcbb53fc9bc30843054ed99fd60b8e542628f4 or later.

### How do I check if I'm affected by CVE-2026-64082?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/f2d88b0d7aebfa4643fc58bbae57210c6daff9c6>
- patch: <https://git.kernel.org/stable/c/66dedb6028c3df6c6a3372dd935b823917e150d5>
- patch: <https://git.kernel.org/stable/c/2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f>
- patch: <https://git.kernel.org/stable/c/0599aa23734c48de9bce36d043a9ec90c23945a1>
- patch: <https://git.kernel.org/stable/c/9e020156833f1ad0d425a1e3d85b65639f1c1c50>
- patch: <https://git.kernel.org/stable/c/6ebcbb53fc9bc30843054ed99fd60b8e542628f4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64082>

HTML: <https://flawdb.com/CVE-2026-64082> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64082>
