# CVE-2026-31764: iio: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-01T14:14:55.230Z
- Modified: 2026-11-11T21:10:00.200Z
- Weaknesses: CWE-129
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.19 before 6.19.12; 7.0

## References

- <https://git.kernel.org/stable/c/3225a81e8d264442b14c7c1bc965ebafa3c0ee01> (patch)
- <https://git.kernel.org/stable/c/679c04c10d65d32a3f269e696b22912ff0a001b9> (patch)

## Sources

- CVE List: [CVE-2026-31764](https://www.cve.org/CVERecord?id=CVE-2026-31764), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-31764](https://nvd.nist.gov/vuln/detail/CVE-2026-31764), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31764 · Whole record: https://cve.day/CVE-2026-31764.json · Rebuilt by cve.day 2026-11-25T22:59:20.375Z
