Commit 7cf81c09 authored by Konstantin Meskhidze's avatar Konstantin Meskhidze Committed by ZhaoLong Wang
Browse files

ubifs: fix possible dereference after free

mainline inclusion
from mainline-v6.7-rc1
commit d81efd66106c03771ffc8637855a6ec24caa6350
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8ZCT1

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d81efd66106c03771ffc8637855a6ec24caa6350



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

'old_idx' could be dereferenced after free via 'rb_link_node' function
call.

Fixes: b5fda08e ("ubifs: Fix memleak when insert_old_idx() failed")
Co-developed-by: default avatarIvanov Mikhail <ivanov.mikhail1@huawei-partners.com>
Signed-off-by: default avatarKonstantin Meskhidze <konstantin.meskhidze@huawei.com>
Reviewed-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarZhaoLong Wang <wangzhaolong1@huawei.com>
parent 552e91b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment