Skip to contentSkip to conversation

CVE-2026-31569: LoongArch: KVM: Handle the case that EIOINTC's coremap is empty

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

LoongArch: KVM: Handle the case that EIOINTC's coremap is empty

EIOINTC's coremap in eiointc_update_sw_coremap() can be empty, currently we get a cpuid with -1 in this case, but we actually need 0 because it's similar as the case that cpuid >= 4.

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

The Linux kernel CVE team has assigned CVE-2026-31569 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.13 with commit 3956a52bc05bd811082a3c9d2b423ee957e6fefc and fixed in 6.18.21 with commit 126053d0a685bf1f2e98db8966386f38b2336338
	Issue introduced in 6.13 with commit 3956a52bc05bd811082a3c9d2b423ee957e6fefc and fixed in 6.19.11 with commit 2a0cbcd28ecf6e0b88fa498bebb94bd1be61a7c3
	Issue introduced in 6.13 with commit 3956a52bc05bd811082a3c9d2b423ee957e6fefc and fixed in 7.0 with commit b97bd69eb0f67b5f961b304d28e9ba45e202d841

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-31569

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
arch/loongarch/kvm/intc/eiointc.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/126053d0a685bf1f2e98db8966386f38b2336338
	https://git.kernel.org/stable/c/2a0cbcd28ecf6e0b88fa498bebb94bd1be61a7c3
	https://git.kernel.org/stable/c/b97bd69eb0f67b5f961b304d28e9ba45e202d841