1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-22 07:53:11 -05:00
linux/drivers/iio/light
Javier Carrasco 47b43e53c0 iio: light: vcnl4035: fix information leak in triggered buffer
The 'buffer' local array is used to push data to userspace from a
triggered buffer, but it does not set an initial value for the single
data element, which is an u16 aligned to 8 bytes. That leaves at least
4 bytes uninitialized even after writing an integer value with
regmap_read().

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

Cc: stable@vger.kernel.org
Fixes: ec90b52c07 ("iio: light: vcnl4035: Fix buffer alignment in iio_push_to_buffers_with_timestamp()")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20241125-iio_memset_scan_holes-v1-6-0cb6e98d895c@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-12-07 17:23:41 +00:00
..
acpi-als.c
adjd_s311.c
adux1020.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
al3010.c
al3320a.c
apds9300.c iio: light: apds9300: use bool for event state 2024-11-03 20:33:44 +00:00
apds9306.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
apds9960.c iio: light: apds9960: remove useless return 2024-11-03 20:33:44 +00:00
as73211.c
bh1745.c iio: light: bh1745: fix information leak in triggered buffer 2024-12-07 17:23:41 +00:00
bh1750.c
bh1780.c
cm3232.c
cm3323.c
cm3605.c
cm32181.c
cm36651.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
cros_ec_light_prox.c
gp2ap002.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
gp2ap020a00f.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
hid-sensor-als.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hid-sensor-prox.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
iqs621-als.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
isl29018.c iio: light: isl29018: drop ACPI_PTR() and CONFIG_ACPI guards 2024-11-01 14:54:44 +00:00
isl29028.c
isl29125.c
isl76682.c
jsa1212.c
Kconfig iio: light: add support for veml3235 2024-11-01 14:54:46 +00:00
lm3533-als.c
ltr390.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
ltr501.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
ltrf216a.c
lv0104cs.c
Makefile iio: light: add support for veml3235 2024-11-01 14:54:46 +00:00
max44000.c
max44009.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
noa1305.c
opt3001.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
opt4001.c
pa12203001.c
rohm-bu27008.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
rohm-bu27034.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
rpr0521.c
si1133.c
si1145.c
st_uvis25.h
st_uvis25_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_uvis25_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_uvis25_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
stk3310.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tcs3414.c
tcs3472.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tsl2563.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tsl2583.c
tsl2591.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tsl2772.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tsl4531.c
us5182d.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
vcnl4000.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
vcnl4035.c iio: light: vcnl4035: fix information leak in triggered buffer 2024-12-07 17:23:41 +00:00
veml3235.c iio: light: add support for veml3235 2024-11-01 14:54:46 +00:00
veml6030.c Merge commit '9365f0de4303f82ed4c2db1c39d3de824b249d80' into HEAD 2024-11-09 10:39:52 +00:00
veml6040.c
veml6070.c iio: light: veml6070: add support for integration time 2024-11-03 20:33:42 +00:00
veml6075.c
vl6180.c
zopt2201.c