In the Linux kernel, the following vulnerability has been resolved:
cgroup: Add missing cpusreadlock() to cgroupattachtask_all()
syzbot is hitting percpurwsemassertheld(&cpuhotpluglock) warning at cpusetattach() [1], for commit 4f7e7236435ca0ab ("cgroup: Fix threadgrouprwsem <-> cpusreadlock() deadlock") missed that cpusetattach() is also called from cgroupattachtaskall(). Add cpusreadlock() like what cgroupprocswritestart() does.
[
{
"digest": {
"function_hash": "252306520383445713572297765986971473674",
"length": 473.0
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9f267393b036f1470fb12fb892d59e7ff8aeb58d",
"signature_type": "Function",
"id": "CVE-2022-48671-ca23afe5",
"signature_version": "v1",
"target": {
"function": "cgroup_attach_task_all",
"file": "kernel/cgroup/cgroup-v1.c"
}
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"303188937433754210024151070993501779506",
"305248952126220394430862485589678416269",
"323373086524899501686940646732207213329",
"94951747250617309421363145818797619955",
"270775309127768204922062638478545043809",
"138476793633101490292668424369299526043",
"248991778604469373638484093563749915013",
"327676054232727696654136748738821693674"
]
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9f267393b036f1470fb12fb892d59e7ff8aeb58d",
"signature_type": "Line",
"id": "CVE-2022-48671-eb3260b5",
"signature_version": "v1",
"target": {
"file": "kernel/cgroup/cgroup-v1.c"
}
}
]