A vulnerability in the Linux kernel's KVM implementation for the LoongArch architecture was addressed by adding validation for the "num_cpu" parameter received from user space. This validation prevents an array pointer overflow related to the maximum supported CPU number for the EIOINTC irqchip. The flaw could allow local attackers with limited privileges to cause high impact on confidentiality, integrity, and availability.