CVE-2025-71198

iio: imu: st_lsm6dsx: fix iio_chan_spec for sensors without event detection

State
Published
Severity
Not scored
Published
Feb 4, 2026
Updated
Oct 30, 2026
Reserved
Jan 31, 2026

Read the record on cve.org

Description

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

iio: imu: st_lsm6dsx: fix iio_chan_spec for sensors without event detection

The st_lsm6dsx_acc_channels array of struct iio_chan_spec has a non-NULL event_spec field, indicating support for IIO events. However, event detection is not supported for all sensors, and if userspace tries to configure accelerometer wakeup events on a sensor device that does not support them (e.g. LSM6DS0), st_lsm6dsx_write_event() dereferences a NULL pointer when trying to write to the wakeup register. Define an additional struct iio_chan_spec array whose members have a NULL event_spec field, and use this array instead of st_lsm6dsx_acc_channels for sensors without event detection capability.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b5969abfa8b8ed43ebd93479d394f664bd4a5a87 to before 33c683417232b9111e29458954529942137780a3Affected
  • b5969abfa8b8ed43ebd93479d394f664bd4a5a87 to before 7673167fac9323110973a3300637adba7d45de3aAffected
  • b5969abfa8b8ed43ebd93479d394f664bd4a5a87 to before 4d60ffcdedfe2cdb68a1cde19bb292bc67451629Affected
  • b5969abfa8b8ed43ebd93479d394f664bd4a5a87 to before 81ed6e42d6e555dd978c9dd5e3f7c20cb121221bAffected
  • b5969abfa8b8ed43ebd93479d394f664bd4a5a87 to before c34e2e2d67b3bb8d5a6d09b0d6dac845cdd13fb3Affected
LinuxLinux
  • 5.5Affected
  • before 5.5Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.122 through 6.6.*Not affected
  • 6.12.68 through 6.12.*Not affected
  • 6.18.8 through 6.18.*Not affected
  • 6.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.