CVE-2025-38531

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

MEDIUM
5.5
CVSS Score
Published: August 16, 2025 at 11:12 AM UTC
Updated: June 17, 2026 at 09:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.12.405.16 ≤ v < 6.12.405.16 ≤ v < 6.15.85.16 ≤ v < 6.165.16 ≤ v < 6.6.1366.13 ≤ v < 6.15.84dff754876959b3f3b354800089bc8aaa3ec1d955.166.16 rc16.16 rc26.16 rc36.16 rc46.16 rc56.16 rc6
Vendor states this is fixed in 3297a9016a45144883ec990bd4bd5b1d79cafb46 (fixed)
Vendor states this is fixed in 610615c9668037e3eca11132063b93b2d945af13 (fixed)
Vendor states this is fixed in 9f92e93e257b33e73622640a9205f8642ec16ddd (fixed)
Vendor states this is fixed in f9d4b618f1b9e6d760cc7c15052b92f7faf47201 (fixed)
Vendor states this is fixed in 5.16 (unaffected)
Vendor states this is fixed in 6.12.40 (unaffected)
Vendor states this is fixed in 6.15.8 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.6.136 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-908

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card