{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0f4b82579716b12bb88257bd7ea80f25c791fb2c"
            },
            {
              "fixed": "bd62c0f61bc722a097417401030c596cea8e21aa"
            },
            {
              "fixed": "1d57ab45ec5c0e22789de793bcf2a31ad6fb7d98"
            },
            {
              "fixed": "b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.5.0"
            },
            {
              "fixed": "6.18.30"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.0.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46171.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: kvm: fix vector context allocation leak\n\nWhen the second kzalloc (host_context.vector.datap) fails in\nkvm_riscv_vcpu_alloc_vector_context, the first allocation\n(guest_context.vector.datap) is leaked. Free it before returning.",
  "id": "CVE-2026-46171",
  "modified": "2026-07-08T05:39:01.102110185Z",
  "published": "2026-05-28T09:36:25.966Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1d57ab45ec5c0e22789de793bcf2a31ad6fb7d98"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bd62c0f61bc722a097417401030c596cea8e21aa"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46171.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-46171"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "riscv: kvm: fix vector context allocation leak"
}