CVE-2023-52859

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

HIGH
7.8
CVSS Score
Published: May 21, 2024 at 03:31 PM UTC
Updated: June 17, 2026 at 06:43 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.13 ≤ v < 5.15.1395.13 ≤ v < 6.1.635.13 ≤ v < 6.5.125.13 ≤ v < 6.6.25.13 ≤ v < 6.75.16 ≤ v < 6.1.636.2 ≤ v < 6.5.126.6 ≤ v < 6.6.23bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a5.13
Vendor states this is fixed in 0e1e88bba286621b886218363de07b319d6208b2 (fixed)
Vendor states this is fixed in 3405f364f82d4f5407a8b4c519dc15d24b847fda (fixed)
Vendor states this is fixed in 75bab28ffd05ec8879c197890b1bd1dfec8d3f63 (fixed)
Vendor states this is fixed in b660420f449d094b1fabfa504889810b3a63cdd5 (fixed)
Vendor states this is fixed in b805cafc604bfdb671fae7347a57f51154afa735 (fixed)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.15.139 (unaffected)
Vendor states this is fixed in 6.1.63 (unaffected)
Vendor states this is fixed in 6.5.12 (unaffected)
Vendor states this is fixed in 6.6.2 (unaffected)
Vendor states this is fixed in 6.7 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0e1e88bba286621b886218363de07b319d6208b2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3405f364f82d4f5407a8b4c519dc15d24b847fda
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/75bab28ffd05ec8879c197890b1bd1dfec8d3f63
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b660420f449d094b1fabfa504889810b3a63cdd5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b805cafc604bfdb671fae7347a57f51154afa735

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card