Vulnerability in Kernel: iio: imu: st_lsm6dsx: wait for settling time in st_lsm6dsx_read_oneshot

Kernel Updated 02 Oct 2025

Summary

18/03/2022
N/A
No i
Unrated
Not published

GSD-2022-1000852: iio: imu: st_lsm6dsx: wait for settling time in st_lsm6dsx_read_oneshot. Affects Kernel versions >= 290a6ce11d938be52634b3ce1bbc6b78be4d23c1, < eabcc609cb8accf16a5c53fd9b91a827854b1ca9. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a fundamental component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential functionalities for various devices, including sensors. One such sensor is the STMicroelectronics LSM6DSx inertial measurement unit (IMU), which is used to measure acceleration, orientation, and other motion-related data. The vulnerability in question affects the Kernel's handling of the LSM6DSx IMU, specifically in the 'st_lsm6dsx_read_oneshot' function.

Vulnerability Detail

The vulnerability arises from a failure to wait for the settling time in the 'st_lsm6dsx_read_oneshot' function of the Kernel's iio (Industrial I/O) subsystem. This settling time is necessary for the sensor to stabilize and provide accurate readings. By not waiting for the settling time, the function may return incorrect or inconsistent data, potentially leading to erroneous calculations or decisions based on the sensor's output. The impact and attack plausibility of this vulnerability have not been proven, but it highlights a potential security risk.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users can avoid relying on the 'st_lsm6dsx_read_oneshot' function until the Kernel is updated with the fix. Alternatively, they can implement their own settling time delay before using the function to ensure accurate sensor readings. Here is an example of how to add a delay in C code:

#include <unistd.h>

void delay_ms(int milliseconds) {

  usleep(milliseconds * 1000);
}

// Usage:

int main() {

  // Wait for 100 milliseconds
  delay_ms(100);
  // Call st_lsm6dsx_read_oneshot function
  // ...

return 0;

}

Conclusion

The vulnerability in the Kernel's handling of the LSM6DSx IMU has been identified and addressed in the Linux Kernel version v5.10.103. Users are advised to update their Kernel to this version or a subsequent release that includes the fix to mitigate the potential security risk. Regularly updating the Kernel is recommended to stay protected against the latest vulnerabilities and ensure system stability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability is not yet proven, but it could potentially lead to incorrect or inconsistent data from the LSM6DSx IMU sensor. This could result in erroneous calculations or decisions based on the sensor's output.

You can use Vulert's playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it in real-time to identify any open-source vulnerabilities, including this one.

Yes, a workaround is available. Users can avoid using the 'st_lsm6dsx_read_oneshot' function until the Kernel is updated with the fix. Alternatively, they can implement their own settling time delay before using the function to ensure accurate sensor readings.

To fix this vulnerability, you should update your Linux Kernel to version v5.10.103 or a subsequent release that includes the fix. Regularly updating the Kernel is recommended to ensure the latest security patches and bug fixes are applied.

You can find more information about this vulnerability in the GSD-2022-1000852 entry of the GSD database maintained by the Cloud Security Alliance. The link to the entry is provided in the 'source' field of the 'database_specific' section in the vulnerability details.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback