Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl() If a BPF scheduler provides an invalid CPU (outside the nr_cpu_ids range) as prev_cpu to scx_bpf_select_cpu_dfl() it can cause a kernel crash. To prevent this, validate prev_cpu in scx_bpf_select_cpu_dfl() and trigger an scx error if an invalid CPU is specified.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.12, < 6.12.20 |
Related Weaknesses (CWE)
References
- https://git.kernel.org/stable/c/515680e76c536dd4aa8e2b5d674b0d441baddf5bPatch
- https://git.kernel.org/stable/c/752b56bb76e2471197d25d6948d85753043b10daPatch
- https://git.kernel.org/stable/c/9360dfe4cbd62ff1eb8217b815964931523b75b3Patch
FAQ
What is CVE-2025-21965?
CVE-2025-21965 is a vulnerability with a CVSS score of 5.5 (MEDIUM). In the Linux kernel, the following vulnerability has been resolved: sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl() If a BPF scheduler provides an invalid CPU (outside the nr_cpu_ids range)...
How severe is CVE-2025-21965?
CVE-2025-21965 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-21965?
Check the references section above for vendor advisories and patch information. Affected products include: Linux Linux Kernel.