# CVE-2024-26768: LoongArch: Change acpi\_core\_pic\[NR\_CPUS\] to acpi\_core\_pic\[MAX\_CORE\_PIC\]

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.2
- **CVSS:** 7.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.82% (percentile 54, 2026-11-26)
- **CWE:** CWE-120
- **Published:** 2024-04-03T17:00:50.135Z
- **Modified:** 2026-08-05T11:27:07.626Z

## Who should check

- Anyone running Linux \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 88e189bd16e5889e44a41b3309558ebab78b9280; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 0f6810e39898af2d2cabd9313e4dbc945fb5dfdd; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 4551b30525cf3d2f026b92401ffe241eb04dfebe
- Anyone running Linux 5.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

LoongArch: Change acpi\_core\_pic\[NR\_CPUS\] to acpi\_core\_pic\[MAX\_CORE\_PIC\]

With default config, the value of NR\_CPUS is 64. When HW platform has
more then 64 cpus, system will crash on these platforms. MAX\_CORE\_PIC
is the maximum cpu number in MADT table (max physical number) which can
exceed the supported maximum cpu number (NR\_CPUS, max logical number),
but kernel should not crash. Kernel should boot cpus with NR\_CPUS, let
the remainder cpus stay in BIOS.

The potential crash reason is that the array acpi\_core\_pic\[NR\_CPUS\] can
be overflowed when parsing MADT table, and it is obvious that CORE\_PIC
should be corresponding to physical core rather than logical core, so it
is better to define the array as acpi\_core\_pic\[MAX\_CORE\_PIC\].

With the patch, system can boot up 64 vcpus with qemu parameter -smp 128,
otherwise system will crash with the following message.

