CVE-2026-31564: LoongArch: KVM: Fix base address calculation in kvm_eiointc_regs_access()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: KVM: Fix base address calculation in kvm_eiointc_regs_access()
In function kvm_eiointc_regs_access(), the register base address is caculated from array base address plus offset, the offset is absolute value from the base address. The data type of array base address is u64, it should be converted into the "void *" type and then plus the offset.
The Linux kernel CVE team has assigned CVE-2026-31564 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit d3e43a1f34acbb9a814337fc5624765538e5a274 and fixed in 6.19.11 with commit c4f0a9481cf0dd7c71a07484bc98f2570fdb3a82 Issue introduced in 6.19 with commit d3e43a1f34acbb9a814337fc5624765538e5a274 and fixed in 7.0 with commit 6bcfb7f46d667b04bd1a1169ccedf5fb699c60df
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-31564
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/c4f0a9481cf0dd7c71a07484bc98f2570fdb3a82 https://git.kernel.org/stable/c/6bcfb7f46d667b04bd1a1169ccedf5fb699c60df