CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's handling of the tagged FIFO buffer in the iio: imu: st_lsm6dsx driver, where uninitialized stack memory can lead to leakage of sensitive data to user space. This could potentially expose information that should remain confidential, impacting system integrity and user privacy. Organizations using affected Linux kernel versions should prioritize applying the fix to mitigate the risk of data exposure.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: iio: imu: st_lsm6dsx: fix stack leak in tagged FIFO buffer The tagged FIFO path declares iio_buff on the stack with __aligned(8) but no initializer, but there is a hole in the structure, which will then leak to userspace as ST_LSM6DSX_SAMPLE_SIZE bytes (6) will be copied, but the space between that and the timestamp are not initialized. Commit c14edb4d0bdc ("iio:imu:st_lsm6dsx Fix alignment and data leak issues") moved the untagged FIFO path to a kzalloc'd buffer in hw->scan, but for the tagged path it only added the alignment qualifier and not the initializer :( Fix this by just zero-initializing the structure on the stack.