{
  "id": "CVE-2025-21965",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21965",
  "published_at": "2025-04-01T15:47:01.129Z",
  "title": "sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()\n\nIf a BPF scheduler provides an invalid CPU (outside the nr_cpu_ids\nrange) as prev_cpu to scx_bpf_select_cpu_dfl() it can cause a kernel\ncrash.\n\nTo prevent this, validate prev_cpu in scx_bpf_select_cpu_dfl() and\ntrigger an scx error if an invalid CPU is specified.",
  "cwe": "CWE-476",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= f0e1a0643a59bf1f922fa209cec86a170b784f3f, \u003c 752b56bb76e2471197d25d6948d85753043b10da",
          "\u003e= f0e1a0643a59bf1f922fa209cec86a170b784f3f, \u003c 515680e76c536dd4aa8e2b5d674b0d441baddf5b",
          "\u003e= f0e1a0643a59bf1f922fa209cec86a170b784f3f, \u003c 9360dfe4cbd62ff1eb8217b815964931523b75b3"
        ],
        "fixed_in": [
          "752b56bb76e2471197d25d6948d85753043b10da",
          "515680e76c536dd4aa8e2b5d674b0d441baddf5b",
          "9360dfe4cbd62ff1eb8217b815964931523b75b3"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.12"
        ],
        "fixed_in": [
          "0",
          "6.12.20",
          "6.13.8",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 752b56bb76e2471197d25d6948d85753043b10da or 515680e76c536dd4aa8e2b5d674b0d441baddf5b or 9360dfe4cbd62ff1eb8217b815964931523b75b3 or later.",
      "Upgrade Linux to 0 or 6.12.20 or 6.13.8 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
