PT-2024-14631 · Linux+5 · Linux Kernel+5

Fei Shao

·

Published

2024-03-05

·

Updated

2025-10-13

·

CVE-2023-52584

CVSS v2.0

4.7

Medium

VectorAV:N/AC:L/Au:M/C:P/I:P/A:N
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A use-after-free (UAF) issue has been resolved in the Linux kernel. The pmif driver data, which contains clocks, is allocated along with spmi controller. When a device is removed, spmi controller is freed first, followed by the cleanup of devres, including the clocks. This leads to a UAF because the clocks are accessed after spmi controller has been freed. The issue can be reproduced by enabling DEBUG TEST DRIVER REMOVE and building the kernel with KASAN. The fix involves using unmanaged clk bulk get() and putting the clocks before freeing spmi controller.
Recommendations To resolve the issue, use unmanaged clk bulk get() and put the clocks before freeing spmi controller. As a temporary workaround, consider disabling the spmi: mediatek driver until a patch is available. Restrict access to the vulnerable spmi controller to minimize the risk of exploitation. Avoid using the devres cleanup function until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2025-12942
CVE-2023-52584
DSA-5658-1
USN-6688-1
USN-6765-1
USN-6818-1
USN-6818-2
USN-6818-3
USN-6818-4
USN-6819-1
USN-6819-2
USN-6819-3
USN-6819-4

Affected Products

Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Ubuntu