CVE-2026-31558: LoongArch: KVM: Make kvm_get_vcpu_by_cpuid() more robust

Published Apr 24, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

LoongArch: KVM: Make kvmgetvcpubycpuid() more robust

kvmgetvcpubycpuid() takes a cpuid parameter whose type is int, so cpuid can be negative. Let kvmgetvcpubycpuid() return NULL for this case so as to make it more robust.

This fix an out-of-bounds access to kvmarch::phyidmap::physmap[].

Affected Software

12 affected components
Linux Linux kernel
Linux Linux kernel>=6.10.1<6.12.80
Linux Linux kernel>=6.13<6.18.21
Linux Linux kernel>=6.19<6.19.11
Linux Linux kernel=6.10
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5
Linux Linux kernel=7.0-rc6
Linux Linux kernel=7.0-rc7

Event History

Apr 24, 2026
CVE Published
via MITRE·02:35 PM
Data Sourced
via MITRE·02:35 PM
DescriptionSeverity
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-31558?

CVE-2026-31558 has been classified with a medium severity due to its potential impact on system stability.

2

How do I fix CVE-2026-31558?

To fix CVE-2026-31558, update to the latest version of the Linux kernel where the vulnerability has been addressed.

3

What is affected by CVE-2026-31558?

CVE-2026-31558 affects the Linux kernel implementations that use the KVM virtualization technology.

4

What does CVE-2026-31558 exploit?

CVE-2026-31558 exploits a robustness issue in the kvm_get_vcpu_by_cpuid() function in the Linux kernel.

5

Is there a workaround for CVE-2026-31558?

Currently, there are no specific workarounds for CVE-2026-31558; applying the patch is the recommended course of action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203