CVE-2023-52584

spmi: mediatek: Fix UAF on device remove

LOW
3.8
CVSS Score
Published: March 6, 2024 at 06:45 AM 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
LOW3.8
Exploit prediction
EPSS 0.6%
SSVC
PoC

Description

In the Linux kernel, the following vulnerability has been resolved: spmi: mediatek: Fix UAF on device remove The pmif driver data that contains the clocks is allocated along with spmi_controller. On device remove, spmi_controller will be freed first, and then devres , including the clocks, will be cleanup. This leads to UAF because putting the clocks will access the clocks in the pmif driver data, which is already freed along with spmi_controller. This can be reproduced by enabling DEBUG_TEST_DRIVER_REMOVE and building the kernel with KASAN. Fix the UAF issue by using unmanaged clk_bulk_get() and putting the clocks before freeing spmi_controller.

Affected

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

v < 6.1.775.17 ≤ v < 6.1.775.17 ≤ v < 6.6.165.17 ≤ v < 6.7.45.17 ≤ v < 6.86.2 ≤ v < 6.6.166.7 ≤ v < 6.7.41da177e4c3f45.17b45b3ccef8c063d21eb746d85337eaf71f6b5f07
Vendor states this is fixed in 521f28eedd6b (fixed)
Vendor states this is fixed in 521f28eedd6b14228c46e3b81e3bf9b90c2818d8 (fixed)
Vendor states this is fixed in 9a3881b1f07d (fixed)
Vendor states this is fixed in 9a3881b1f07db1bb55cb0108e6f05cfd027eaf2e (fixed)
Vendor states this is fixed in e821d50ab5b9 (fixed)
Vendor states this is fixed in e821d50ab5b956ed0effa49faaf29912fd4106d9 (fixed)
Vendor states this is fixed in f8dcafcb5463 (fixed)
Vendor states this is fixed in f8dcafcb54632536684336161da8bdd52120f95e (fixed)
Vendor states this is fixed in 5.17 (unaffected)
Vendor states this is fixed in 6.1.77 (unaffected)
Vendor states this is fixed in 6.6.16 (unaffected)
Vendor states this is fixed in 6.7.4 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/521f28eedd6b14228c46e3b81e3bf9b90c2818d8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9a3881b1f07db1bb55cb0108e6f05cfd027eaf2e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e821d50ab5b956ed0effa49faaf29912fd4106d9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f8dcafcb54632536684336161da8bdd52120f95e

SSVC — Action Prioritization

SSVCPoCNot automatableTotal impact

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

CVSS

3.8LOWCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
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