{
  "id": "CVE-2026-31558",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31558",
  "published_at": "2026-04-24T14:35:41.209Z",
  "title": "LoongArch: KVM: Make kvm_get_vcpu_by_cpuid() more robust",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/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\nLoongArch: KVM: Make kvm_get_vcpu_by_cpuid() more robust\n\nkvm_get_vcpu_by_cpuid() takes a cpuid parameter whose type is int, so\ncpuid can be negative. Let kvm_get_vcpu_by_cpuid() return NULL for this\ncase so as to make it more robust.\n\nThis fix an out-of-bounds access to kvm_arch::phyid_map::phys_map[].",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.10:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 73516e9da512adc63ba3859fbd82a21f6257348f, \u003c 596c3f8069c4792f22fce8c4452f44410032d910",
          "\u003e= 73516e9da512adc63ba3859fbd82a21f6257348f, \u003c 878cf6acb4fd8ab4126cf9d369a5bb0e23123418",
          "\u003e= 73516e9da512adc63ba3859fbd82a21f6257348f, \u003c 47857b05bd50db01e211a1b6f513d57901cd3e6b",
          "\u003e= 73516e9da512adc63ba3859fbd82a21f6257348f, \u003c 2db06c15d8c7a0ccb6108524e16cd9163753f354"
        ],
        "fixed_in": [
          "596c3f8069c4792f22fce8c4452f44410032d910",
          "878cf6acb4fd8ab4126cf9d369a5bb0e23123418",
          "47857b05bd50db01e211a1b6f513d57901cd3e6b",
          "2db06c15d8c7a0ccb6108524e16cd9163753f354"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.10"
        ],
        "fixed_in": [
          "0",
          "6.12.80",
          "6.18.21",
          "6.19.11",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 596c3f8069c4792f22fce8c4452f44410032d910 or 878cf6acb4fd8ab4126cf9d369a5bb0e23123418 or 47857b05bd50db01e211a1b6f513d57901cd3e6b or 2db06c15d8c7a0ccb6108524e16cd9163753f354 or later.",
      "Upgrade Linux to 0 or 6.12.80 or 6.18.21 or 6.19.11 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
