cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4f7e7236435ca0abe005c674ebd6892c6e83aeb3 · < 43626dade36fa74d3329046f4ae2d7fdefe401c6| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all()
syzbot is hitting percpu_rwsem_assert_held(&cpu_hotplug_lock) warning at cpuset_attach() [1], for commit 4f7e7236435ca0ab ("cgroup: Fix threadgroup_rwsem <-> cpus_read_lock() deadlock") missed that cpuset_attach() is also called from cgroup_attach_task_all(). Add cpus_read_lock() like what cgroup_procs_write_start() does.
From the CVE record · Linux
The Linux kernel’s cgroup_attach_task_all() lacks a cpus_read_lock() around a call to cpuset_attach(), which can trigger a CPU hotplug lock assertion warning. The input does not establish what an attacker could do or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the affected cgroup code should check their deployments; affected versions are not specified.