CVE-2025-38531

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

No CVSS score yet EPSS 0.20%

Published 16 Aug 2025 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2025-38531

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38531 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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]

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.1% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 4dff754876959b3f3b354800089bc8aaa3ec1d95, before 1f88548ec8ade8538eb970e36ffe5049b89d86f7
affected from 4dff754876959b3f3b354800089bc8aaa3ec1d95, before f9d4b618f1b9e6d760cc7c15052b92f7faf47201
affected from 4dff754876959b3f3b354800089bc8aaa3ec1d95, before 610615c9668037e3eca11132063b93b2d945af13
affected from 4dff754876959b3f3b354800089bc8aaa3ec1d95, before 3297a9016a45144883ec990bd4bd5b1d79cafb46
affected from 4dff754876959b3f3b354800089bc8aaa3ec1d95, before 9f92e93e257b33e73622640a9205f8642ec16ddd
Other versions: unaffected
Linux
affected 5.16
unaffected before 5.16
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.136 up to and including 6.6.*
unaffected from 6.12.40 up to and including 6.12.*
unaffected from 6.15.8 up to and including 6.15.*
unaffected 6.16 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38531 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38531

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38531
trivy image --scanners vuln IMAGE | grep CVE-2025-38531

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38531 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.