3.8
CWE
416
Advisory Published
CVE Published
Updated

CVE-2023-52584: spmi: mediatek: Fix UAF on device remove

First published: Wed Mar 06 2024(Updated: )

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.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
debian/linux<=5.10.223-1<=5.10.226-1
6.1.123-1
6.1.119-1
6.12.11-1
6.12.12-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2023-52584?

    CVE-2023-52584 has been classified as a moderate severity vulnerability.

  • How do I fix CVE-2023-52584?

    To fix CVE-2023-52584, update to the patched versions: linux 6.1.123-1, 6.1.119-1, 6.12.10-1, or 6.12.11-1.

  • What systems are affected by CVE-2023-52584?

    CVE-2023-52584 affects specific versions of the Linux kernel, including those up to version 5.10.226-1.

  • What causes CVE-2023-52584?

    CVE-2023-52584 is caused by a use-after-free (UAF) issue in the SPMI driver related to device removal.

  • Is there a workaround for CVE-2023-52584?

    There are no known workarounds for CVE-2023-52584 other than applying the necessary updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203