Raw vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS scores by FIRST (EPSS SIG), generated by Empirical Security. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2026-31558 is a high-severity Out-of-bounds Read (CWE-125) vulnerability in Linux Kernel. Its CVSS base score is 8.8 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked at the 2th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
CVE-2026-31558 is a vulnerability in the Linux kernel's LoongArch KVM implementation. The issue affects the kvm_get_vcpu_by_cpuid() function, which takes an int cpuid parameter that can be negative, resulting in an out-of-bounds access to kvm_arch::phyid_map::phys_map[]. This corresponds to CWE-125 (Out-of-bounds Read) and has a CVSS v3.1 base score of 8.8 (AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).
A local attacker with low privileges (PR:L) can exploit this vulnerability with low complexity and no user interaction required. Successful exploitation allows high-impact consequences across confidentiality, integrity, and availability (C:H/I:H/A:H), with a changed scope (S:C) that enables the attacker to affect resources beyond the vulnerable component, such as escalating privileges or causing kernel crashes within a LoongArch KVM environment.
Mitigation involves applying patches from Linux kernel stable releases, as detailed in the following commit references: https://git.kernel.org/stable/c/2db06c15d8c7a0ccb6108524e16cd9163753f354, https://git.kernel.org/stable/c/47857b05bd50db01e211a1b6f513d57901cd3e6b, https://git.kernel.org/stable/c/596c3f8069c4792f22fce8c4452f44410032d910, and https://git.kernel.org/stable/c/878cf6acb4fd8ab4126cf9d369a5bb0e23123418. These commits modify kvm_get_vcpu_by_cpuid() to return NULL for negative cpuid values, preventing the out-of-bounds access. Security practitioners should update affected LoongArch KVM systems promptly.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-25451
Vulnerability Data
In the Linux kernel, the following vulnerability has been resolved: LoongArch: KVM: Make kvm_get_vcpu_by_cpuid() more robust kvm_get_vcpu_by_cpuid() takes a cpuid parameter whose type is int, so cpuid can be negative. Let kvm_get_vcpu_by_cpuid() return NULL for this case so as to…
more
make it more robust. This fix an out-of-bounds access to kvm_arch::phyid_map::phys_map[].
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Developer testing and evaluation directly finds out-of-bounds read flaws through static analysis, fuzzing, and dynamic bounds checks.
Secure engineering principles require bounds checking and memory-safe constructs that stop out-of-bounds reads from being introduced.
Process isolation confines the effects of an out-of-bounds read to the compromised process.
Input validation rejects malformed indices or lengths that would otherwise cause reads outside buffer bounds.
Mitigating Controls (NIST CSF 2.0) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.
Secure-development practices such as bounds checking and memory-safe languages directly prevent out-of-bounds reads.
Vulnerability scanning and recording can discover instances of out-of-bounds reads after code is deployed.
Routine patching replaces vulnerable code containing out-of-bounds read flaws.
Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.
Security testing in development and acceptance includes fuzzing and static analysis that detect out-of-bounds read defects before release.
Secure coding standards explicitly forbid unsafe pointer arithmetic and mandate bounds-checked reads, eliminating CWE-125.