{"id":"CVE-2023-52859","summary":"perf: hisi: Fix use-after-free when register pmu fails","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf: hisi: Fix use-after-free when register pmu fails\n\nWhen we fail to register the uncore pmu, the pmu context may not been\nallocated. The error handing will call cpuhp_state_remove_instance()\nto call uncore pmu offline callback, which migrate the pmu context.\nSince that's liable to lead to some kind of use-after-free.\n\nUse cpuhp_state_remove_instance_nocalls() instead of\ncpuhp_state_remove_instance() so that the notifiers don't execute after\nthe PMU device has been failed to register.","modified":"2026-04-02T09:43:25.787713Z","published":"2024-05-21T15:31:52.546Z","related":["SUSE-SU-2024:3190-1","SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3209-1","SUSE-SU-2024:3383-1","SUSE-SU-2024:3483-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52859.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0e1e88bba286621b886218363de07b319d6208b2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3405f364f82d4f5407a8b4c519dc15d24b847fda"},{"type":"WEB","url":"https://git.kernel.org/stable/c/75bab28ffd05ec8879c197890b1bd1dfec8d3f63"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b660420f449d094b1fabfa504889810b3a63cdd5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b805cafc604bfdb671fae7347a57f51154afa735"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52859.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52859"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a"},{"fixed":"0e1e88bba286621b886218363de07b319d6208b2"},{"fixed":"b660420f449d094b1fabfa504889810b3a63cdd5"},{"fixed":"3405f364f82d4f5407a8b4c519dc15d24b847fda"},{"fixed":"75bab28ffd05ec8879c197890b1bd1dfec8d3f63"},{"fixed":"b805cafc604bfdb671fae7347a57f51154afa735"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52859.json"}}],"schema_version":"1.7.5"}