CVE-2025-21965

Source
https://cve.org/CVERecord?id=CVE-2025-21965
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21965.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21965
Downstream
Published
2025-04-01T15:47:01.129Z
Modified
2026-03-20T12:41:15.570900Z
Summary
sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()
Details

In the Linux kernel, the following vulnerability has been resolved:

schedext: Validate prevcpu in scxbpfselectcpudfl()

If a BPF scheduler provides an invalid CPU (outside the nrcpuids range) as prevcpu to scxbpfselectcpu_dfl() it can cause a kernel crash.

To prevent this, validate prevcpu in scxbpfselectcpu_dfl() and trigger an scx error if an invalid CPU is specified.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21965.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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/osv-test-cve-osv-conversion/osv-output/CVE-2025-21965.json"