A vulnerability in the Linux kernel's LoongArch architecture was addressed by making the cpumask_of_node() function robust against the NUMA_NO_NODE value. The function previously did not handle NUMA_NO_NODE correctly, which is a valid index, potentially leading to security issues. This flaw has been resolved in the kernel.