# CVE-2023-52859: perf: hisi: Fix use-after-free when register pmu fails

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:52.546Z
- Modified: 2026-06-17T06:43:45.327Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

perf: hisi: Fix use-after-free when register pmu fails

When we fail to register the uncore pmu, the pmu context may not been
allocated. The error handing will call cpuhp_state_remove_instance()
to call uncore pmu offline callback, which migrate the pmu context.
Since that's liable to lead to some kind of use-after-free.

Use cpuhp_state_remove_instance_nocalls() instead of
cpuhp_state_remove_instance() so that the notifiers don't execute after
the PMU device has been failed to register.

(As written by CVE List.)

## Affected

- Linux Linux: from 3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a before 0e1e88bba286621b886218363de07b319d6208b2; from 3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a before b660420f449d094b1fabfa504889810b3a63cdd5; from 3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a before 3405f364f82d4f5407a8b4c519dc15d24b847fda; from 3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a before 75bab28ffd05ec8879c197890b1bd1dfec8d3f63; from 3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a before b805cafc604bfdb671fae7347a57f51154afa735; 5.13 (not affected: before 5.13; from 5.15.139 up to 5.15.*; from 6.1.63 up to 6.1.*; from 6.5.12 up to 6.5.*; from 6.6.2 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: from 5.13 before 5.15.139; from 5.16 before 6.1.63; from 6.2 before 6.5.12; from 6.6 before 6.6.2

## References

- <https://git.kernel.org/stable/c/0e1e88bba286621b886218363de07b319d6208b2> (patch)
- <https://git.kernel.org/stable/c/b660420f449d094b1fabfa504889810b3a63cdd5> (patch)
- <https://git.kernel.org/stable/c/3405f364f82d4f5407a8b4c519dc15d24b847fda> (patch)
- <https://git.kernel.org/stable/c/75bab28ffd05ec8879c197890b1bd1dfec8d3f63> (patch)
- <https://git.kernel.org/stable/c/b805cafc604bfdb671fae7347a57f51154afa735> (patch)

## Sources

- CVE List: [CVE-2023-52859](https://www.cve.org/CVERecord?id=CVE-2023-52859), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52859](https://nvd.nist.gov/vuln/detail/CVE-2023-52859), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52859 · Whole record: https://cve.day/CVE-2023-52859.json · Rebuilt by cve.day 2026-11-25T22:58:34.058Z
