Commit 05a59355 authored by Al Viro's avatar Al Viro Committed by Yang Yingliang
Browse files

dump_common_audit_data(): fix racy accesses to ->d_name



stable inclusion
from linux-4.19.169
commit fda4bb55c45bd9fdf490c39c3e567f0cea931e54

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

commit d36a1dd9 upstream.

We are not guaranteed the locking environment that would prevent
dentry getting renamed right under us.  And it's possible for
old long name to be freed after rename, leading to UAF here.

Cc: stable@kernel.org # v2.6.2+
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent 0decee3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment