CVE-2026-89904: LoongArch: Fix acpi_package_ids[] array overflow
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: Fix acpi_package_ids[] array overflow
With LoongArch virt machine, a typical setting is one core per socket, there will max 256 sockets (packages) on one VM. With PPTT acpi table, array acpi_package_ids[] will be overflowed.
Here change the array size of acpi_package_ids[] with the max value of MAX_PACKAGES and KVM_MAX_VCPUS.
The Linux kernel CVE team has assigned CVE-2026-89904 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12.101 with commit f18992be262d6515c94bf4bf6ce7598135076771 and fixed in 6.12.110 with commit 0195e04b1eec8fb00e2db9c5e55655a3f5e76f60 Issue introduced in 6.18.42 with commit 4427a33faabb4b81511b99dfee18ce0a38b5b5df and fixed in 6.18.51 with commit d3fd094c13c6d0b74f246461ca4cf427d539c8e8 Issue introduced in 7.2 with commit 4e8f58620f6717f72f3d88a2c8f25c0c656d0ba7 and fixed in 7.2.5 with commit 6311b8c471afa33c18adbe4eb16f862936b71ca3 Issue introduced in 7.2 with commit 4e8f58620f6717f72f3d88a2c8f25c0c656d0ba7 and fixed in 7.3-rc1 with commit 2a2367d46d7a4ee4122b7a86e57125542dbbe963 Issue introduced in 7.1.6 with commit 496bc868d9066e034787aa14b8ad6c23e77b51ef
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-89904
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/kernel/acpi.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/0195e04b1eec8fb00e2db9c5e55655a3f5e76f60 https://git.kernel.org/stable/c/d3fd094c13c6d0b74f246461ca4cf427d539c8e8 https://git.kernel.org/stable/c/6311b8c471afa33c18adbe4eb16f862936b71ca3 https://git.kernel.org/stable/c/2a2367d46d7a4ee4122b7a86e57125542dbbe963