5.5medium
iio: common: st_sensors: Fix use of uninitialize device structs
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.26% (higher than 11% of CVEs)
- Published
- Last changed
- 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]
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| linux linux_kernel | before 6.12.40, from 6.13 before 6.15.8, 6.16 | NVD |
Classification
What each source says
CVE List
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]
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iio: common: st_sensors: Se corrige el uso de estructuras de dispositivo sin inicializar. En las diversas funciones de sondeo, se usa &indio_dev->dev antes de su inicialización. Esto provocaba un pánico del kernel en st_sensors_power_enable() cuando la llamada a devm_regulator_bulk_get_enable() falla y luego se llama a dev_err_probe() con el dispositivo sin inicializar. Esto parece causar un pánico solo con dev_err_probe(); dev_err(), dev_warn() y dev_info() no parecen causarlo, pero también se han corregido. El problema se reporta y rastrea aquí: [1]
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38531 changed 2026-10-30 | CVE Terms of Use |
| NVD | CVE-2025-38531 changed 2026-10-30 | Public domain |