CVE-2025-71198

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

No CVSS score yet EPSS 0.20%

Published 4 Feb 2026 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2025-71198

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-71198 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.6% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from b5969abfa8b8ed43ebd93479d394f664bd4a5a87, before 33c683417232b9111e29458954529942137780a3
affected from b5969abfa8b8ed43ebd93479d394f664bd4a5a87, before 7673167fac9323110973a3300637adba7d45de3a
affected from b5969abfa8b8ed43ebd93479d394f664bd4a5a87, before 4d60ffcdedfe2cdb68a1cde19bb292bc67451629
affected from b5969abfa8b8ed43ebd93479d394f664bd4a5a87, before 81ed6e42d6e555dd978c9dd5e3f7c20cb121221b
affected from b5969abfa8b8ed43ebd93479d394f664bd4a5a87, before c34e2e2d67b3bb8d5a6d09b0d6dac845cdd13fb3
Other versions: unaffected
Linux
affected 5.5
unaffected before 5.5
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.122 up to and including 6.6.*
unaffected from 6.12.68 up to and including 6.12.*
unaffected from 6.18.8 up to and including 6.18.*
unaffected 6.19 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-71198 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-71198

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-71198
trivy image --scanners vuln IMAGE | grep CVE-2025-71198

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-71198 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.