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.
Published: 2026-05-01
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the st_lsm6dsx driver part of the Linux kernel. When userspace writes a buffer sampling frequency to a sysfs attribute, the driver calls a function that accesses an array using the sensor’s identifier. Because the array contains only two entries, using a sensor type other than the accelerometer or gyroscope causes an out‑of‑bounds read. This can expose internal kernel memory contents and may lead to a denial‑of‑service if the read corrupts control data. The flaw does not directly allow arbitrary code execution but can compromise confidentiality or cause instability.

Affected Systems

The flaw affects Linux kernel installations that include the st_lsm6dsx driver. All vendors using the stock Linux kernel with this driver, regardless of distribution, are potentially impacted. No specific kernel version is listed, so the problem likely exists in any kernel built with the existing driver code.

Risk and Exploitability

The CVSS and EPSS metrics are not reported, and the vulnerability is not listed in CISA’s KEV catalog, implying no publicly known exploitation yet. The required write to the sysfs attribute typically requires elevated privileges, so the attack vector is local privilege escalation or a user with root access. Although the blast radius is limited to the kernel process, the out‑of‑bounds read could compromise sensitive data or cause a crash, making the risk moderate if the kernel is not patched.

Generated by OpenCVE AI on May 1, 2026 at 23:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest kernel update that contains the fixed st_lsm6dsx driver code
  • Reboot after updating to ensure the patched driver is loaded
  • Verify that the vulnerable sysfs attribute is no longer accessible by removing or disabling the buffer sampling configuration for non‑accelerometer sensors

Generated by OpenCVE AI on May 1, 2026 at 23:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 02 May 2026 00:15:00 +0000


Fri, 01 May 2026 23:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125

Fri, 01 May 2026 14:45:00 +0000

Type Values Removed Values Added
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.
Title iio: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-01T14:14:55.230Z

Reserved: 2026-03-09T15:48:24.139Z

Link: CVE-2026-31764

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-01T15:16:39.523

Modified: 2026-05-01T15:24:14.893

Link: CVE-2026-31764

cve-icon Redhat

Severity :

Publid Date: 2026-05-01T00:00:00Z

Links: CVE-2026-31764 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-01T23:30:06Z

Weaknesses