7.8high
sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from f0e1a0643a59bf1f922fa209cec86a170b784f3f before 752b56bb76e2471197d25d6948d85753043b10da, from f0e1a0643a59bf1f922fa209cec86a170b784f3f before 515680e76c536dd4aa8e2b5d674b0d441baddf5b, from f0e1a0643a59bf1f922fa209cec86a170b784f3f before 9360dfe4cbd62ff1eb8217b815964931523b75b3, 6.12 Not affected: before 6.12, from 6.12.20 up to 6.12.*, from 6.13.8 up to 6.13.*, from 6.14 up to * | CVE List |
| linux linux_kernel | from 6.12 before 6.12.20, from 6.13 before 6.13.8, 6.14 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: sched_ext: Validar prev_cpu en scx_bpf_select_cpu_dfl(). Si un programador BPF proporciona una CPU no válida (fuera del rango nr_cpu_ids) como prev_cpu a scx_bpf_select_cpu_dfl(), puede provocar un fallo del kernel. Para evitarlo, valide prev_cpu en scx_bpf_select_cpu_dfl() y genere un error scx si se especifica una CPU no válida.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-21965 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-21965 changed 2026-07-30 | Public domain |