+2
−0
Loading
stable inclusion from stable-v6.6.57 commit d885c464c25018b81a6b58f5d548fc2e3ef87dd1 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAYREJ CVE: CVE-2024-50055 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d885c464c25018b81a6b58f5d548fc2e3ef87dd1 -------------------------------- [ Upstream commit bfa54a793ba77ef696755b66f3ac4ed00c7d1248 ] For bus_register(), any error which happens after kset_register() will cause that @priv are freed twice, fixed by setting @priv with NULL after the first free. Signed-off-by:Zijun Hu <quic_zijuhu@quicinc.com> Link: https://lore.kernel.org/r/20240727-bus_register_fix-v1-1-fed8dd0dba7a@quicinc.com Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Yongqiang Liu <liuyongqiang13@huawei.com>