{"id":"CVE-2026-31558","aliases":["CVE-2026-31558"],"related":[],"kind":"vulnerability","state":"published","title":"LoongArch: KVM: Make kvm_get_vcpu_by_cpuid() more robust","summary":"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[].","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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[].","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nLoongArch: KVM: Hacer kvm_get_vcpu_by_cpuid() más robusta\n\nkvm_get_vcpu_by_cpuid() toma un parámetro cpuid cuyo tipo es int, por lo que cpuid puede ser negativo. Permitir que kvm_get_vcpu_by_cpuid() devuelva NULL para este caso para hacerla más robusta.\n\nEsto corrige un acceso fuera de límites a kvm_arch::phyid_map::phys_map[].","source":"nvd"}],"published":"2026-04-24T14:35:41.209Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"73516e9da512adc63ba3859fbd82a21f6257348f","fixed":"596c3f8069c4792f22fce8c4452f44410032d910","status":"affected"},{"type":"git","introduced":"73516e9da512adc63ba3859fbd82a21f6257348f","fixed":"878cf6acb4fd8ab4126cf9d369a5bb0e23123418","status":"affected"},{"type":"git","introduced":"73516e9da512adc63ba3859fbd82a21f6257348f","fixed":"47857b05bd50db01e211a1b6f513d57901cd3e6b","status":"affected"},{"type":"git","introduced":"73516e9da512adc63ba3859fbd82a21f6257348f","fixed":"2db06c15d8c7a0ccb6108524e16cd9163753f354","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.10.1","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"6.10"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/596c3f8069c4792f22fce8c4452f44410032d910","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/878cf6acb4fd8ab4126cf9d369a5bb0e23123418","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47857b05bd50db01e211a1b6f513d57901cd3e6b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2db06c15d8c7a0ccb6108524e16cd9163753f354","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31558","url":"https://www.cve.org/CVERecord?id=CVE-2026-31558","licence":"CVE Terms of Use","modified":"2026-08-05T12:23:30.748Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31558","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31558","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.483Z","epss":{"score":0.00134,"percentile":0.03088,"date":"2026-12-01T12:00:22.000Z"}}