sched: Fix yet more sched_fork() races
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
sched: Fix yet more sched_fork() races
Where commit 4ef0c5c6b5ba ("kernel/sched: Fix sched_fork() access an invalid sched_task_group") fixed a fork race vs cgroup, it opened up a race vs syscalls by not placing the task on the runqueue before it gets exposed through the pidhash.
Commit 13765de8148f ("sched/fair: Fix fault in reweight_entity") is trying to fix a single instance of this, instead fix the whole class of issues, effectively reverting this commit.
From the CVE record · Linux
The Linux kernel has a race in sched_fork(): a task can become visible through the PID hash before it is placed on the runqueue. A local process making syscalls during a fork can encounter scheduler faults; the input does not specify additional authentication or user-interaction requirements.
Teams running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified in the input.