# CVE-2025-38531: iio: common: st_sensors: Fix use of uninitialize device structs

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 11% of CVEs (2026-11-30)
- Published: 2025-08-16T11:12:24.405Z
- Modified: 2026-10-30T13:18:05.647Z
- Weaknesses: CWE-908
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

iio: common: st_sensors: Fix use of uninitialize device structs

Throughout the various probe functions &indio_dev->dev is used before it
is initialized. This caused a kernel panic in st_sensors_power_enable()
when the call to devm_regulator_bulk_get_enable() fails and then calls
dev_err_probe() with the uninitialized device.

This seems to only cause a panic with dev_err_probe(), dev_err(),
dev_warn() and dev_info() don't seem to cause a panic, but are fixed
as well.

The issue is reported and traced here: [1]

(As written by CVE List.)

## Affected

- Linux Linux: from 4dff754876959b3f3b354800089bc8aaa3ec1d95 before 1f88548ec8ade8538eb970e36ffe5049b89d86f7; from 4dff754876959b3f3b354800089bc8aaa3ec1d95 before f9d4b618f1b9e6d760cc7c15052b92f7faf47201; from 4dff754876959b3f3b354800089bc8aaa3ec1d95 before 610615c9668037e3eca11132063b93b2d945af13; from 4dff754876959b3f3b354800089bc8aaa3ec1d95 before 3297a9016a45144883ec990bd4bd5b1d79cafb46; from 4dff754876959b3f3b354800089bc8aaa3ec1d95 before 9f92e93e257b33e73622640a9205f8642ec16ddd; 5.16 (not affected: before 5.16; from 6.1.191 up to 6.1.*; from 6.6.136 up to 6.6.*; from 6.12.40 up to 6.12.*; from 6.15.8 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: before 6.12.40; from 6.13 before 6.15.8; 6.16

## References

- <https://git.kernel.org/stable/c/1f88548ec8ade8538eb970e36ffe5049b89d86f7>
- <https://git.kernel.org/stable/c/f9d4b618f1b9e6d760cc7c15052b92f7faf47201>
- <https://git.kernel.org/stable/c/610615c9668037e3eca11132063b93b2d945af13> (patch)
- <https://git.kernel.org/stable/c/3297a9016a45144883ec990bd4bd5b1d79cafb46> (patch)
- <https://git.kernel.org/stable/c/9f92e93e257b33e73622640a9205f8642ec16ddd> (patch)

## Sources

- CVE List: [CVE-2025-38531](https://www.cve.org/CVERecord?id=CVE-2025-38531), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-38531](https://nvd.nist.gov/vuln/detail/CVE-2025-38531), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-38531 · Whole record: https://cve.day/CVE-2025-38531.json · Rebuilt by cve.day 2026-11-25T22:59:02.631Z
