LoongArch: Fix acpi_package_ids[] array overflow
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's LoongArch ACPI package ID array can overflow on a LoongArch virtual machine with a PPTT ACPI table and up to 256 sockets. The input does not describe how an attacker could trigger the overflow or whether access or user interaction is required.
Engineers running Linux kernels on LoongArch virtual machines with PPTT ACPI tables should check their deployments; affected versions are not specified.