{"id":"CVE-2026-31764","aliases":["CVE-2026-31764"],"related":[],"kind":"vulnerability","state":"published","title":"iio: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only\n\nThe st_lsm6dsx_hwfifo_odr_store() function, which is called when userspace\nwrites the buffer sampling frequency sysfs attribute, calls\nst_lsm6dsx_check_odr(), which accesses the odr_table array at index\n`sensor->id`; since this array is only 2 entries long, an access for any\nsensor type other than accelerometer or gyroscope is an out-of-bounds\naccess.\n\nThe motivation for being able to set a buffer frequency different from the\nsensor sampling frequency is to support use cases that need accurate event\ndetection (which requires a high sampling frequency) while retrieving\nsensor data at low frequency. Since all the supported event types are\ngenerated from acceleration data only, do not create the buffer sampling\nfrequency attribute for sensor types other than the accelerometer.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only\n\nThe st_lsm6dsx_hwfifo_odr_store() function, which is called when userspace\nwrites the buffer sampling frequency sysfs attribute, calls\nst_lsm6dsx_check_odr(), which accesses the odr_table array at index\n`sensor->id`; since this array is only 2 entries long, an access for any\nsensor type other than accelerometer or gyroscope is an out-of-bounds\naccess.\n\nThe motivation for being able to set a buffer frequency different from the\nsensor sampling frequency is to support use cases that need accurate event\ndetection (which requires a high sampling frequency) while retrieving\nsensor data at low frequency. Since all the supported event types are\ngenerated from acceleration data only, do not create the buffer sampling\nfrequency attribute for sensor types other than the accelerometer.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\niio: imu: st_lsm6dsx: Establecer la frecuencia de muestreo del búfer solo para el acelerómetro\n\nLa 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.\n\nLa 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.","source":"nvd"}],"published":"2026-05-01T14:14:55.230Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-129"],"affected":[{"ranges":[{"type":"git","introduced":"6b648a36c200dfd3e776e657a4c8a8ce63fb52d3","fixed":"3225a81e8d264442b14c7c1bc965ebafa3c0ee01","status":"affected"},{"type":"git","introduced":"6b648a36c200dfd3e776e657a4c8a8ce63fb52d3","fixed":"679c04c10d65d32a3f269e696b22912ff0a001b9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3225a81e8d264442b14c7c1bc965ebafa3c0ee01","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/679c04c10d65d32a3f269e696b22912ff0a001b9","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31764","url":"https://www.cve.org/CVERecord?id=CVE-2026-31764","licence":"CVE Terms of Use","modified":"2026-05-11T22:15:21.708Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31764","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31764","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.375Z","epss":{"score":0.00125,"percentile":0.02396,"date":"2026-12-01T12:00:22.000Z"}}