iio: imu: st_lsm6dsx: fix iio_chan_spec for sensors without event detection (Linux Linux)

CVE-2025-71198
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.20 % · centile 9 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Deferred

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.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected b5969abfa8b8ed43ebd93479d394f664bd4a5a87 < 33c683417232b9111e29458954529942137780a3 ; affected b5969abfa8b8ed43ebd93479d394f664bd4a5a87 < 7673167fac9323110973a3300637adba7d45de3a ; affected b5969abfa8b8ed43ebd93479d394f664bd4a5a87 < 4d60ffcdedfe2cdb68a1cde19bb292bc67451629 ; affected b5969abfa8b8ed43ebd93479d394f664bd4a5a87 < 81ed6e42d6e555dd978c9dd5e3f7c20cb121221b ; affected b5969abfa8b8ed43ebd93479d394f664bd4a5a87 < c34e2e2d67b3bb8d5a6d09b0d6dac845cdd13fb3
Linux · Linuxaffected 5.5 ; unaffected 0 < 5.5 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.122 ≤ 6.6.* ; unaffected 6.12.68 ≤ 6.12.* ; unaffected 6.18.8 ≤ 6.18.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD