CVE-2026-89904: LoongArch: Fix acpi_package_ids[] array overflow
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: Fix acpipackageids[] 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 acpipackageids[] will be overflowed.
Here change the array size of acpipackageids[] with the max value of MAXPACKAGES and KVMMAXVCPUS.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1 - Upgrade
Upgrade
debian/linux-6.12to a version that resolves this vulnerability.Fixed in 6.12.113-1~deb12u1 - Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Configuration
Resize acpi_package_ids[] to the maximum of MAX_PACKAGES and KVM_MAX_VCPUS to prevent overflow with PPTT ACPI tables.
Linux kernel LoongArch virt machine acpi_package_ids[] array size = max(MAX_PACKAGES, KVM_MAX_VCPUS)
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The issue affects Linux kernel instances running on LoongArch virtual machines that use a PPTT ACPI table. A typical affected topology is one core per socket with up to 256 sockets (packages) in a VM.
What condition triggers the overflow?
The overflow occurs when the PPTT ACPI table causes the kernel to record more package IDs than the acpi_package_ids[] array can hold. Large LoongArch VM package counts can reach this condition.
What is the remediation?
Use a kernel containing the fix that sizes acpi_package_ids[] according to MAX_PACKAGES and KVM_MAX_VCPUS. The provided stable-kernel references identify commits carrying the correction.