What’s Vulnerable › Vulnerabilities
CVE-2022-48671: cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-03 · updated 2026-06-17
- Weakness: CWE-667
Description
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.
Affected products
- Linux kernel: from 5.4.213 before 5.4.215; from 5.10.143 before 5.10.145; from 5.15.68 (excl.) before 5.15.70; from 5.19.9 before 5.19.11 — fixed in 5.10.145, 5.15.70, 5.19.11, 5.4.215
How to fix
Upgrade to a fixed version: Linux kernel 5.10.145, 5.15.70, 5.19.11, 5.4.215. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/07191f984842d50020789ff14c75da436a7f46a9
- https://git.kernel.org/stable/c/321488cfac7d0eb6d97de467015ff754f85813ff
- https://git.kernel.org/stable/c/43626dade36fa74d3329046f4ae2d7fdefe401c6
- https://git.kernel.org/stable/c/5db17805b6ba4c34dab303f49aea3562fc25af75
- https://git.kernel.org/stable/c/99bc25748e394d17f9e8b10cc7f273b8e64c1c7e
- https://git.kernel.org/stable/c/9f267393b036f1470fb12fb892d59e7ff8aeb58d
- https://git.kernel.org/stable/c/07191f984842d50020789ff14c75da436a7f46a9
- https://git.kernel.org/stable/c/321488cfac7d0eb6d97de467015ff754f85813ff
- https://git.kernel.org/stable/c/43626dade36fa74d3329046f4ae2d7fdefe401c6
- https://git.kernel.org/stable/c/5db17805b6ba4c34dab303f49aea3562fc25af75
- https://git.kernel.org/stable/c/99bc25748e394d17f9e8b10cc7f273b8e64c1c7e
- https://git.kernel.org/stable/c/9f267393b036f1470fb12fb892d59e7ff8aeb58d
Get alerted when CVE-2022-48671 or the next vulnerability affects your stack