{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1ad7efa552fd5cf4e8c49fea863c5c6a5dcf9f00"
            },
            {
              "fixed": "a3293b4078ee93174f70f36d3ab7618554ce6ab6"
            },
            {
              "fixed": "cc8d5b209e09d3b52bca1ffe00045876842d96ae"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38366.json"
  },
  "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.",
  "id": "CVE-2025-38366",
  "modified": "2026-04-01T23:08:16.407932992Z",
  "published": "2025-07-25T12:47:36.104Z",
  "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"
    }
  ],
  "schema_version": "1.7.3",
  "summary": "LoongArch: KVM: Check validity of \"num_cpu\" from user space"
}