Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.8
CVE-2025-38366: Linux KVM on LoongArch: Prevent CPU Number Overflow
CVE-2025-38366 · published 1 year ago
Summary
A bug in the Linux kernel's KVM feature on LoongArch architecture could allow an attacker to cause a crash by passing an invalid number of CPUs. This has been fixed in the Linux kernel to prevent potential crashes. Update your kernel to fix this issue.
What to do
- Update linux kernel to version 6.15.5.
- Update linux linux_kernel to version 6.15.5 or later.
- Update linux linux to version a3293b4078ee93174f70f36d3ab7618554ce6ab6 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | linux | linux_kernel |
>= 6.13, < 6.15.5 6.16 cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| – | linux | linux |
< a3293b4078ee93174f70f36d3ab7618554ce6ab6 6.13 |
| Linux | linux | kernel |
>= 6.13.0, < 6.15.5 Fix: upgrade to 6.15.5
|
Original advisory text
LoongArch: KVM: Check validity of "num_cpu" from user space
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: KVM: Check validity of "num_cpu" from user space
The maximum supported cpu number is EIOINTC_ROUTE_MAX_VCPUS about
irqchip EIOINTC, here add validation about cpu number to avoid array
pointer overflow.
LoongArch: KVM: Check validity of "num_cpu" from user space
The maximum supported cpu number is EIOINTC_ROUTE_MAX_VCPUS about
irqchip EIOINTC, here add validation about cpu number to avoid array
pointer overflow.
References
- https://git.kernel.org/stable/c/a3293b4078ee93174f70f36d3ab7618554ce6ab6 URL
- https://git.kernel.org/stable/c/cc8d5b209e09d3b52bca1ffe00045876842d96ae URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38366... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-38366 Vendor Advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git Product
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker full control (estimated)
Timeline
Published25 Jul 2025
Updated27 Oct 2026
First seen7 Mar 2026
Track software like this
Free during beta