Skip to content
Fencer Vulns
low 3.8

CVE-2023-52584 json

spmi: mediatek: Fix UAF on device remove

published 2024-03-06 2 y ago modified 2026-06-17 4 mo ago also EUVD-2023-57208

cvss
3.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 46%
public exploits
0
none known

Summary

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.

Patch / fix

  • Linux Linux 6.1.77, 6.6.16, 6.7.4, 6.8
  • linux kernel 6.1.77, 6.6.16, 6.7.4, 6.8, 9a3881b1f07d, 521f28eedd6b, e821d50ab5b9, f8dcafcb5463
  • linux Debian 12 6.1.82-1
  • linux Debian 14, Debian 13 6.7.7-1

debian advisories DEBIAN-CVE-2023-52584

  • linux-gcp-6.5 Ubuntu 22.04 LTS 6.5.0-1022.24~22.04.1
  • linux-hwe-6.5 Ubuntu 22.04 LTS 6.5.0-41.41~22.04.2
  • linux-oem-6.1 Ubuntu 22.04 LTS 6.1.0-1035.35
  • linux-oem-6.5 Ubuntu 22.04 LTS 6.5.0-1024.25
  • linux-azure-6.5 Ubuntu 22.04 LTS 6.5.0-1022.23~22.04.1
  • linux-riscv-6.5 Ubuntu 22.04 LTS 6.5.0-40.40.1~22.04.1
  • linux-nvidia-6.5 Ubuntu 22.04 LTS 6.5.0-1021.22
  • linux-oracle-6.5 Ubuntu 22.04 LTS 6.5.0-1024.24~22.04.1

ubuntu advisories UBUNTU-CVE-2023-52584

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-52584 updated cvss 6.7

kernel: spmi: mediatek: Fix UAF on device remove

  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

0.56% chance of exploitation in the next 30 days, higher than 46% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 3.8 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
CNA 3.1 3.8 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N

Affected products

  • Linux Linux
  • linux kernel

Classification

Weakness
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.