{
  "id": "CVE-2026-64082",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-64082",
  "published_at": "2026-07-19T15:39:54.074Z",
  "title": "riscv: Fix register corruption from uninitialized cregs on error",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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 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.",
  "cwe": "CWE-908",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \u003c f2d88b0d7aebfa4643fc58bbae57210c6daff9c6",
          "\u003e= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \u003c 66dedb6028c3df6c6a3372dd935b823917e150d5",
          "\u003e= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \u003c 2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f",
          "\u003e= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \u003c 0599aa23734c48de9bce36d043a9ec90c23945a1",
          "\u003e= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \u003c 9e020156833f1ad0d425a1e3d85b65639f1c1c50",
          "\u003e= 7383ee05314be58f8f9f018ee0ac53bef3808aea, \u003c 6ebcbb53fc9bc30843054ed99fd60b8e542628f4"
        ],
        "fixed_in": [
          "f2d88b0d7aebfa4643fc58bbae57210c6daff9c6",
          "66dedb6028c3df6c6a3372dd935b823917e150d5",
          "2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f",
          "0599aa23734c48de9bce36d043a9ec90c23945a1",
          "9e020156833f1ad0d425a1e3d85b65639f1c1c50",
          "6ebcbb53fc9bc30843054ed99fd60b8e542628f4"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.19"
        ],
        "fixed_in": [
          "0",
          "6.1.187",
          "6.6.156",
          "6.12.108",
          "6.18.49",
          "7.0.11",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to f2d88b0d7aebfa4643fc58bbae57210c6daff9c6 or 66dedb6028c3df6c6a3372dd935b823917e150d5 or 2a7d1daf2674fe7d5b1cc99a4e3b5f0f72d5958f or 0599aa23734c48de9bce36d043a9ec90c23945a1 or 9e020156833f1ad0d425a1e3d85b65639f1c1c50 or 6ebcbb53fc9bc30843054ed99fd60b8e542628f4 or later.",
      "Upgrade Linux to 0 or 6.1.187 or 6.6.156 or 6.12.108 or 6.18.49 or 7.0.11 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
