dump_common_audit_data(): fix racy accesses to ->d_name
stable inclusion from stable-5.10.9 commit a3fddad7af2cd1c60d1ea639a94e7d63c693cd23 bugzilla: 47457 -------------------------------- 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: NAl Viro <viro@zeniv.linux.org.uk> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录