CVE-2026-31764

Source
https://cve.org/CVERecord?id=CVE-2026-31764
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31764.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-31764
Downstream
Published
2026-05-01T14:14:55.230Z
Modified
2026-07-08T08:06:22.009039543Z
Summary
iio: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only
Details

In the Linux kernel, the following vulnerability has been resolved:

iio: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only

The stlsm6dsxhwfifoodrstore() function, which is called when userspace writes the buffer sampling frequency sysfs attribute, calls stlsm6dsxcheckodr(), which accesses the odrtable 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31764.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6b648a36c200dfd3e776e657a4c8a8ce63fb52d3
Fixed
3225a81e8d264442b14c7c1bc965ebafa3c0ee01
Fixed
679c04c10d65d32a3f269e696b22912ff0a001b9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31764.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.12

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31764.json"