Not scored
iio: imu: st_lsm6dsx: fix iio_chan_spec for sensors without event detection
- Severity
- Not scored
- 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: imu: st_lsm6dsx: fix iio_chan_spec for sensors without event detection The st_lsm6dsx_acc_channels array of struct iio_chan_spec has a non-NULL event_spec field, indicating support for IIO events. However, event detection is not supported for all sensors, and if userspace tries to configure accelerometer wakeup events on a sensor device that does not support them (e.g. LSM6DS0), st_lsm6dsx_write_event() dereferences a NULL pointer when trying to write to the wakeup register. Define an additional struct iio_chan_spec array whose members have a NULL event_spec field, and use this array instead of st_lsm6dsx_acc_channels for sensors without event detection capability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from b5969abfa8b8ed43ebd93479d394f664bd4a5a87 before 33c683417232b9111e29458954529942137780a3, from b5969abfa8b8ed43ebd93479d394f664bd4a5a87 before 7673167fac9323110973a3300637adba7d45de3a, from b5969abfa8b8ed43ebd93479d394f664bd4a5a87 before 4d60ffcdedfe2cdb68a1cde19bb292bc67451629, from b5969abfa8b8ed43ebd93479d394f664bd4a5a87 before 81ed6e42d6e555dd978c9dd5e3f7c20cb121221b, from b5969abfa8b8ed43ebd93479d394f664bd4a5a87 before c34e2e2d67b3bb8d5a6d09b0d6dac845cdd13fb3, 5.5 Not affected: before 5.5, from 6.1.191 up to 6.1.*, from 6.6.122 up to 6.6.*, from 6.12.68 up to 6.12.*, from 6.18.8 up to 6.18.*, from 6.19 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: iio: imu: st_lsm6dsx: fix iio_chan_spec for sensors without event detection The st_lsm6dsx_acc_channels array of struct iio_chan_spec has a non-NULL event_spec field, indicating support for IIO events. However, event detection is not supported for all sensors, and if userspace tries to configure accelerometer wakeup events on a sensor device that does not support them (e.g. LSM6DS0), st_lsm6dsx_write_event() dereferences a NULL pointer when trying to write to the wakeup register. Define an additional struct iio_chan_spec array whose members have a NULL event_spec field, and use this array instead of st_lsm6dsx_acc_channels for sensors without event detection capability.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: iio: imu: st_lsm6dsx: corregir iio_chan_spec para sensores sin detección de eventos El array st_lsm6dsx_acc_channels de la estructura iio_chan_spec tiene un campo event_spec no nulo, indicando soporte para eventos IIO. Sin embargo, la detección de eventos no es compatible con todos los sensores, y si el espacio de usuario intenta configurar eventos de activación del acelerómetro en un dispositivo sensor que no los soporta (p. ej., LSM6DS0), st_lsm6dsx_write_event() desreferencia un puntero NULL al intentar escribir en el registro de activación. Definir un array adicional de la estructura iio_chan_spec cuyos miembros tienen un campo event_spec NULL, y usar este array en lugar de st_lsm6dsx_acc_channels para sensores sin capacidad de detección de eventos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-71198 changed 2026-10-30 | CVE Terms of Use |
| NVD | CVE-2025-71198 changed 2026-10-30 | Public domain |