7.8high
iio: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: iio: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only The st_lsm6dsx_hwfifo_odr_store() function, which is called when userspace writes the buffer sampling frequency sysfs attribute, calls st_lsm6dsx_check_odr(), which accesses the odr_table array at index `sensor->id`; since this array is only 2 entries long, an access for any sensor type other than accelerometer or gyroscope is an out-of-bounds access. The motivation for being able to set a buffer frequency different from the sensor sampling frequency is to support use cases that need accurate event detection (which requires a high sampling frequency) while retrieving sensor data at low frequency. Since all the supported event types are generated from acceleration data only, do not create the buffer sampling frequency attribute for sensor types other than the accelerometer.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 6b648a36c200dfd3e776e657a4c8a8ce63fb52d3 before 3225a81e8d264442b14c7c1bc965ebafa3c0ee01, from 6b648a36c200dfd3e776e657a4c8a8ce63fb52d3 before 679c04c10d65d32a3f269e696b22912ff0a001b9, 6.19 Not affected: before 6.19, from 6.19.12 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.19 before 6.19.12, 7.0 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: iio: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only The st_lsm6dsx_hwfifo_odr_store() function, which is called when userspace writes the buffer sampling frequency sysfs attribute, calls st_lsm6dsx_check_odr(), which accesses the odr_table array at index `sensor->id`; since this array is only 2 entries long, an access for any sensor type other than accelerometer or gyroscope is an out-of-bounds access. The motivation for being able to set a buffer frequency different from the sensor sampling frequency is to support use cases that need accurate event detection (which requires a high sampling frequency) while retrieving sensor data at low frequency. Since all the supported event types are generated from acceleration data only, do not create the buffer sampling frequency attribute for sensor types other than the accelerometer.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: iio: imu: st_lsm6dsx: Establecer la frecuencia de muestreo del búfer solo para el acelerómetro La función st_lsm6dsx_hwfifo_odr_store(), que se llama cuando el espacio de usuario (userspace) escribe el atributo sysfs de frecuencia de muestreo del búfer, llama a st_lsm6dsx_check_odr(), que accede al array odr_table en el índice ’sensor -> id’; dado que este array tiene solo 2 entradas de longitud, un acceso para cualquier tipo de sensor que no sea acelerómetro o giroscopio es un acceso fuera de límites. La motivación para poder establecer una frecuencia de búfer diferente de la frecuencia de muestreo del sensor es para soportar casos de uso que necesitan detección precisa de eventos (lo que requiere una alta frecuencia de muestreo) mientras se recuperan datos del sensor a baja frecuencia. Dado que todos los tipos de eventos soportados se generan solo a partir de datos de aceleración, no cree el atributo de frecuencia de muestreo del búfer para tipos de sensor que no sean el acelerómetro.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31764 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-31764 changed 2026-11-11 | Public domain |