{"id":"CVE-2025-21965","published":"2025-04-01T15:47:01Z","modified":"2026-08-05T11:55:41Z","title":"sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00201,"percentile":0.09983,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/752b56bb76e2471197d25d6948d85753043b10da","tags":[]},{"url":"https://git.kernel.org/stable/c/515680e76c536dd4aa8e2b5d674b0d441baddf5b","tags":[]},{"url":"https://git.kernel.org/stable/c/9360dfe4cbd62ff1eb8217b815964931523b75b3","tags":[]}],"priority":{"score":7.5,"factors":[{"name":"EPSS percentile","points":2.0},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f0e1a0643a59bf1f922fa209cec86a170b784f3f, < 752b56bb76e2471197d25d6948d85753043b10da",">= f0e1a0643a59bf1f922fa209cec86a170b784f3f, < 515680e76c536dd4aa8e2b5d674b0d441baddf5b",">= f0e1a0643a59bf1f922fa209cec86a170b784f3f, < 9360dfe4cbd62ff1eb8217b815964931523b75b3"]},{"vendor":"Linux","product":"Linux","versions":["6.12"]}],"euvd":{"id":"EUVD-2025-9355","exploited":false,"provenance":"source"}}