CVE-2025-38366Published Jul 25, 2025 · Jul 25Updated Oct 28
LoongArch: KVM: Check validity of "num_cpu" from user space
Linux
High7.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| 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: 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.
From the CVE record · Linux
The Linux kernel's LoongArch KVM code did not validate a user-space-supplied CPU count against the EIOINTC irqchip's supported maximum. A local user-space caller supplying an invalid count could cause an array pointer overflow; the input does not specify authentication requirements or any further impact.
Engineers running Linux kernels with LoongArch KVM should check their versions; affected versions were not specified.