CVE-2025-21965

sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()

State
Published
Severity
7.8 High
Published
Apr 1, 2025
Updated
Aug 5, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f0e1a0643a59bf1f922fa209cec86a170b784f3f to before 752b56bb76e2471197d25d6948d85753043b10daAffected
  • f0e1a0643a59bf1f922fa209cec86a170b784f3f to before 515680e76c536dd4aa8e2b5d674b0d441baddf5bAffected
  • f0e1a0643a59bf1f922fa209cec86a170b784f3f to before 9360dfe4cbd62ff1eb8217b815964931523b75b3Affected
LinuxLinux
  • 6.12Affected
  • before 6.12Not affected
  • 6.12.20 through 6.12.*Not affected
  • 6.13.8 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.