{"id":"CVE-2026-89904","state":"PUBLISHED","title":"LoongArch: Fix acpi_package_ids[] array overflow","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: Fix acpi_package_ids[] array overflow\n\nWith LoongArch virt machine, a typical setting is one core per socket,\nthere will max 256 sockets (packages) on one VM. With PPTT acpi table,\narray acpi_package_ids[] will be overflowed.\n\nHere change the array size of acpi_package_ids[] with the max value of\nMAX_PACKAGES and KVM_MAX_VCPUS.","publishedAt":"2026-09-16T10:32:03.752Z","updatedAt":"2026-10-19T08:54:37.029Z","severity":{"score":8.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f18992be262d6515c94bf4bf6ce7598135076771","status":"affected","lessThan":"0195e04b1eec8fb00e2db9c5e55655a3f5e76f60","versionType":"git"},{"version":"4427a33faabb4b81511b99dfee18ce0a38b5b5df","status":"affected","lessThan":"d3fd094c13c6d0b74f246461ca4cf427d539c8e8","versionType":"git"},{"version":"4e8f58620f6717f72f3d88a2c8f25c0c656d0ba7","status":"affected","lessThan":"6311b8c471afa33c18adbe4eb16f862936b71ca3","versionType":"git"},{"version":"4e8f58620f6717f72f3d88a2c8f25c0c656d0ba7","status":"affected","lessThan":"2a2367d46d7a4ee4122b7a86e57125542dbbe963","versionType":"git"},{"version":"496bc868d9066e034787aa14b8ad6c23e77b51ef","status":"affected","versionType":"git"},{"version":"6.12.101","status":"affected","lessThan":"6.12.110","versionType":"semver"},{"version":"6.18.42","status":"affected","lessThan":"6.18.51","versionType":"semver"},{"version":"7.1.6","status":"affected","lessThan":"7.2","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kernel/acpi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kernel/acpi.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89904.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89904","state":"PUBLISHED","datePublished":"2026-09-16T10:32:03.752Z","dateUpdated":"2026-10-19T08:54:37.029Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.774Z"},"containers":{"cna":{"title":"LoongArch: Fix acpi_package_ids[] array overflow","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: Fix acpi_package_ids[] array overflow\n\nWith LoongArch virt machine, a typical setting is one core per socket,\nthere will max 256 sockets (packages) on one VM. With PPTT acpi table,\narray acpi_package_ids[] will be overflowed.\n\nHere change the array size of acpi_package_ids[] with the max value of\nMAX_PACKAGES and KVM_MAX_VCPUS."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f18992be262d6515c94bf4bf6ce7598135076771","status":"affected","lessThan":"0195e04b1eec8fb00e2db9c5e55655a3f5e76f60","versionType":"git"},{"version":"4427a33faabb4b81511b99dfee18ce0a38b5b5df","status":"affected","lessThan":"d3fd094c13c6d0b74f246461ca4cf427d539c8e8","versionType":"git"},{"version":"4e8f58620f6717f72f3d88a2c8f25c0c656d0ba7","status":"affected","lessThan":"6311b8c471afa33c18adbe4eb16f862936b71ca3","versionType":"git"},{"version":"4e8f58620f6717f72f3d88a2c8f25c0c656d0ba7","status":"affected","lessThan":"2a2367d46d7a4ee4122b7a86e57125542dbbe963","versionType":"git"},{"version":"496bc868d9066e034787aa14b8ad6c23e77b51ef","status":"affected","versionType":"git"},{"version":"6.12.101","status":"affected","lessThan":"6.12.110","versionType":"semver"},{"version":"6.18.42","status":"affected","lessThan":"6.18.51","versionType":"semver"},{"version":"7.1.6","status":"affected","lessThan":"7.2","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kernel/acpi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kernel/acpi.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0195e04b1eec8fb00e2db9c5e55655a3f5e76f60"},{"url":"https://git.kernel.org/stable/c/d3fd094c13c6d0b74f246461ca4cf427d539c8e8"},{"url":"https://git.kernel.org/stable/c/6311b8c471afa33c18adbe4eb16f862936b71ca3"},{"url":"https://git.kernel.org/stable/c/2a2367d46d7a4ee4122b7a86e57125542dbbe963"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.4,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The overflow is in parse_acpi_topology(), called from loongson_prepare_cpus() during smp_prepare_cpus() as the kernel consumes the firmware or VMM ACPI PPTT table at boot; there is no network, adjacent-network, or USB path into this parser.\nAC:L - A LoongArch virt machine with the typical one-core-per-socket layout can expose up to 256 packages (KVM_MAX_VCPUS) against acpi_package_ids[MAX_PACKAGES] (16 entries); each new PPTT package ID is stored via acpi_package_ids[acpi_nr_packages++] with no bounds check, so the overflow is deterministic with no race.\nPR:N - PPTT is parsed automatically during SMP bring-up with no capable() check, Linux login, or syscall. A hypervisor-generated virt-machine table or supply-chain/evil-maid firmware with more than 16 unique packages triggers the write without any account or user-namespace privilege.\nUI:N - The out-of-bounds write runs as part of ordinary kernel_init_freeable() SMP setup before userspace starts; no victim mount, file open, or other interactive action is required.\nS:U - The write corrupts kernel BSS and related globals inside the same kernel that parsed PPTT. This is not a KVM guest-to-host escape, sandbox breakout, or IOMMU/DMA authority crossing.\nC:H - Firmware-controlled 32-bit topology IDs are written past acpi_package_ids[] into adjacent kernel BSS, and the later canonicalization loop also reads past the array. Per memory-corruption guidance that is High confidentiality, not a bounded few-byte leak.\nI:H - This is a direct out-of-bounds write of firmware-controlled ints past a 16-entry static array (up to hundreds of stores on large VMs). Out-of-bounds writes score High because they can smash adjacent BSS, including function pointers, and enable control-flow hijack.\nA:H - Smashing kernel BSS during SMP bring-up can oops, panic, or prevent boot. Canonicalized package IDs >= MAX_PACKAGES also index loongson3_cpufreq's cpufreq_mutex[MAX_PACKAGES] out of bounds, causing further crashes."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:54:37.029Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.101","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.42","versionEndExcluding":"6.18.51"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.2.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1.6"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}