Bug 2461467 (CVE-2026-31558) - CVE-2026-31558 kernel: LoongArch: KVM: Make kvm_get_vcpu_by_cpuid() more robust
Summary: CVE-2026-31558 kernel: LoongArch: KVM: Make kvm_get_vcpu_by_cpuid() more robust
Keywords:
Status: NEW
Alias: CVE-2026-31558
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-24 15:03 UTC by OSIDB Bzimport
Modified: 2026-04-24 17:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-04-24 15:03:08 UTC
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 make it more robust.

This fix an out-of-bounds access to kvm_arch::phyid_map::phys_map[].


Note You need to log in before you can comment on or make changes to this bug.