CVE-2023-52765
Fixed in a distro release EPSS <1%CVSS 6.2
In the Linux kernel, the following vulnerability has been resolved: mfd: qcom-spmi-pmic: Fix revid implementation The Qualcomm SPMI PMIC revid implementation is broken in multiple ways. First, it assumes that just because the sibling base device has been registered that means that it is also bound to a driver, which may not be the case (e.g. due to probe deferral or asynchronous probe). This could trigger a NULL-pointer dereference when attempting to access the driver data of the unbound device. Second, it accesses driver data of a sibling device directly and without any locking, which means that the driver data may be freed while it is being accessed (e.g. on driver unbind). Third, it leaks a struct device reference to the sibling device which is looked up using the spmi_device_from_of() every time a function (child) device is calling the revid function (e.g. on probe). Fix this mess by reimplementing the revid lookup so that it is done only at probe of the PMIC device; the base device fetches the revid info from the hardware, while any secondary SPMI device fetches the information from the base device and caches it so that it can be accessed safely from its children. If the base device has not been probed yet then probe of a secondary device is deferred.
Products: Linux, linux_kernel
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Debian 12 | linux | 6.1.64-1 |
| Debian 13 | linux | 6.6.8-1 |
| Debian 14 | linux | 6.6.8-1 |
| SUSE Linux Enterprise High Availability Extension 15 SP6 | kernel-default | 6.4.0-150600.23.14.2 |
| SUSE Linux Enterprise Live Patching 15 SP6 | kernel-default | 6.4.0-150600.23.14.2 |
| SUSE Linux Enterprise Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6-RT_Update_1 | 1-150600.1.5.1 |
| SUSE Linux Enterprise Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6_Update_2 | 1-150600.13.3.2 |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | kernel-64kb | 6.4.0-150600.23.14.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | kernel-default | 6.4.0-150600.23.14.2 |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | kernel-default-base | 6.4.0-150600.23.14.2.150600.12.4.3 |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | kernel-source | 6.4.0-150600.23.14.2 |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | kernel-zfcpdump | 6.4.0-150600.23.14.2 |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | kernel-docs | 6.4.0-150600.23.14.2 |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | kernel-obs-build | 6.4.0-150600.23.14.2 |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | kernel-source | 6.4.0-150600.23.14.2 |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | kernel-syms | 6.4.0-150600.23.14.2 |
| SUSE Linux Enterprise Module for Legacy 15 SP6 | kernel-default | 6.4.0-150600.23.14.2 |
| SUSE Linux Enterprise Module for Public Cloud 15 SP6 | kernel-azure | 6.4.0-150600.8.8.2 |
| SUSE Linux Enterprise Module for Public Cloud 15 SP6 | kernel-source-azure | 6.4.0-150600.8.8.2 |
| SUSE Linux Enterprise Module for Public Cloud 15 SP6 | kernel-syms-azure | 6.4.0-150600.8.8.1 |
| SUSE Linux Enterprise Workstation Extension 15 SP6 | kernel-default | 6.4.0-150600.23.14.2 |
| SUSE Linux Micro 6.0 | kernel-default | 6.4.0-18.1 |
| SUSE Linux Micro 6.0 | kernel-default-base | 6.4.0-17.1.1.51 |
| SUSE Linux Micro 6.0 | kernel-kvmsmall | 6.4.0-18.1 |
| SUSE Linux Micro 6.0 | kernel-rt | 6.4.0-9.1 |
| SUSE Linux Micro 6.0 | kernel-source | 6.4.0-18.1 |
| SUSE Linux Micro 6.0 | kernel-source-rt | 6.4.0-9.1 |
| SUSE Real Time Module 15 SP6 | kernel-rt | 6.4.0-150600.10.5.1 |
| SUSE Real Time Module 15 SP6 | kernel-rt_debug | 6.4.0-150600.10.5.1 |
| SUSE Real Time Module 15 SP6 | kernel-source-rt | 6.4.0-150600.10.5.1 |
| SUSE Real Time Module 15 SP6 | kernel-syms-rt | 6.4.0-150600.10.5.1 |
| Ubuntu 16.04 LTS | linux-hwe-edge | no fix |
| Ubuntu 18.04 LTS | linux-aws-5.0 | no fix |
| Ubuntu 18.04 LTS | linux-aws-5.3 | no fix |
| Ubuntu 18.04 LTS | linux-azure | no fix |
| Ubuntu 18.04 LTS | linux-azure-5.3 | no fix |
| Ubuntu 18.04 LTS | linux-azure-edge | no fix |
| Ubuntu 18.04 LTS | linux-gcp | no fix |
| Ubuntu 18.04 LTS | linux-gcp-5.3 | no fix |
| Ubuntu 18.04 LTS | linux-gke-4.15 | no fix |
| Ubuntu 18.04 LTS | linux-gke-5.4 | no fix |
| Ubuntu 18.04 LTS | linux-gkeop-5.4 | no fix |
| Ubuntu 18.04 LTS | linux-hwe | no fix |
| Ubuntu 18.04 LTS | linux-hwe-edge | no fix |
| Ubuntu 18.04 LTS | linux-oem | no fix |
| Ubuntu 18.04 LTS | linux-oracle-5.0 | no fix |
| Ubuntu 18.04 LTS | linux-oracle-5.3 | no fix |
| Ubuntu 20.04 LTS | linux-aws-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-aws-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-aws-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-azure-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-azure-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-azure-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-azure-fde | no fix |
| Ubuntu 20.04 LTS | linux-gcp-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-gcp-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-gcp-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-gke | no fix |
| Ubuntu 20.04 LTS | linux-gke-5.15 | no fix |
| Ubuntu 20.04 LTS | linux-hwe-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-hwe-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-hwe-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-intel-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-oem-5.10 | no fix |
| Ubuntu 20.04 LTS | linux-oem-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-oem-5.14 | no fix |
| Ubuntu 20.04 LTS | linux-oem-5.6 | no fix |
| Ubuntu 20.04 LTS | linux-oracle-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-oracle-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-oracle-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-raspi2 | no fix |
| Ubuntu 20.04 LTS | linux-riscv | no fix |
| Ubuntu 20.04 LTS | linux-riscv-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-riscv-5.8 | no fix |
| Ubuntu 22.04 LTS | linux-allwinner-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-aws-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-aws-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-aws-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-azure-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-azure-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-azure-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-azure-fde-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-azure-fde-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-gcp-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-gcp-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-gcp-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-hwe-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-hwe-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-hwe-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-intel-iot-realtime | no fix |
| Ubuntu 22.04 LTS | linux-lowlatency-hwe-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-lowlatency-hwe-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-lowlatency-hwe-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-nvidia-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-nvidia-6.5 | 6.5.0-1014.14 |
| Ubuntu 22.04 LTS | linux-oem-5.17 | no fix |
| Ubuntu 22.04 LTS | linux-oem-6.0 | no fix |
| Ubuntu 22.04 LTS | linux-oem-6.1 | no fix |
| Ubuntu 22.04 LTS | linux-oem-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-oracle-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-realtime | no fix |
| Ubuntu 22.04 LTS | linux-riscv | no fix |
| Ubuntu 22.04 LTS | linux-riscv-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-riscv-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-starfive-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-starfive-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-starfive-6.5 | no fix |
| Ubuntu 24.04 LTS | linux-raspi-realtime | no fix |
| openSUSE Leap 15.6 | dtb-aarch64 | 6.4.0-150600.23.14.1 |
| openSUSE Leap 15.6 | kernel-64kb | 6.4.0-150600.23.14.1 |
| openSUSE Leap 15.6 | kernel-azure | 6.4.0-150600.8.8.2 |
| openSUSE Leap 15.6 | kernel-debug | 6.4.0-150600.23.14.2 |
| openSUSE Leap 15.6 | kernel-default | 6.4.0-150600.23.14.2 |
| openSUSE Leap 15.6 | kernel-default-base | 6.4.0-150600.23.14.2.150600.12.4.3 |
| openSUSE Leap 15.6 | kernel-docs | 6.4.0-150600.23.14.2 |
| openSUSE Leap 15.6 | kernel-kvmsmall | 6.4.0-150600.23.14.2 |
| openSUSE Leap 15.6 | kernel-obs-build | 6.4.0-150600.23.14.2 |
| openSUSE Leap 15.6 | kernel-obs-qa | 6.4.0-150600.23.14.2 |
| openSUSE Leap 15.6 | kernel-rt | 6.4.0-150600.10.5.1 |
| openSUSE Leap 15.6 | kernel-rt_debug | 6.4.0-150600.10.5.1 |
| openSUSE Leap 15.6 | kernel-source | 6.4.0-150600.23.14.2 |
| openSUSE Leap 15.6 | kernel-source-azure | 6.4.0-150600.8.8.2 |
| openSUSE Leap 15.6 | kernel-source-rt | 6.4.0-150600.10.5.1 |
| openSUSE Leap 15.6 | kernel-syms | 6.4.0-150600.23.14.2 |
| openSUSE Leap 15.6 | kernel-syms-azure | 6.4.0-150600.8.8.1 |
| openSUSE Leap 15.6 | kernel-syms-rt | 6.4.0-150600.10.5.1 |
| openSUSE Leap 15.6 | kernel-zfcpdump | 6.4.0-150600.23.14.2 |