CVE-2023-52859
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2023-52859
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2023-52859.html
Vendor advisory: redhat — https://access.redhat.com/errata/RHSA-2024:9315
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| rhel | 9 | fixed | |
| sles | affected | | |
| debian | bookworm | fixed | 6.1.64-1 |
| debian | bullseye | fixed | 0 |
| debian | forky | fixed | 6.6.8-1 |
| debian | sid | fixed | 6.6.8-1 |
| debian | trixie | fixed | 6.6.8-1 |
References
Verify integrity in audit chain (admin only). AS-IS.