{"id":"CVE-2025-38366","summary":"LoongArch: KVM: Check validity of \"num_cpu\" from user space","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: KVM: Check validity of \"num_cpu\" from user space\n\nThe maximum supported cpu number is EIOINTC_ROUTE_MAX_VCPUS about\nirqchip EIOINTC, here add validation about cpu number to avoid array\npointer overflow.","modified":"2026-08-12T03:51:39.560119145Z","published":"2025-07-25T12:47:36.104Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38366.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/a3293b4078ee93174f70f36d3ab7618554ce6ab6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cc8d5b209e09d3b52bca1ffe00045876842d96ae"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38366.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38366"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1ad7efa552fd5cf4e8c49fea863c5c6a5dcf9f00"},{"fixed":"a3293b4078ee93174f70f36d3ab7618554ce6ab6"},{"fixed":"cc8d5b209e09d3b52bca1ffe00045876842d96ae"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38366.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.15.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38366.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}