linux-next/drivers/iio/temperature
Javier Carrasco 2f43d5200c iio: temperature: tmp006: fix information leak in triggered buffer
The 'scan' local struct is used to push data to user space from a
triggered buffer, but it has a hole between the two 16-bit data channels
and the timestamp. This hole is never initialized.

Initialize the struct to zero before using it to avoid pushing
uninitialized information to userspace.

Fixes: 91f75ccf9f ("iio: temperature: tmp006: add triggered buffer support")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20241204-iio_memset_scan_holes-v2-1-3f941592a76d@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-12-08 16:51:35 +00:00
..
hid-sensor-temperature.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
iqs620at-temp.c iio: temperature: iqs620at-temp: Add support for V3 silicon 2022-02-14 13:07:33 +00:00
Kconfig iio: temperature: tmp006: add triggered buffer support 2024-09-30 09:21:02 +01:00
ltc2983.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
Makefile iio: temperature: mlx90635 MLX90635 IR Temperature sensor 2023-12-11 19:16:34 +00:00
max30208.c iio: temperature: max30208: Remove an unused field in struct max30208_data 2024-05-27 09:48:56 +01:00
max31856.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
max31865.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
maxim_thermocouple.c iio: temp: maxim_thermocouple: Fix alignment for DMA safety 2022-06-14 11:53:19 +01:00
mcp9600.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
mlx90614.c iio: mlx90614: Use i2c_get_match_data() 2023-09-11 20:12:42 +01:00
mlx90632.c iio: temperature: mlx90632: make use of regmap_clear_bits() 2024-06-25 21:04:48 +01:00
mlx90635.c iio: temperature: mlx90635: Fix ERR_PTR dereference in mlx90635_probe() 2024-05-27 09:49:20 +01:00
tmp006.c iio: temperature: tmp006: fix information leak in triggered buffer 2024-12-08 16:51:35 +00:00
tmp007.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tmp117.c iio: temperature: tmp117: add support for vcc-supply 2024-02-28 19:26:35 +00:00
tsys01.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
tsys02d.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00