Skip to contentSkip to conversation

CVE-2026-89907: LoongArch: KVM: Validate MSI data before routing it to EIOINTC

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

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: Validate MSI data before routing it to EIOINTC

pch_msi_set_irq() passes e->msi.data straight into eiointc_set_irq() as the irq number. The MSI data comes from userspace, that either via a KVM_IRQ_ROUTING_MSI entry set with KVM_SET_GSI_ROUTING (used by irqfd and KVM_IRQ_LINE) or directly via KVM_SIGNAL_MSI, and is never checked against EIOINTC_IRQS.

eiointc_set_irq() uses the value with __set_bit()/__clear_bit() on the 256-bit isr bitmap, eiointc_update_irq() then indexes sw_coremap[] and the per-cpu coreisr/sw_coreisr bitmaps with it. Therefore a data value

Quoted 1 line

= 256 reads and writes memory past the end of those arrays, i.e. any

process holding a VM fd can corrupt kernel memory beyond the allocation of loongarch_eiointc.

Reject MSI data that doesn't fit in the EIOINTC irq space. The DMSINTC path is unaffected as it decodes the vector from the address and masks it.

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

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

	Issue introduced in 6.13 with commit 1928254c5ccb7bdffd7f0334e1ce250e9ce4de94 and fixed in 7.2.5 with commit 83715a40a2d30d23719e0b25380ba82ff905195b
	Issue introduced in 6.13 with commit 1928254c5ccb7bdffd7f0334e1ce250e9ce4de94 and fixed in 7.3-rc2 with commit 501514d6ebd2111c353a1296f25dbe22fbd64657

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-89907

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/pch_pic.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/83715a40a2d30d23719e0b25380ba82ff905195b
	https://git.kernel.org/stable/c/501514d6ebd2111c353a1296f25dbe22fbd64657