Skip to content
Commit 73ee5302 authored by Yang Yingliang's avatar Yang Yingliang
Browse files

futex: sched: fix UAF when free futex_exit_mutex in free_task()



hulk inclusion
category: bugfix
bugzilla: NA
CVE: NA

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

If free_task() is called on error path, it will free
futex_exit_mutex of parent process and cause UAF, so
move free of futex_exit_mutex to __put_task_struct().

Fixes: f9a5a3dea71b ("futex: sched: fix kabi broken in task_struct")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarJian Cheng <cj.chengjian@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent 04d0e96b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment