CVE Catalog

CVE-2025-21965

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.18%

8th percentile - higher than 8% of all known CVEs

Summary

In the Linux kernel, the sched_ext scheduler lacks validation of the prev_cpu parameter in scx_bpf_select_cpu_dfl(). Providing an invalid CPU (outside nr_cpu_ids range) can cause a kernel crash.

Risk Assessment

An attacker with the ability to run BPF programs can trigger a system crash by providing an invalid CPU as prev_cpu.

Recommendation

Apply the Linux kernel patch that adds validation of prev_cpu in scx_bpf_select_cpu_dfl() and triggers an scx error for invalid CPUs.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS