CVE-2023-52859
perf: hisi: Fix use-after-free when register pmu fails
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.
INFO
Published Date :
May 21, 2024, 4:15 p.m.
Last Modified :
Jan. 14, 2025, 5:32 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update the affected Linux kernel packages.
- Reboot the system after the update.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-52859.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-52859 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-52859
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-52859 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-52859 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jan. 14, 2025
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE NIST CWE-416 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.13 up to (excluding) 5.15.139 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.63 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.5.12 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.6 up to (excluding) 6.6.2 Changed Reference Type https://git.kernel.org/stable/c/0e1e88bba286621b886218363de07b319d6208b2 No Types Assigned https://git.kernel.org/stable/c/0e1e88bba286621b886218363de07b319d6208b2 Patch Changed Reference Type https://git.kernel.org/stable/c/0e1e88bba286621b886218363de07b319d6208b2 No Types Assigned https://git.kernel.org/stable/c/0e1e88bba286621b886218363de07b319d6208b2 Patch Changed Reference Type https://git.kernel.org/stable/c/3405f364f82d4f5407a8b4c519dc15d24b847fda No Types Assigned https://git.kernel.org/stable/c/3405f364f82d4f5407a8b4c519dc15d24b847fda Patch Changed Reference Type https://git.kernel.org/stable/c/3405f364f82d4f5407a8b4c519dc15d24b847fda No Types Assigned https://git.kernel.org/stable/c/3405f364f82d4f5407a8b4c519dc15d24b847fda Patch Changed Reference Type https://git.kernel.org/stable/c/75bab28ffd05ec8879c197890b1bd1dfec8d3f63 No Types Assigned https://git.kernel.org/stable/c/75bab28ffd05ec8879c197890b1bd1dfec8d3f63 Patch Changed Reference Type https://git.kernel.org/stable/c/75bab28ffd05ec8879c197890b1bd1dfec8d3f63 No Types Assigned https://git.kernel.org/stable/c/75bab28ffd05ec8879c197890b1bd1dfec8d3f63 Patch Changed Reference Type https://git.kernel.org/stable/c/b660420f449d094b1fabfa504889810b3a63cdd5 No Types Assigned https://git.kernel.org/stable/c/b660420f449d094b1fabfa504889810b3a63cdd5 Patch Changed Reference Type https://git.kernel.org/stable/c/b660420f449d094b1fabfa504889810b3a63cdd5 No Types Assigned https://git.kernel.org/stable/c/b660420f449d094b1fabfa504889810b3a63cdd5 Patch Changed Reference Type https://git.kernel.org/stable/c/b805cafc604bfdb671fae7347a57f51154afa735 No Types Assigned https://git.kernel.org/stable/c/b805cafc604bfdb671fae7347a57f51154afa735 Patch Changed Reference Type https://git.kernel.org/stable/c/b805cafc604bfdb671fae7347a57f51154afa735 No Types Assigned https://git.kernel.org/stable/c/b805cafc604bfdb671fae7347a57f51154afa735 Patch -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/0e1e88bba286621b886218363de07b319d6208b2 Added Reference https://git.kernel.org/stable/c/3405f364f82d4f5407a8b4c519dc15d24b847fda Added Reference https://git.kernel.org/stable/c/75bab28ffd05ec8879c197890b1bd1dfec8d3f63 Added Reference https://git.kernel.org/stable/c/b660420f449d094b1fabfa504889810b3a63cdd5 Added Reference https://git.kernel.org/stable/c/b805cafc604bfdb671fae7347a57f51154afa735 -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 29, 2024
Action Type Old Value New Value -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 21, 2024
Action Type Old Value New Value Added 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. Added Reference kernel.org https://git.kernel.org/stable/c/0e1e88bba286621b886218363de07b319d6208b2 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/b660420f449d094b1fabfa504889810b3a63cdd5 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/3405f364f82d4f5407a8b4c519dc15d24b847fda [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/75bab28ffd05ec8879c197890b1bd1dfec8d3f63 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/b805cafc604bfdb671fae7347a57f51154afa735 [No types assigned]