x86/perf: fix use-after-free bug in uncore_pci_remove()
zhaoxin inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I71KVZ CVE: NA Reference: N/A ---------------------------------------------------------------- since the dereferencing freed memory 'box' in uncore_pci_remove() will trigger a use-after-free bug, use a variable 'name' to store the value of box->pmu->type->name, so that the memory 'box' won't be dereferenced after being released. Signed-off-by: NYuhang Liang <M202271764@hust.edu.cn>
Showing
想要评论请 注册 或 登录