In the Linux kernel, the following vulnerability has been resolved: iio: imu: stlsm6dsx: fix iiochanspec for sensors without event detection The stlsm6dsxaccchannels array of struct iiochanspec has a non-NULL eventspec 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), stlsm6dsxwriteevent() dereferences a NULL pointer when trying to write to the wakeup register. Define an additional struct iiochanspec array whose members have a NULL eventspec field, and use this array instead of stlsm6dsxaccchannels for sensors without event detection capability.