CVE-2025-21965
JSON

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 packageVersionsReported by
Linux Linuxfrom 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_kernelfrom 6.12 before 6.12.20, from 6.13 before 6.13.8, 6.14NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS: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

SourceRecordLicence
CVE ListCVE-2025-21965 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-21965 changed 2026-07-30Public domain