Commit 66597a82 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Zheng Zengkai
Browse files

cgroup-v1: Require capabilities to set release_agent

stable inclusion
from stable-v5.10.97
commit 1fc3444cda9a78c65b769e3fa93455e09ff7a0d3
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4TUA0?from=project-issue


CVE: CVE-2022-0492

-------------------------------

commit 24f60085 upstream.

The cgroup release_agent is called with call_usermodehelper.  The function
call_usermodehelper starts the release_agent with a full set fo capabilities.
Therefore require capabilities when setting the release_agaent.

Reported-by: default avatarTabitha Sable <tabitha.c.sable@gmail.com>
Tested-by: default avatarTabitha Sable <tabitha.c.sable@gmail.com>
Fixes: 81a6a5cd ("Task Control Groups: automatic userspace notification of idle cgroups")
Cc: stable@vger.kernel.org # v2.6.24+
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarLu Jialin <lujialin4@huawei.com>
Reviewed-by: default avatarWang Weiyang <wangweiyang2@huawei.com>
Reviewed-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent edd80ba8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment