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.
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.
Metrics
Affected Vendors & Products
Advisories
Source | ID | Title |
---|---|---|
![]() |
DSA-5658-1 | linux security update |
![]() |
USN-6688-1 | Linux kernel (OEM) vulnerabilities |
![]() |
USN-6818-1 | Linux kernel vulnerabilities |
![]() |
USN-6818-2 | Linux kernel (ARM laptop) vulnerabilities |
![]() |
USN-6818-3 | Linux kernel (NVIDIA) vulnerabilities |
![]() |
USN-6818-4 | Linux kernel (HWE) vulnerabilities |
![]() |
USN-6819-1 | Linux kernel vulnerabilities |
![]() |
USN-6819-2 | Linux kernel vulnerabilities |
![]() |
USN-6819-3 | Linux kernel (OEM) vulnerabilities |
![]() |
USN-6819-4 | Linux kernel (Oracle) vulnerabilities |
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Fri, 14 Mar 2025 19:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Linux linux Kernel
|
|
CPEs | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | |
Vendors & Products |
Linux linux Kernel
|
Mon, 04 Nov 2024 13:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Linux
Linux kernel |
|
CPEs | cpe:2.3:o:linux:kernel:*:*:*:*:*:*:*:* | |
Vendors & Products |
Linux
Linux kernel |
|
Metrics |
ssvc
|

Status: PUBLISHED
Assigner: Linux
Published:
Updated: 2025-06-19T13:10:54.479Z
Reserved: 2024-03-02T21:55:42.570Z
Link: CVE-2023-52584

Updated: 2024-08-02T23:03:21.159Z

Status : Analyzed
Published: 2024-03-06T07:15:07.227
Modified: 2025-03-14T18:58:42.940
Link: CVE-2023-52584


No data.