Bug 2356651 (CVE-2025-21965) - CVE-2025-21965 kernel: sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()
Summary: CVE-2025-21965 kernel: sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()
Keywords:
Status: NEW
Alias: CVE-2025-21965
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-01 16:04 UTC by OSIDB Bzimport
Modified: 2025-04-02 00:38 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-01 16:04:29 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.