sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.12.206.13.86.14In 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.
From the CVE record · Linux
The Linux kernel’s sched_ext component does not validate prev_cpu in scx_bpf_select_cpu_dfl(). If a BPF scheduler supplies a CPU value outside the nr_cpu_ids range, it can cause a kernel crash; the input does not specify authentication or user-interaction requirements.
Anyone running a Linux kernel with sched_ext should check whether their version is affected; affected versions were not provided.