{"id":"CVE-2026-31558","summary":"LoongArch: KVM: Make kvm_get_vcpu_by_cpuid() more robust","details":"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[].","modified":"2026-07-15T01:48:54.079283706Z","published":"2026-04-24T14:35:41.209Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31558.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2db06c15d8c7a0ccb6108524e16cd9163753f354"},{"type":"WEB","url":"https://git.kernel.org/stable/c/47857b05bd50db01e211a1b6f513d57901cd3e6b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/596c3f8069c4792f22fce8c4452f44410032d910"},{"type":"WEB","url":"https://git.kernel.org/stable/c/878cf6acb4fd8ab4126cf9d369a5bb0e23123418"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31558.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31558"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"73516e9da512adc63ba3859fbd82a21f6257348f"},{"fixed":"596c3f8069c4792f22fce8c4452f44410032d910"},{"fixed":"878cf6acb4fd8ab4126cf9d369a5bb0e23123418"},{"fixed":"47857b05bd50db01e211a1b6f513d57901cd3e6b"},{"fixed":"2db06c15d8c7a0ccb6108524e16cd9163753f354"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31558.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.10.0"},{"fixed":"6.12.80"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.21"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.11"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31558.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}