{"id":"CVE-2025-21965","summary":"sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()","details":"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.","modified":"2026-04-02T12:45:18.351879Z","published":"2025-04-01T15:47:01.129Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21965.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/515680e76c536dd4aa8e2b5d674b0d441baddf5b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/752b56bb76e2471197d25d6948d85753043b10da"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9360dfe4cbd62ff1eb8217b815964931523b75b3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21965.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21965"},{"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":"f0e1a0643a59bf1f922fa209cec86a170b784f3f"},{"fixed":"752b56bb76e2471197d25d6948d85753043b10da"},{"fixed":"515680e76c536dd4aa8e2b5d674b0d441baddf5b"},{"fixed":"9360dfe4cbd62ff1eb8217b815964931523b75b3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21965.json"}}],"schema_version":"1.7.5"}