\[    0.000000\] CPU 0 Unable to handle kernel paging request at virtual address 0000420000004259, era == 90000000037a5f0c, ra == 90000000037a46ec
\[    0.000000\] Oops\[\#1\]:
\[    0.000000\] CPU: 0 PID: 0 Comm: swapper Not tainted 6.8.0-rc2+ \#192
\[    0.000000\] Hardware name: QEMU QEMU Virtual Machine, BIOS unknown 2/2/2022
\[    0.000000\] pc 90000000037a5f0c ra 90000000037a46ec tp 9000000003c90000 sp 9000000003c93d60
\[    0.000000\] a0 0000000000000019 a1 9000000003d93bc0 a2 0000000000000000 a3 9000000003c93bd8
\[    0.000000\] a4 9000000003c93a74 a5 9000000083c93a67 a6 9000000003c938f0 a7 0000000000000005
\[    0.000000\] t0 0000420000004201 t1 0000000000000000 t2 0000000000000001 t3 0000000000000001
\[    0.000000\] t4 0000000000000003 t5 0000000000000000 t6 0000000000000030 t7 0000000000000063
\[    0.000000\] t8 0000000000000014 u0 ffffffffffffffff s9 0000000000000000 s0 9000000003caee98
\[    0.000000\] s1 90000000041b0480 s2 9000000003c93da0 s3 9000000003c93d98 s4 9000000003c93d90
\[    0.000000\] s5 9000000003caa000 s6 000000000a7fd000 s7 000000000f556b60 s8 000000000e0a4330
\[    0.000000\]    ra: 90000000037a46ec platform\_init+0x214/0x250
\[    0.000000\]   ERA: 90000000037a5f0c efi\_runtime\_init+0x30/0x94
\[    0.000000\]  CRMD: 000000b0 (PLV0 -IE -DA +PG DACF=CC DACM=CC -WE)
\[    0.000000\]  PRMD: 00000000 (PPLV0 -PIE -PWE)
\[    0.000000\]  EUEN: 00000000 (-FPE -SXE -ASXE -BTE)
\[    0.000000\]  ECFG: 00070800 (LIE=11 VS=7)
\[    0.000000\] ESTAT: 00010000 \[PIL\] (IS= ECode=1 EsubCode=0)
\[    0.000000\]  BADV: 0000420000004259
\[    0.000000\]  PRID: 0014c010 (Loongson-64bit, Loongson-3A5000)
\[    0.000000\] Modules linked in:
\[    0.000000\] Process swapper (pid: 0, threadinfo=(\_\_\_\_ptrval\_\_\_\_), task=(\_\_\_\_ptrval\_\_\_\_))
\[    0.000000\] Stack : 9000000003c93a14 9000000003800898 90000000041844f8 90000000037a46ec
\[    0.000000\]         000000000a7fd000 0000000008290000 0000000000000000 0000000000000000
\[    0.000000\]         0000000000000000 0000000000000000 00000000019d8000 000000000f556b60
\[    0.000000\]         000000000a7fd000 000000000f556b08 9000000003ca7700 9000000003800000
\[    0.000000\]         9000000003c93e50 9000000003800898 9000000003800108 90000000037a484c
\[    0.000000\]         000000000e0a4330 000000000f556b60 000000000a7fd000 000000000f556b08
\[    0.000000\]         9000000003ca7700 9000000004184000 0000000000200000 000000000e02b018
\[    0.000000\]         000000000a7fd000 90000000037a0790 9000000003800108 0000000000000000
\[    0.000000\]         0000000000000000 000000000e0a4330 000000000f556b60 000000000a7fd000
\[    0.000000\]         000000000f556b08 000000000eaae298 000000000eaa5040 0000000000200000
\[    0.000000\]         ...
\[    0.000000\] Call Trace:
\[    0.000000\] \[\<90000000037a5f0c\>\] efi\_runtime\_init+0x30/0x94
\[    0.000000\] \[\<90000000037a46ec\>\] platform\_init+0x214/0x250
\[    0.000000\] \[\<90000000037a484c\>\] setup\_arch+0x124/0x45c
\[    0.000000\] \[\<90000000037a0790\>\] start\_kernel+0x90/0x670
\[    0.000000\] \[\<900000000378b0d8\>\] kernel\_entry+0xd8/0xdc

## Affected and fixed versions

- Linux: \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 88e189bd16e5889e44a41b3309558ebab78b9280; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 0f6810e39898af2d2cabd9313e4dbc945fb5dfdd; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 4551b30525cf3d2f026b92401ffe241eb04dfebe (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 4551b30525cf3d2f026b92401ffe241eb04dfebe or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26768. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26768.md
Affected: Linux >= fa96b57c149061f71a70bd6582d995f6424fbbf4, < 88e189bd16e5889e44a41b3309558ebab78b9280; >= fa96b57c149061f71a70bd6582d995f6424fbbf4, < 0f6810e39898af2d2cabd9313e4dbc945fb5dfdd; >= fa96b57c149061f71a70bd6582d995f6424fbbf4, < 4551b30525cf3d2f026b92401ffe241eb04dfebe; Linux 5.19
Fixed in: Linux 88e189bd16e5889e44a41b3309558ebab78b9280, Linux 0f6810e39898af2d2cabd9313e4dbc945fb5dfdd, Linux 4551b30525cf3d2f026b92401ffe241eb04dfebe

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26768 being exploited?

There is no confirmed exploitation: CVE-2024-26768 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.82% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26768?

High: CVSS 7.2 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2024-26768?

Linux \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 88e189bd16e5889e44a41b3309558ebab78b9280; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 0f6810e39898af2d2cabd9313e4dbc945fb5dfdd; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 4551b30525cf3d2f026b92401ffe241eb04dfebe; Linux 5.19.

### Is there a fix for CVE-2024-26768?

Yes. Fixed in Linux 88e189bd16e5889e44a41b3309558ebab78b9280, Linux 0f6810e39898af2d2cabd9313e4dbc945fb5dfdd, Linux 4551b30525cf3d2f026b92401ffe241eb04dfebe. Upgrade Linux to 4551b30525cf3d2f026b92401ffe241eb04dfebe or later.

### How do I check if I'm affected by CVE-2024-26768?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/88e189bd16e5889e44a41b3309558ebab78b9280>
- patch: <https://git.kernel.org/stable/c/0f6810e39898af2d2cabd9313e4dbc945fb5dfdd>
- patch: <https://git.kernel.org/stable/c/4551b30525cf3d2f026b92401ffe241eb04dfebe>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26768>

HTML: <https://flawdb.com/CVE-2024-26768> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26768>
