# CVE-2025-71198: iio: imu: st_lsm6dsx: fix iio_chan_spec for sensors without event detection

- Severity: not scored yet
- 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.26%, higher than 11% of CVEs (2026-11-30)
- Published: 2026-02-04T16:07:33.154Z
- Modified: 2026-10-30T13:18:26.750Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from b5969abfa8b8ed43ebd93479d394f664bd4a5a87 before 33c683417232b9111e29458954529942137780a3; from b5969abfa8b8ed43ebd93479d394f664bd4a5a87 before 7673167fac9323110973a3300637adba7d45de3a; from b5969abfa8b8ed43ebd93479d394f664bd4a5a87 before 4d60ffcdedfe2cdb68a1cde19bb292bc67451629; from b5969abfa8b8ed43ebd93479d394f664bd4a5a87 before 81ed6e42d6e555dd978c9dd5e3f7c20cb121221b; from b5969abfa8b8ed43ebd93479d394f664bd4a5a87 before c34e2e2d67b3bb8d5a6d09b0d6dac845cdd13fb3; 5.5 (not affected: before 5.5; from 6.1.191 up to 6.1.*; from 6.6.122 up to 6.6.*; from 6.12.68 up to 6.12.*; from 6.18.8 up to 6.18.*; from 6.19 up to *)

## References

- <https://git.kernel.org/stable/c/33c683417232b9111e29458954529942137780a3>
- <https://git.kernel.org/stable/c/7673167fac9323110973a3300637adba7d45de3a>
- <https://git.kernel.org/stable/c/4d60ffcdedfe2cdb68a1cde19bb292bc67451629>
- <https://git.kernel.org/stable/c/81ed6e42d6e555dd978c9dd5e3f7c20cb121221b>
- <https://git.kernel.org/stable/c/c34e2e2d67b3bb8d5a6d09b0d6dac845cdd13fb3>

## Sources

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

---

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